Click here to Skip to main content
15,892,537 members

Comments by caabool_oo (Top 23 by date)

caabool_oo 12-Jun-11 12:55pm View    
Thank you very much...
caabool_oo 23-Apr-11 19:15pm View    
sorry for late :"(

I wrote inside the manifest.mf

Main-Class: OtheApplet

When i try to create the jar file i got this error:

C:\Users\LooOOooly\Documents\NetBeansProjects\OthelloApplet\src\othelloapplet>jar -cf OthelloApplet.jar -m manifest.mf
-m : no such file or directory

!!!!!!!!!!!!!!??????
caabool_oo 22-Apr-11 6:06am View    
No, i read it all, but it does not work with me. when i try to build the .jar file i got this error:

C:\Users\LooOOooly\Documents\NetBeansProjects\OthelloEE\src\OthelloGame>jar cvfm OthelloEE.jar *.class mainclass.txt
java.io.IOException: invalid header field
at java.util.jar.Attributes.read(Attributes.java:389)
at java.util.jar.Manifest.read(Manifest.java:182)
at java.util.jar.Manifest.(Manifest.java:52)
at sun.tools.jar.Main.run(Main.java:132)
at sun.tools.jar.Main.main(Main.java:1022)

please help ... :(
caabool_oo 21-Apr-11 5:13am View    
when i follow the first link it give me this error

C:\Users\LooOOooly\Documents\NetBeansProjects\OthelloEE\src\OthelloGame>jar cvfm
OthelloEE.jar *.class manifest.mf
java.io.IOException: invalid header field
at java.util.jar.Attributes.read(Attributes.java:389)
at java.util.jar.Manifest.read(Manifest.java:182)
at java.util.jar.Manifest.<init>(Manifest.java:52)
at sun.tools.jar.Main.run(Main.java:132)
at sun.tools.jar.Main.main(Main.java:1022)

I think the problem is in the manifest.mf

when i add Main-Class: mainclss.class

my program do not have a main method in the main class it use inti() insted of main(), so when he try to run the applet he could not find the main method.

what should i do??
caabool_oo 9-Apr-11 2:59am View    
in netbeans the java files and classes saved in different location..
is this a problem ??