I trying to compile my code in netbean (no red color highlight in code), but there is an error that cause it to fail. i not sure why is it error. Googled and cant find any helpful tips. one said that too many class in the file @@?

can anyone tell me what is wrong?Does it has anything to do with my netbean version (i am using 7.2.1)?

here is the error message:

608985907 - ERROR - AMS - 2 - Installation failed: Invalid JAD Exception, reason: 36, extra data: homework/TrainBookingSystem.class
    at com.sun.midp.installer.Installer.verifyMIDlet(), bci=66
    at com.sun.midp.installer.Installer.installStep7(), bci=494
    at com.sun.midp.installer.Installer.performInstall(), bci=167
    at com.sun.midp.installer.Installer.resumeInstallation(), bci=7
    at com.sun.midp.installer.MidpInstaller$StartAction.run(), bci=10
    at com.sun.j2me.security.AccessController.doPrivileged(), bci=12
    at com.sun.midp.installer.MidpInstaller$InstallThread.run(), bci=9
    at java.lang.Thread.run(Thread.java:743)
Corrupted JAR, error while reading: 
C:\Users\Ooi\Documents\NetBeansProjects\Homework\nbproject\build-impl.xml:782: Execution failed with error code 1.
BUILD FAILED (total time: 8 seconds)

Edited by peter_budo: Moved to mobile development

4 Years
Discussion Span
Last Post by ocw91

as the error says: you are working with an invalid (or corrupted) JAR file.
check the comments here
if you are working on J2ME, stop right now, and start using Java ME. There's no need to dwell in the past.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.