B4J Question executing a jar file

Beja

Expert
Licensed User
Longtime User
What does it mean if a jar file can only be executed from inside the IDE after compilation, not from the Objects' folder? When I tried to open and execute it from outside the IDE environment nothing happens. ?
 

cklester

Well-Known Member
Licensed User
If your jar file does not execute, it probably means Windows doesn't know to use Java to run it. You might have to make that association.

You can also optionally "Build Standalone Package," which then creates an exe file.
 
Upvote 0

Johan Schoeman

Expert
Licensed User
Longtime User
What does it mean if a jar file can only be executed from inside the IDE after compilation, not from the Objects' folder? When I tried to open and execute it from outside the IDE environment nothing happens. ?
What Java are you using

Go to the folder and then to the DOS prompt (cmd). Type javac -jar filename.jar and press Enter
 
Upvote 0
Top