Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating a jar file

 
kenji mapes
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe it's just me but the Java Tutorial documentation is not helpful. I know the commands but can't seem to create one.

Every time I go into a command line or a shell in Win, it says the command jar is unrecognized. I get the same when I go into the Gnome Terminal on my Linux box.

Thanks.
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to put the bin directory of JAVA_HOME in your PATH assuming JAVA_HOME is the directory of your JSDK.
 
kenji mapes
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it. Appended the system variables and user variables in advanced/environment variables with C:\j2sdk1.4.2_04\bin (which is where my J Archive Tool is, of course).

At the cmd prompt, jar then worked! Awesome. Thanks.

Best,
Kenji
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic