Top "Classpath" questions

In Java, the classpath tells the Java Virtual Machine where to look for user-defined classes and packages when running Java programs.

java.lang.ClassNotFoundException / NoClassDefFoundError for com/fasterxml/jackson/databind/ObjectMapper with Maven

I get the following error when trying to run a java program that uses jackon's ObjectMapper class: Exception in thread "…

java maven classpath fasterxml
Classpath does not work under linux

Anyone have an idea why this command works fine in Windows but in Linux I get a ClassNotFoundException game.ui.…

java linux classpath
Setting up java classpath and java_home correctly in Ubuntu

I am getting the error Exception in thread "main" java.lang.NoClassDefFoundError: When I try and run a compiled class …

java ubuntu path classpath java-home
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

I am getting this error when compiling my java program java.lang.ClassNotFoundException: com.mysql.jdbc.Driver Then I knew …

java jdbc classpath classnotfoundexception
In Maven, how output the classpath being used?

For my current purposes I have a Maven project which creates a war file, and I want to see what …

maven classpath war maven-war-plugin
Is it possible to have Ant print out the classpath for a particular target? If so, how?

I'm trying to get a target to build that has quite a long list of <pathelement location="${xxx}"/> …

java ant classpath target
Ubuntu: change the path from OpenJDK 6 to Oracle JDK 7

After downloading the latest .tar file I ran tar zxvf jdk-7u45-linux-x64.tar.gz to extract java files. Set …

java classpath ubuntu-10.04
Getting ClassNotFoundException on code: "Class.forName("com.microsoft.sqlserver.jdbc.SqlServerDriver");"

This is my first Java application and I'm completely inexperienced with Java and NetBeans. I have been trying to connect …

java classpath classnotfoundexception sqljdbc
Ant + JUnit: NoClassDefFoundError

Ok, I'm frustrated! I've hunted around for a good number of hours and am still stumped. Environment: WinXP, Eclipse Galileo 3.5 (…

java ant junit classpath hamcrest