I've got a simple java program, socket, AWT and jUnit dependencies.
I've built it in eclipse and when I run/debug it from eclipse it works.
When I launch it from the command line I get an error saying
Exception in thread "main" java.lang.NoClassDefFoundError
I'm guessing it's due to not finding one of the required dependencies in the classpath.
Given that launching from eclipse works, Is there a way of determining what command line eclipse uses to launch the same program?
It looks like your classpath isn't set appropriately when you try to run via the command line. You can easily export the command Eclipse uses by doing this:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With