ediiting java
I tried to edit a java program. I used NetBeans IDE 5.5.1
after making some changes, I build the Main Project.
I got an successful message but the *.class didnt be generated, and this is my question.
below is the message from the netbeans
-
init:
deps-jar:
Created dir: C:\Documents and Settings\user\desktopRev141\L1JP_cht\src\build\classes
compile:
Created dir: C:\Documents and Settings\user\desktop\Rev141\L1JP_cht\src\dist
Building MANIFEST-only jar: C:\Documents and Settings\user\desktop\Rev141\L1JP_cht\src\dist\JavaProject3.jar
jar:
BUILD SUCCESSFUL (total time: 0 seconds)
[661 byte] By [
27731678a] at [2007-11-27 11:06:48]

All the .class files are "zipped" into the .JAR file.
JAR files are like ZIPS except theyre 1337 and they contain a
manifest file that tells Java how to start the program.
Basically just think of it as a magic executable file thats also a
supernatural folder.
Thanks TuringPest ,
when i double kick on the .JAR in the "dist" folder,
it complain that
Failed to load Main-Class manifest attribute from
C:\..\dist\JavaProject4.jar
sounds that it needs a main class which i did not know how to set.
what I did was file>New Project, then choose General in the Categories, then choose java project with existing sources
in the next step, netbeans doesnt let me set main class
Message was edited by:
27731678
I dont use an IDE so I dont know how to set it in NetBeans, but
NetBeans HAS to let you edit the manifest file (the file that specifies
the main class). Google it or something.
Theres no way they would have released that program without it.
thanks for that
i have followed some website to set the class path but i failed!
could you introduce me some good webs which teach people how to set path please?
or if convenient, could you tell me here?