Running Executable jar
I have a executable jar which should open on double click with a UI interface.
I installed JRE on my VM machine tried the same, but it doesn't open on double click.
I tried to execute the file using command java - jar --path-to -jar file
This works fine.
I would require the jar to open on double click...
Thanks in advance...
do you get any error msgs when u double click on jar..
I didn't get any error.
But nothing happen when i double click...
Can this be because of VM machine?
if ur jar runs good with command lin.. nothing can be wrong with VM . i guess..
it may be a case that ur code only deals with console's input output only ..
what i mean is .. if u add some frames.. or GUI things or something to display... it will work..
I tried opening it on my physical machine it open with
But not working on my test VM machine.
Have checked the env variable setting.
Attached is the zip executable jar file.
she executes with me ..LoL..
What compiler (and editor) are you using? Eclipse?
What system are you on?
What's the VM?
Assuming it some windowy vm, what does a right click on the jar and peeking at the properites show? Does it say to open with Java?
your jar runs fine. i start your gui with a double click or from the command line with "java -jar RegEx.jar".
Assuming you are running windows, when you double click a jar file in windows, it doesn't run 'java', it runs 'javaw'. Depending on how you installed your jre, these might not be compatible versions.
Hi, it sounds like environment variables problem to me.
I run your jar too by doble cliking on it.
Remember that you should create a JAVA_HOME(4 dev use)
and add the BIN route in the path variable to let the sistem recognize
any java command from anywhere.
Also, you should check if you have the files in the BIN,
like java.exe, javaw.exe.... etc