Questions tagged [classnotfound]
212 questions
83
votes
13 answers
javac1.8 class not found
I have installed two jdks - jdk 1.5 and jdk 1.8.
I have following Ant build.xml config file :

kamilz
- 833
- 1
- 6
- 7
17
votes
8 answers
Android: unable to start service intent: not found?
I know, I am not the first onbe with this problem, but I tried so many solutions, I have found and no one works... maybe you could find the error
The error (also came so without .class and with /.Client depending on other settings)
12-02…

nico
- 1,039
- 4
- 13
- 27
17
votes
5 answers
Android - Unable to instantiate activity - Class not found exception after upgrading to ADT 22
I have recently upgraded my ADT to version 22.
After I have done so, I first received an error with my support library (which was relied on another library project).
After I have copied the support library to my project and cleaned all my projects,…

MrByte
- 1,083
- 2
- 11
- 21
15
votes
5 answers
HttpClient NoClassDefFoundError
I am trying to run a sample application from HttpClient 4.0.1. It is the file ClientMultiThreadedExecution.java from the examples section. I put in these files in the classpath:…

user389753
- 153
- 1
- 1
- 4
9
votes
2 answers
Adding WARs to Java's classpath
I have two wars, foo.war and bar.war. foo uses classes from bar.
I'm trying to start foo, and add to Java's classpath bar.war, but java throws a ClassNotFoundException.
If I rename bar.war to bar.jar and edit its directory structure to look like a…

ripper234
- 222,824
- 274
- 634
- 905
7
votes
4 answers
Class not found using the boot class loader; no stack trace available
i got simmilar post but nothing working
i have android studio 2.3.1
gradle version 2.3.1
appcompat-v7:25.3.1
I create a new project by android studio(one that is automatically created by Android Studio(Hello Word)). I haven't write any thing in…

Puneet Verma
- 1,373
- 2
- 19
- 23
7
votes
2 answers
iText and org.bouncycastle.asn1.ASN1Primitive not found
I'm a newbie on iText. This is my first project using this library.
I'm building a PDF with essentially a big table on it, and while compiling, i'm getting this Class Not Found error: class file for org.bouncycastle.asn1.ASN1Primitive not found
I'm…

phrfpeixoto
- 191
- 1
- 2
- 11
6
votes
6 answers
ClassNotFoundException Android
So I ran into a problem today while working on my Android program. I have a class that turns that an XML string into a Java object (third party) and it works fine in as a regular java project but on Android I get this weird error:
06-21…

jakehschwartz
- 1,005
- 2
- 13
- 32
5
votes
4 answers
Maven Jar Builder: Could not find or load main class
I have been trying for several days now to create an executable jar file for my muli-module maven project. However, when I try to run this jar file I get "Could not find or load main class src.main.java.com.domain.Mainclass" (I have changed the name…

Jonstewart
- 55
- 1
- 1
- 5
5
votes
2 answers
Main class not found, IntelliJ building a jar
I am running into problems when I try to run the jar file created in IntelliJ.
I followed the steps laid out here: How to build jars from IntelliJ properly? and searched far and wide for other people with the same problem using IntelliJ, and found…

sideways8
- 153
- 1
- 1
- 14
4
votes
3 answers
Laravel 4.2 to 5 Class 'App\Http\Controllers\Controller' not found
I upgraded my project from Laravel 4.2 to 5.0 but I get this error when I finish the process:
Class 'App\Http\Controllers\Controller' not found' in .../app/Http/Controllers/Auth/AuthController.php:8
But the mentioned controller is there, in…

Paulo Coghi
- 13,724
- 14
- 68
- 90
4
votes
2 answers
maven-shade-plugin vs maven-assembly-plugin
I wrote a hadoop MR job using spring-data-hadoop and used maven-shade-plugin to pack all necessary jars.
But when I ran the job from comand line:hadoop jar , it gave me Exception for ClassNotFound for the spring-beans.
Resulting problem in loading…

user1516083
- 81
- 7
4
votes
3 answers
Running Java program from Python
I've looked here, here, here, and here.
While informative they just didn't quite have enough for me to discover the root of my problem. My code isn't contained within a JAR file and the customer has requested we do not ship it as such.
I built the…

wheaties
- 35,646
- 15
- 94
- 131
4
votes
3 answers
symfony 2.1 phpunit Swift_Message class not found
I've an issue with symfony and phpunit. Our peoject is growing bigger and bigger. So we decided to activate process isolation for phpunit because the server couldn't stand the amount of tests anymore (Not enough RAM). Since then all test which send…

dj_thossi
- 774
- 1
- 9
- 18
4
votes
1 answer
No class definition found error occurs while trying to run the lucene app from command line
I'm a beginner to lucene and I had tried to run a sample app (HelloLucene.java) given in the website http://www.lucenetutorial.com/lucene-in-5-minutes.html. The code was successfully compiled and a class file (HelloLucene.class) was created for the…

rajesh
- 179
- 1
- 3
- 16