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]
# 1

echo

TuringPesta at 2007-7-29 13:17:53 > top of Java-index,Java Essentials,New To Java...
# 2

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.

TuringPesta at 2007-7-29 13:17:53 > top of Java-index,Java Essentials,New To Java...
# 3

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

27731678a at 2007-7-29 13:17:53 > top of Java-index,Java Essentials,New To Java...
# 4

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.

TuringPesta at 2007-7-29 13:17:53 > top of Java-index,Java Essentials,New To Java...
# 5

could you please tell me how to change *.java into *.class please.

I have read a lot of teaching website, yet I still have no idea.

I just keep trying...

27731678a at 2007-7-29 13:17:53 > top of Java-index,Java Essentials,New To Java...
# 6

command line:

javac JavaFile.java

this will create:

JavaFile.class

TuringPesta at 2007-7-29 13:17:53 > top of Java-index,Java Essentials,New To Java...
# 7

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?

27731678a at 2007-7-29 13:17:54 > top of Java-index,Java Essentials,New To Java...
# 8

javac -cp . JavaFile

TuringPesta at 2007-7-29 13:17:54 > top of Java-index,Java Essentials,New To Java...
# 9

i still dont understand!

im trying to use jcreator now...seems better...

but i still cant make a .class file /_\

27731678a at 2007-7-29 13:17:54 > top of Java-index,Java Essentials,New To Java...
# 10

well that means your jcreator does not have the path for your java folder. try to search it on google on setting the path in jcreator. its easy one step. i dont use jcreator anymore :(

lrngjavaa at 2007-7-29 13:17:54 > top of Java-index,Java Essentials,New To Java...