• Post Reply Bookmark Topic Watch Topic
  • New Topic

running *.jar from a thumb drive  RSS feed

 
Steve Howerton
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to improve command line and ant etc skills. I can not run my guide.jar when I use the command
line. Also I can not navigate to my thumb drives so I can use the path to my guide.jar that is on the thumb drive.
When I double click the guide.jar and choose to open it with javaw it runs with the save error.
I have to "ctrl_alt_delete" to the task manager and end the process javaw.exe to stop the guide.jar
from running when I double click the jar.

any feed back would be a great help

 
John La
Greenhorn
Posts: 12
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that this:

java -cp %GUIDE%/guide.jar classname

will run the method of classname.

Your results may vary if including a manifest file in the jar.

Changing Windows behavior when double-clicking on a .jar file involves changes to Windows Registry values, which is probably beyond the scope of this forum. You might pursue this topic here: http://social.technet.microsoft.com/Forums/en-US/home
 
Steve Howerton
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not know how to include the path to the guide.jar that is on my thumb drive because I do not know how to tell it what the drive letter is for the jump drive. I try to cd .. to the thumb drives and I can not find them in the command prompt
thanks
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The cd (Change Directory) command isn't for changing to a different drive. For that you need to type the drive letter, followed by a colon. Example:
 
Steve Howerton
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So simple. thanks so much. I will will work with that one. clearly I am below the learning curve or the basics.
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Darryl Burke wrote:The cd (Change Directory) command isn't for changing to a different drive. For that you need to type the drive letter, followed by a colon.

Good old Windows. Can't even get something as basic as that right.

Hoisted by their own drive letters.

Winston
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!