B4J Question Can't run "BalConverter" utility

elriba

Member
Licensed User
Longtime User
Hi,

I'm trying to run the "BalConverter" utilty program, and I am having problems with two types of objects declared in the code: ByteConverter and MsgBoxes.

I downloaded the "ByteConverter.jar" and "jMsgboxes.jar" and installed them in a folder:
"C:\B4X\B4J\AdditionalLibraries"

And specified this folder as the "Additional Libaries" folder in B4J.

I am still having the same problem. it is as if B4J couldn't find these libraries.

What am I doing wrong?

BTW. I am using version 6.01 of B4J.

Edgard
 

elriba

Member
Licensed User
Longtime User
Hi Erel,
Thanks for looking into this.

I am still getting an error when loading the project:
"The following libraries are missing:
jmsgboxes
byteconverter"

I have placed "jMsgboxes.jar" and "ByteConverter.jar" into my additional libraries folder. I am sure the folder is correctly set up because if I right-click on the libraries pane, I can go to my additional libraries folder without problems.

When you say "Reload the project" do you mean just reloading the "BalConverter.b4j" file right?

Maybe version 6.01 is not correctly picking up the new libraries?

Best regards,
Edgard
 
Upvote 0

elriba

Member
Licensed User
Longtime User
Never mind. Sorry. I needed to put the "ByteConverter.xml" file into the folder as well....

It is working now.

One other thing though. In the ByteConverter module, on the procedure "ConvertBalToJsonInMemory" you still use the jMsgboxes library. I changed the code as follows and it compiled fine.

#If UI
'Commented code to remove "Msgboxes" dependancy...
'Dim msg As Msgboxes
'msg.Show("Unsupported version: " & FileName, "")
Dim fx As JFX
fx.Msgbox(Null, "Unsupported version: " & FileName, "")
#end if
 
Upvote 0
Top