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

xulihang

Active Member
Licensed 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
 

xulihang

Active Member
Licensed 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.
 

xulihang

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

newbieDE

Member
I have 3 options:
1: Compile & Run F5
2: Compile and Run (Background) alt+3
3: Compile to Library alt+5

i choice 1 (F5)
 
Top