Skip to content

Getting Started with Eclipse on Mac OS X: java.lang.NoClassDefFoundError

Just sharing a quick tip that’s frustrated me for the past couple hours. I installed Eclipse on my Mac and wrote a small HelloWorld program to check that all my paths and everything were setup fine. Alas, no matter what I tried, changing class paths, default Java versions (via the Java Preferences pane), and different eclipse Run Configurations, I kept receiving a java.lang.NoClassDefFoundError.

The error log begins/ends with:
at :679)
at org.eclipse.equinox.launcher.Main.basicRun(Main.ja va:574)
at 07)

Thankfully, the solution is simple (once you figure it out). Add this line to /Applications/eclipse/configuration/config.ini:

Posted in Tutorials.

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

or, reply to this post via trackback.


Log in here!