Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm not sure what happened but now when I boot up my Mac I get this message that pops up every time:

"The Java class file "myClass.class" could not be launched.
Check the Console for possible error messages."

This class file is part of a larger program I'm developing.

I checked the console and found the message with sender [0x0-0x1b01b] and the message says java.lang.NoClassDefFoundError: ....

I failed to find the Jar Launcher or anything Java related in /Library/StartupItems and ~/Library/StartupItems but that's all I thought to do.

Any ideas on why I'm getting this message and what to do to get rid of it?

share|improve this question
1) or the program you're developing may be started at login if they saved state: In the Finder press Cmd+Shift+G and type ~/Library/Saved Application State. Now look for folders named and after your program's identifier. Delete them. 2) Boot in safe mode ( If no message pops up look for jarLauncher and myClass.class entries in /Library/LaunchAgents and ~/Library/LaunchAgents. 3) Unlikely, but check whether a login hook is defined: defaults read LoginHook. Try sudo defaults ... also. – jaume Jun 21 '13 at 10:37

Finally found it in System Preferences -> Users -> Login items.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.