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
com.sun.midp.installer.InvalidJadException
    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)

Recommended Answers

All 2 Replies

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.

thanks for the reply

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.