Results 1 to 13 of 13
Thread: Running Executable jar
- 04-14-2010, 10:06 AM #1
Member
- Join Date
- Jan 2010
- Posts
- 6
- Rep Power
- 0
Running Executable jar
Hi
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...
Help needed
Thanks in advance...
Regards
Yogi
- 04-14-2010, 10:44 AM #2
do you get any error msgs when u double click on jar..
- 04-14-2010, 10:47 AM #3
Member
- Join Date
- Jan 2010
- Posts
- 6
- Rep Power
- 0
I didn't get any error.
But nothing happen when i double click...
Can this be because of VM machine?
- 04-14-2010, 10:52 AM #4
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 ..
- 04-14-2010, 10:55 AM #5
what i mean is .. if u add some frames.. or GUI things or something to display... it will work..
- 04-14-2010, 10:55 AM #6
Member
- Join Date
- Jan 2010
- Posts
- 6
- Rep Power
- 0
I tried opening it on my physical machine it open with
the ui(SWING).
But not working on my test VM machine.
Have checked the env variable setting.
- 04-14-2010, 11:14 AM #7
Member
- Join Date
- Jan 2010
- Posts
- 6
- Rep Power
- 0
Attached is the zip executable jar file.
- 04-14-2010, 11:19 AM #8
she executes with me ..LoL..
- 04-15-2010, 12:48 AM #9
Member
- Join Date
- Apr 2010
- Posts
- 10
- Rep Power
- 0
Compiler
What compiler (and editor) are you using? Eclipse?
- 04-15-2010, 09:47 AM #10
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
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?
- 04-15-2010, 01:26 PM #11
your jar runs fine. i start your gui with a double click or from the command line with "java -jar RegEx.jar".
Last edited by j2me64; 04-15-2010 at 01:52 PM.
- 04-16-2010, 05:56 AM #12
Senior Member
- Join Date
- Jan 2009
- Posts
- 671
- Rep Power
- 5
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.
- 04-21-2010, 04:46 PM #13
Member
- Join Date
- Apr 2010
- Posts
- 2
- Rep Power
- 0
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
Similar Threads
-
Need help for creating executable xml
By patilsubh in forum XMLReplies: 3Last Post: 10-01-2009, 10:54 AM -
Problem in running Java swing wizard in jre 1.6 while it is running in jre 1.4
By Sanjay Dwivedi in forum AWT / SwingReplies: 0Last Post: 08-26-2009, 01:03 PM -
executable
By smooth in forum New To JavaReplies: 4Last Post: 06-14-2008, 05:12 PM -
Executable Java
By eva in forum New To JavaReplies: 3Last Post: 12-30-2007, 11:38 PM -
Executable JAR
By bugger in forum New To JavaReplies: 4Last Post: 12-05-2007, 05:41 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks