B4J Question use B4J library widht other enviroment

Roberto P.

Well-Known Member
Licensed User
Longtime User
I would like to use a library created with B4J from another Java program, but it goes wrong.

Anyone can tell me if you can not use the library or if I'm wrong?

I attach library developed with B4J.

thank you
 

Attachments

  • Immagine.png
    Immagine.png
    230.7 KB · Views: 160

Roberto P.

Well-Known Member
Licensed User
Longtime User
the library
 

Attachments

  • TestLibraryB4j.jar
    3.2 KB · Views: 154
  • TestLibraryB4j.xml
    2.4 KB · Views: 224
Upvote 0

stevel05

Expert
Licensed User
Longtime User
If you are talking about using it form a non B4x app then it will not work as the compiled code depends on some Anywhere Software proprietary libraries.
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User
yes, I'm trying to use it in a standalone Java application. I do not understand why you can not use the library in this way?
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
the compiled code depends on some Anywhere Software proprietary libraries

These libraries will not be accessible in another development environment.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I do not understand why you can not use the library in this way?
B4J creates standard Java projects that are compiled with the Java compiler. This means that it is technically possible to use libraries created with B4J in a Java application.
The real problem is that you will break all kinds of assumptions that are correct inside the B4J environment and will not be correct in your Java project.

Bottom line is that it will be easier to convert your Java code to a library and use it from B4J.
 
Upvote 0
Top