1 Reply Latest reply: May 5, 2010 7:22 AM by EJP RSS

    java.io.IOException: line too long

    843804
      I am trying to compile two class files into an executable jar. I have entered the following commands into the terminal:

      metalforever@merlin:~/NetBeansProjects/PsychicTest/src/psychictest$ jar -cf PsychicTest.jar *.class
      metalforever@merlin:~/NetBeansProjects/PsychicTest/src/psychictest$ jar -cmf PsychicTest.jar main.txt *.class
      java.io.IOException: line too long
           at java.util.jar.Attributes.read(Attributes.java:379)
           at java.util.jar.Manifest.read(Manifest.java:199)
           at java.util.jar.Manifest.<init>(Manifest.java:69)
           at sun.tools.jar.Main.run(Main.java:169)
           at sun.tools.jar.Main.main(Main.java:1167)


      My manifest file(main.txt) says the following:
      Main-Class: PsychicTest





      Help?