Skip to content
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

Exception in thread "main" java.lang.NoClassDefFoundError: spark/Route #1268

Open
heav-4 opened this issue Oct 12, 2022 · 1 comment
Open

Comments

@heav-4
Copy link

heav-4 commented Oct 12, 2022

i'm trying to run old software (2015ish) that is made using spark.

  Exception in thread "main" java.lang.NoClassDefFoundError: spark/Route
	  at java.base/java.lang.Class.forName0(Native Method)
	  at java.base/java.lang.Class.forName(Class.java:488)
	  at java.base/java.lang.Class.forName(Class.java:467)
	  at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)
  Caused by: java.lang.ClassNotFoundException: spark.Route
	  at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
	  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
	  at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	  ... 4 more
@lepe
Copy link

lepe commented May 16, 2023

My guess is that your class path or the way you are compiling your project is mistaken. The class spark.Route should exists (just check in your dependencies or external libraries).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants