B4J Question App works only if B4J IDE is installed on Windows

ranul

Member
Licensed User
Longtime User
Hi,

I developed an app using B4J.
Everything is working perfect on my development computer (Dell laptop/Windows 11).
But when I try to use the app (the jar file) on other machines, the app doesn't start. Nothing happens.
The other machines are also with Windows 11 and I installed the same JRE and also JDK.
It's the same issue on a number of different machines.
The app starts to work only if I install the B4J IDE on that machine.

Thanks.
 

Swissmade

Well-Known Member
Licensed User
Longtime User
How do you start your jar file?
 
Upvote 0

Swissmade

Well-Known Member
Licensed User
Longtime User
Windows 11


Where is your IDE?

Try
C:\Program Files\Java\<YOUR IDE VERSION>\bin\Java -jar MyApp.jar
 
Upvote 0

ranul

Member
Licensed User
Longtime User
Windows 11


Where is your IDE?

Try
C:\Program Files\Java\<YOUR IDE VERSION>\bin\Java -jar MyApp.jar
If B4J IDE is installed on the machine, the jar files works from any folder.

The problem is that the jar file doesn't work if the B4J IDE is not installed.
 
Upvote 0

Swissmade

Well-Known Member
Licensed User
Longtime User
Then you miss some files.
What Java version you are using? JRE and not IDE Typo
Is it a GUI app or Command?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
It's the same issue on a number of different machines.
Upload your project.
There must be something what you did wrong...
 
Upvote 0

ranul

Member
Licensed User
Longtime User
Upload your project.
There must be something what you did wrong...
Beside the jar file, do I need to have other files/libraries on the Windows that I am trying to run the jar file?
In other words, does the jar file include everything that I need to run the application? (assuming JRE is installed)
 
Upvote 0

ranul

Member
Licensed User
Longtime User
Project / Build standalone package
and everything will be included
Thanks.
The question is: Can I use only the exe file that was created or do I need to deploy the exe file together with the rest of stuff in the build folder which includes folders like bin, conf, legal, lib.
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
Upvote 0

Swissmade

Well-Known Member
Licensed User
Longtime User
For Windows I use launch4j
Build the exe
Put it in a folder you like and also put the JRE there.
In launch4j you can tell where the runtimer is.

Post#6 is not answer so we don't know if it is a GUI application.
 
Last edited:
Upvote 0
Top