Questions tagged [classnotfoundexception]

The Java exception thrown when an application tries to load a class by name but is not able to find the class.

The Java exception thrown when an application tries to load a class by name. Usually raised by one of:

  • the forName(String) method in class Class
  • the findSystemClass(String) method in class ClassLoader
  • the loadClass(String) method in class ClassLoader

when no definition for the class with the specified name could be found in the .

Don't confuse it with , it's a different kind of error, see the following links for more details:

2221 questions
8
votes
2 answers

Using Eclipse BIRT Report Designer via PHP

I want to use Birt Reports in an php webproject. Therefore I installed the recommend Java Bridge and the BIRT Runtime by moving JavaBridgeTemplate621.war and birt.war to my Tomcat. After that I wrote a short class calling the BirtEngine: try { …
Timo S
  • 81
  • 2
8
votes
5 answers

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/Google/Android/gms/common/API/API$zzf;

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/api/Api$zzf; I am getting above error at run time. I set multiDexEnabled true, but I'm still getting the error. I am not able to find reason behind it. There is no…
Amar Giram
  • 157
  • 1
  • 2
  • 12
8
votes
4 answers

java.lang.ClassNotFoundException: org.sqlite.JDBC Androidstudio Java Module

I have no clue (too stupid), why my app doesn't find the jdbc class at runtime: Exception in thread "main" java.lang.ClassNotFoundException: org.sqlite.JDBC Do you have any hint ? Complete Simplified usecase in this repo :…
mcfly soft
  • 11,289
  • 26
  • 98
  • 202
8
votes
2 answers

ClassNotFound: android.view.ViewStructure with Support Library 26.0.2 - 27.0.0

I see a crash on Samsung Galaxy S5 with Android 4.4.2 NoClassDefFoundError: android/view/ViewStructure This has been happening since I updated the Support Library to 26.0.2. Now it's also happening on 27.0.0, even though I expected such issues to…
8
votes
3 answers

Derby gives ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver while using Maven

I have seen following topics, but they doesn't post solution to my question: java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver JDBC Derby driver not found SQLException: No suitable driver found for…
8
votes
1 answer

Android: ClassNotFoundException when using library project that has gradle dependencies

I have a custom view library that compiles and runs correctly on it's own (through another activity created just for testing purposes inside the library project). However when I build the library, and then import the aar into another project (open…
8
votes
2 answers

Android Application ClassNotFoundException, Unable to instantiate application

This exception is reported 10/week, I tried to find solution but failed. I'm a little frustrated with this sort of exception, and searched all related posts. (P.S. I noticed that full name (android:name="com.example.AcraApplication") throw more…
thecr0w
  • 2,148
  • 4
  • 33
  • 59
8
votes
1 answer

Class from rt.jar not found

In JBOSS EAP 6 (AS 7): I am making a call to Spring's WebServiceTemplate.marshalSendAndRecieve which in turn is having trouble finding a class that exisits in rt.jar Caused by: java.lang.ClassNotFoundException:…
km2000
  • 305
  • 2
  • 10
8
votes
3 answers

ClassNotFoundException oracle.jdbc.driver.OracleDriver only in servlet, using Eclipse

The code below fails on the line: Class.forName("oracle.jdbc.driver.OracleDriver"); with the error: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver The two printlns print: Wed_Jun_22_11:18:51_PDT_2005 false This makes me think…
Geoff
  • 83
  • 1
  • 1
  • 3
7
votes
2 answers

Why Exception in thread "main" java.lang.NoClassDefFoundError:?

I run my software through Eclipse. Yesterday everything was fine. I made not changes to the code but today, when I am trying to run it again I get the following error messages: Exception in thread "main" java.lang.NoClassDefFoundError:…
Roman
  • 124,451
  • 167
  • 349
  • 456
7
votes
3 answers

java.lang.NoClassDefFoundError and ClassNotFoundException after add android Facebook SDK to the project

I just added android Facebook SDK to my project to use Facebook ads to promote my app and the app crashes on starting, I got this exception here's the log E/AndroidRuntime: FATAL EXCEPTION: main Process: www.pro_cs_is.com, PID: 20307 …
7
votes
1 answer

java.lang.ClassNotFoundException: android.support.v4.view.TintableBackgroundView

In Android Studio I was developing for minSdkVersion 19, when I changed it to 21 the following error appeared in all my layouts: java.lang.ClassNotFoundException: android.support.v4.view.TintableBackgroundView at…
7
votes
5 answers

java.lang.ClassNotFoundException: Didn't find class on path: DexPathList , After updating sdk

Hello guys My application was all working fine till yesterday, i updated my SDK yesterday and it started giving error first it gave an error No resource found at values v24 .... some thing like this i searched and solved it by changing following…
Manohar
  • 22,116
  • 9
  • 108
  • 144
7
votes
1 answer

Android Socket + ObjectOutputStream not working correctly

I am developing a client/server program where the client is an android device. The server has a listener class that reads an object from the input stream. I created a client software for another COMPUTER that sends a small object over a local…
7
votes
2 answers

ClassNotFoundException: Didn't find class "android.support.design.widget.AppBarLayout"

I'm using AppBarLayout and NestedScrollview in my code .But I get a error. The code compile successfully but crash with the stacktrace 05-02 17:10:17.255 31335 31335 E AndroidRuntime: FATAL EXCEPTION: main 05-02 17:10:17.255 31335 31335 E…
user6280532
  • 71
  • 1
  • 1
  • 4