Hello everybody, I just want to ask if what is the error on creating a jar file..


I am trying a create a jar file on my command prompt but it always flag an error saying 'jar' is an unrecognizable command...

How can I fix this problem..


YOUR HELP IS HIGHLY APPRECIATED

THANK YOU....

Thank you everyone for your help in creating a jar file but I still have my biggest problem..

Everytime I type the jar command in my command prompt it always flag an error like this...

'jar' is not recognized as an internal or external command,
operable program or batch file

how I can I fix this problem?

YOUR HELP IS HIGHLY APPRECIATED

THANK YOU...

Everytime I type the jar command in my command prompt it always flag an error like this...
'jar' is not recognized as an internal or external command,
operable program or batch file
how I can I fix this problem?

Did you specify the path where the JDK is? If you did not command does not know where to look and does not know your commands. Did you try the solutions in my second link?

Find the directory to the bin folder of your latest JDK:
Usually, you will find this folder in: "C:\Program Files\Java\YOUR_LATEST_JDK\bin"

Then go to Control Panel -> System -> Advanced -> Environment Variables..
In the bottom box, you will see the "System Variables" section. Find "Path". You will see that it has a bunch of arguments separated with ";" add another one with the latest \bin directory you found before...

Now run cmd again and type jar, see if it helps.... :)
These are directions for Windows XP.

Find the directory to the bin folder of your latest JDK:
Usually, you will find this folder in: "C:\Program Files\Java\YOUR_LATEST_JDK\bin"

Then go to Control Panel -> System -> Advanced -> Environment Variables..
In the bottom box, you will see the "System Variables" section. Find "Path". You will see that it has a bunch of arguments separated with ";" add another one with the latest \bin directory you found before...

Now run cmd again and type jar, see if it helps.... :)
These are directions for Windows XP.

With one small detail, you have to restart your machine so the changes to PATH will be recognice by system

nope, not in XP :)
Restarting the system hasn't been required since Windows 98.

Merely restart the console session.

I actually didnt know how to do this either until I googled it, tried it, then posted the answer for you :)..

Google is a powerful tool, but I guess having a second copy on here helps everyone in the long run since it also gets index on google as well..
^-- That's how I found this place btw :).. GOOGLE FTW!

I actually didnt know how to do this either until I googled it, tried it, then posted the answer for you :)..

Google is a powerful tool, but I guess having a second copy on here helps everyone in the long run since it also gets index on google as well..
^-- That's how I found this place btw :).. GOOGLE FTW!

Your directions are exactly what my link told them to do. My link also told them how to do it without editing Environmental Variables and had two pictures ;)

Comments
Two pictures even! What more do these people want?!!

I hope that these advices will be helpful somebody as original poster has no time to come back and say thank you. The guy is just flooding forum with random questions of low level

This article has been dead for over six months. Start a new discussion instead.