Questions tagged [classnotfound]

212 questions
2
votes
2 answers

ClassNotFound exception when loading applet in Chrome

I'm having a hard time getting a Java applet to run in Chrome. The class loader can't find the class, even though the it works fine in Firefox, Opera and Safari. Here's my test applet class (I even took out the package declaration to keep it…
Rolf Staflin
  • 2,092
  • 2
  • 22
  • 19
2
votes
4 answers

Zend framework Fatal error: Class 'Application_Model_DbTable_Albums' not found in

I am trying to learn Zend framework from "Getting Started with Zend Framework" By Rob Allen. I have used the same example that has been given, but getting the error - Fatal error: Class 'Application_Model_DbTable_Albums' not found in…
user556773
  • 111
  • 2
  • 11
2
votes
2 answers

Servlet giving error java.lang.NoClassDefFoundError

I am using the following code in a servlet of my app java.awt.Image awtImg = java.awt.Toolkit.getDefaultToolkit().createImage(str1); When I run the application and call the servlet I get the following error java.lang.NoClassDefFoundError: Could not…
Sangeet Menon
  • 9,555
  • 8
  • 40
  • 58
2
votes
4 answers

Is a good idea have a BaseController and make all controllers extend that class?

I need some common behaviors in all controllers. Is a good idea have a BaseController and make all controllers extend that class? If so, What is the correct way to avoid the Fatal error: Class 'BaseController' not found error.
texai
  • 3,696
  • 6
  • 31
  • 41
2
votes
0 answers

Cannot access CPCallbackClassLoaderIf / XMLable (class file not found, when using Java 8)

I've a strange problem, I cannot compile following code (with Java 8, with Java 6 I've no problems!). I got following compile-time errors: Compile Error 1: error: cannot access CPCallbackClassLoaderIf com.sun.javaws.jnl.JARDesc[] descs =…
Ben
  • 3,378
  • 30
  • 46
2
votes
2 answers

Caused by: org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [Employee]

I am writing a simple Hibernate program on Eclipse. I did everything steps by steps but then after compiling its showing: Caused by: org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [Employee] Caused by:…
2
votes
0 answers

Fatal error: Class 'SendGrid' not found

I've written a function to send emails using SendGrid's PHP library. It works everywhere except when I try to use it on a form submit event. When clicking submit I get an error Fatal error: Class 'SendGrid' not found in ... on line 72 Everything…
Picard102
  • 624
  • 1
  • 9
  • 21
2
votes
0 answers

classnotfound issue with xposed (instant run disabled)

I make a xposed module to modify the google messenger application but I have a problem with a class that xposed can't find using the boot class loader : public class XposedModSendTimestamp implements IXposedHookLoadPackage { public void…
Flo
  • 21
  • 3
2
votes
2 answers

Codename One class file for PrintWriter not found

I have a problem, in the class generated by WebService Wizard of codename one. I can do the import java.io.PrintWriter, but when I compile the project I get this error: error: cannot access PrintWriter PrintWriter out =…
platinum
  • 51
  • 1
2
votes
1 answer

Spring boot custom logger log4j2

I have a simple spring boot JAR application, which uses a custom logging library. ( An extension on top of log4j2 ). The log4j2.xml element Configuration has the name of the "package" where the appender can be found. This custom logging library…
IronKnight
  • 101
  • 1
  • 6
2
votes
1 answer

Android Studio - import can find package but not class

It's hard to describe without an image: Edit: (I can't post an image till I have more reputation). The jar exists in External Libraries, and the package contains the class ('org.robolectric.AndroidManifest'). The import statement is grey up till…
Yervant
  • 225
  • 2
  • 8
2
votes
2 answers

com.google.android.gms classes not found after update of play-services to 6.5.87

After updating sdk tools and google play services to 6.5.87 I now couldn´t find com.google.android.gms in my android project (android studio). How could I fix this problem? One of errors is now: error: cannot find symbol class…
2
votes
2 answers

JSONObject cannot be resolved to a type

I cannot import JSONObject, I thought this was something that came with java and an external jar is not needed, why is it saying it cannot find it?
124697
  • 22,097
  • 68
  • 188
  • 315
2
votes
1 answer

Quartz Scheduler - NoClassDefFoundError

I am using Quratz 1.6.3 API in a Maven project. This is the error message I get when I run it: java.lang.NoClassDefFoundError: org/apache/commons/collections/SetUtils at org.quartz.JobDetail.(JobDetail.java:85) ..... commons.collections 3.2…
Susmitha Pandi
  • 155
  • 1
  • 3
  • 11
2
votes
5 answers

Java Class.forName method java.lang.ClassNotFoundException;

I've found other thread where people had and solved this error; however, all of were NOT using fully qualified class paths. I cannot seem to get Class.forName to work and I am using fully qualified paths. I've tested compiling from CLI and using…
webish
  • 701
  • 2
  • 9
  • 17
1 2
3
14 15