Forum     

Go Back   Digit Technology Discussion Forum > Software > Software Q&A
Register FAQ Calendar Mark Forums Read

Software Q&A Having trouble with software? Find solutions here


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 14-02-2009, 12:19 AM   #1 (permalink)
Apprentice
 
Join Date: Aug 2006
Posts: 62
Default In Windows XP making a shorcut to java jar file


I have got a jar file. I want to make a shortcut for it so that the jar is executed by the command:

"java -jar <jarfile>"

on clicking the shortcut. I tried creating the new shortcut in explorer and typing the above command, it didn't work.
ravi.xolve is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 14-02-2009, 01:54 AM   #2 (permalink)
Rapacious eBayer
 
Join Date: Sep 2008
Posts: 377
Default Re: In Windows XP making a shorcut to java jar file

Create a batch file like:
java -jar filename.jar %*
__________________
•Favorite track Of '07: Dash Berlin - Till The Sky Falls Down
•Favorite track Of '08: Emilio Fernandez - Reynosa
•Current favorite track: Blackfeel Wite - On The Down (J-Soul Vocal Mix)
gforce23 is offline  
Old 14-02-2009, 05:40 PM   #3 (permalink)
Apprentice
 
Join Date: Aug 2006
Posts: 62
Default Re: In Windows XP making a shorcut to java jar file

This would leave a command line window active while the application is running in another window.
ravi.xolve is offline  
Old 17-02-2009, 09:50 PM   #4 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: In Windows XP making a shorcut to java jar file

the right syntax is:

"c:\<path of java.exe>\java.exe" -jar <entire path of jarfile>

and in the start in box, put the entire path of the jar file within quotes, without the filename.
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making your own trojan in a .bat file MR.MOUSTACHE Tutorials 9 20-11-2008 02:21 PM
Need Help In Making An Image File... hell_storm2006 QnA (read only) 2 05-09-2008 07:07 PM
how to convert .class file to .java file??? garv84 Programming 4 11-04-2008 02:41 PM
Help in making an automized file rahul_becks23 Software Q&A 2 31-01-2007 07:13 AM
Renew IP address ...... making a bat file rahul_becks23 Software Q&A 14 23-01-2007 11:18 PM

 
Latest Threads
- by gohan89

Advertisement




All times are GMT +5.5. The time now is 07:44 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2