Wow... I'm REALLY Confused

ive already read the tutorial on how to create .jar files but for some reason i just dont understand it AT ALL. the IDE that i use is NetBeans 5.5 and they have a function that builds a .jar file of ur project. i then extract the contents of the created .jar file, insert the entry point in the manifest, compress it to a .rar file and then change the file type to a .jar file again.

but when i double-click on the file it give me this error: "invalid or corrupts jarfile d:\java\java phonebook\dist\java_phonebook.jar"

any1 know what im doing wrong? i read in the tutorial about all these commands, but i have no clue what they are on about because where am i supposed to type these d amn commands?

[719 byte] By [Alex1989a] at [2007-11-27 1:31:26]
# 1

> i read in the tutorial

> about all these commands, but i have no clue what

> they are on about because where am i supposed to type

> these d amn commands?

Click Start.

Click Run.

Type cmd.

Click OK.

Now you have opened the console to type in these commands.

rakanea at 2007-7-12 0:34:11 > top of Java-index,Desktop,Deploying...
# 2
i get this error when i try creating a JAR file using cmd: 'jar' is not recognized as an internal or external command, operable program or batch file.
Alex1989a at 2007-7-12 0:34:11 > top of Java-index,Desktop,Deploying...
# 3

jar is an executable program so Windows can't just automatically know WHAT the command jar is unless it is pointed to in the PATH environment variable.

You can view and edit your path environment variable from within Control Panel and you want to append to the end of the variable the directory path that contains jar.exe. It would likely be in the bin folder of your JDK installation directory.

maple_shafta at 2007-7-12 0:34:11 > top of Java-index,Desktop,Deploying...
# 4
where can i edit the "path environment variable"? u said the control panel but where to from there?
Alex1989a at 2007-7-12 0:34:11 > top of Java-index,Desktop,Deploying...
# 5
bump
Alex1989a at 2007-7-12 0:34:11 > top of Java-index,Desktop,Deploying...
# 6
> where can i edit the "path environment variable"? u> said the control panel but where to from there?The installation instructions include how to set the path variable. http://java.sun.com/javase/6/webnotes/install/index.html
atmguya at 2007-7-12 0:34:11 > top of Java-index,Desktop,Deploying...