B4J Question B4J Java novice and newbie here

newbieDE

Member
Hello, everyone,

just try me in Java. How can I call/run a Java example that I created with the B4J-IDE directly under Windows?

I have tried to call the created class (without file extension) with CMD/Batch file but nothing happens!

And which folder contains the correct .class / .Java? . Why are there so many folders/subfolders?

see attachment.
 

Attachments

  • fragen.pdf
    102.5 KB · Views: 191

xulihang

Active Member
Licensed User
Longtime User
You may have to see the documentation before your B4X journey: [B4X] Documentation Booklets

To distribute your project you must compile it with:
• Release
The debugger code will not be added to the apk/jar file.

Use the command below to run the generated jar file under Objects folder:

B4X:
java -jar example.jar
 
Upvote 0

xulihang

Active Member
Licensed User
Longtime User
Hi xulihang,

i debug it with the right one (f5), but i have no .jar file. In the german Forum i write that i had in all folder/sub folder only .class ans/or .Java not .jar file.

Run with release, not debug.
 
Upvote 0

xulihang

Active Member
Licensed User
Longtime User
And in case you are using java 11, java 11 does not support runnable jar. Java 8 works fine.
 
Upvote 0
Top