#how do i fix the class not found exceptino error in java?

5 messages · Page 1 of 1 (latest)

torpid epoch
#

this is my error: Exception in thread "main" java.lang.NoClassDefFoundError: Jama/Matrix at PVector.crossProduct(PVector.java:219) at Face.getNormal(Face.java:37) at Face.getPlane(Face.java:66) at Face.equals(Face.java:53) at Main.main(Main.java:77) Caused by: java.lang.ClassNotFoundException: Jama.Matrix at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) at PVector.crossProduct(PVector.java:219) at Face.getNormal(Face.java:37) at Face.getPlane(Face.java:66) at Face.equals(Face.java:53) at Main.main(Main.java:77) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:578) at jdk.compiler/com.sun.tools.javac.launcher.Main.execute(Main.java:435) at jdk.compiler/com.sun.tools.javac.launcher.Main.run(Main.java:205) at jdk.compiler/com.sun.tools.javac.launcher.Main.main(Main.java:132)

but where do i put the jama matrix jar file so that i wont see this error anymore?

crisp fableBOT
#

This post has been reserved for your question.

Hey @torpid epoch! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

prisma shore
#

The jar needs to be declared as being part of the classpath. How to do that depends on your environment.
I would have expected you'd have googled something like "how to add a jar in <my environment>"

rare raft
#

How are you execute the program?