-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoClassDefFoundError at java command to run demo project #10
Comments
@answerquest This is likely related to Java 9 (and 10)'s new module concept. In Java 8 and below many modules were loaded by default when running the JVM. Java 9 changed this, so for Java 9 and higher you need to include an extra command-line parameter to tell the JVM load certain modules that were previously included by default. Try something like:
The main question is what to include after the |
Thanks @barbeau . Couple of changes more needed on the command:
New command:
It got started, works but with a few issues / warnings:
This is running now so I'll close this issue and open a new one to track the google maps api thing. |
made an edit on the wiki page to show changed path to MBTA feed, and added extra command to run in case of error. |
Thanks @answerquest! Yes, updating the wiki is great. |
Note: the modules seem to have been entirely removed from java from v11 onwards. See : https://jaxenter.com/jdk-11-java-ee-modules-140674.html |
Hello, I'm on a Lubuntu 18.04 32-bit OS, have installed the default java runtime environment (
sudo apt-get install default-jre default-jdk
). Here's the version:Following the instructions on the wiki.
mvn package
happened successfully....but with the next java command, ran into error:
In python there's usually a module missing. I'm not so familiar with what to do in java though.
Searching the net gives this same error is happening in many other projects. Most are talking about Eclipse, Java 9, and they talk about adding something in eclipses' .ini. But I have java 10, no eclipse, so what do I do?
Ref: stackoverflow | bugs.eclipse | issues.apache | interviewbubble
The text was updated successfully, but these errors were encountered: