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
0
votes
2 answers

Unable to instantiate activity ComponentInfo in android 4.1.2

Hi I'm trying to run my app in a device with android 4.1.2 but I get this error. for some reason my app works fine in android 7.0. In my project I use this library eu.long1.spacetablayout.SpaceTabLayout which I think is the reason for the problem.…
0
votes
1 answer

ClassNotFoundException after Java version update

I have an old Java web application that still uses Applets (not my decision). After a recent Java upgrade (I believe it was 1.7 to 1.8) the app now throws a ClassNotFoundException and says that it can't find the JApplet class the Applet derives from…
Tim Mitchell
  • 643
  • 2
  • 13
  • 29
0
votes
1 answer

java.lang.ClassNotFoundException in android 4.0 After Adding the Ad Mob in App

After Adding the Ad Mob in App , its working in higher version above 5.0 but its not working in 4.0 , i am getting the following exception java.lang.RuntimeException: Unable to instantiate service…
Mithun
  • 3
  • 2
0
votes
1 answer

How to add jar file into the class-path while running another jar file during run time

I have a jar file(mts.jar) to run and it requires another jar(hook.jar) to be added at the runtime. mts.jar is dependent on some of the classes present in hook.jar. And our requirement is to pass this hook.jar in classpath at runtime while running…
Jet
  • 3,018
  • 4
  • 33
  • 48
0
votes
0 answers

ClassNotFoundException is thrown but application does NOT crash

There is a problem in our released app that is driving us crazy. The app has run smoothly for the last two years in Google Play. We updated Android Studio and some libraries weeks ago and the "Android Vitals" shows a lot of errors since then. The…
0
votes
0 answers

Java Eclipse ClassNotFoundException after importing external JARs

I'm getting a ClassNotFoundException when I try to execute the following code: import org.apache.commons.text.WordUtils; public class CapitalizeFirstLetters { public static void main(String[] args) { String str="this is a test"; …
Psycho
  • 1
  • 1
0
votes
0 answers

ClassNotFoundException when executing a .jar, but not when executing with classpath

I have this code in Java that I'm to compile and execute. The code itself is working and the compilation goes ok. When I execute the code giving the classpath, with a command like "java -cp classes:lib/* main.class parameters" it works well. But…
0
votes
1 answer

Instrumentation run failed due to 'java.lang.NoClassDefFoundError' after adding multidex to my application

This is the continuation of this question: Unable to merge dex - how to exclude proper jar? I have not a typical android project, i am just working on the separate module, which is not connected with activies, fragments, UI etc. in my manifest i am…
K.Os
  • 5,123
  • 8
  • 40
  • 95
0
votes
0 answers

ClassNotFoundException while replacing java 6 rmi w/ java 8

UPDATE I was able to get my rmi working by placing exporting the classpath before launching rmiregistry. > export CLASSPATH=/opt/filtec/syscom.jar > rmiregistry The java 6 registry did not require the classpath to be set because codebases were…
simgineer
  • 1,754
  • 2
  • 22
  • 49
0
votes
1 answer

Android app dependencies ClassNotFoundException

I'm new in Android development. Not very new in ordinary EE Java and Gradle. So I am trying to build a REST consumer app for Android. I have a (1) .jar file I will need (contains DTOs and api consumers). That (1) .jar has dependencies on other (2)…
netikras
  • 422
  • 4
  • 12
0
votes
2 answers

Error on Running java code to generate Blank jasper report automatically

I tried to run a blank Jasperreport (Blank A4.Jrxml) using Jaspersoft studio 6.4.0 using Eclipse Neon JAVA EE IDE. Every time I run this code I was asked to add a jasper jar dependency file. So I downloaded Jasper library and Jasper jar files into…
saleem
  • 11
  • 1
  • 6
0
votes
0 answers

RMI Problems continue via java.rmi.ServerException

My code is throwing an error: the RMI server gets to a point and then: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:…
Cameron2222
  • 41
  • 1
  • 7
0
votes
2 answers

AdMob add not showing up on android

I tried with the test with the 'App-id' and the 'Add Unit id' and the actual ids on signed APK. The add does not show up both times. I get this warn in logcat: 10-10 15:17:53.308 6601-7082/com.babygameseeepe.shreyak.babygames W/Ads: Invoke Firebase…
Flying Monkey
  • 669
  • 1
  • 5
  • 13
0
votes
0 answers

Web Start app exception on launch

I have a problem when launch my web start app. I take a ClassNotFoundException by an external Jar, but this jar is correctly defined in my jnlp and his path it's correctly accessible too. This is the trace of the exception: 13:05:05.848 [Thread-18]…
0
votes
1 answer

WeightingScale Issues Due to Applets

In our application we load applet to read data from serial ports and USB ports of the machine. The applet code is working fine from past so many years but when we migrated to IE 11.0.44 version, the browser is hanging for 2 to 3 minutes while…
1 2 3
99
100