[Pljava-dev] NoClassDefFoundError?

Manuel manueldao at hotmail.com
Mon Apr 14 19:31:06 UTC 2008


I have a test1.jar, which has one class and a few methods. All of the methods work except the ones that call a static method or initialize a class that is located in another jar, test2. jar, which is included in test1. jar, I get the following error message from PostgreSQL:

  ERROR:  java.lang.NoClassDefFoundError: com/example/TestClass

  ********** Error **********

  ERROR: java.lang.NoClassDefFoundError: com/example/TestClass
  SQL state: XX000

test1.jar looks like this on the inside:

  a..    com/example/Main.class (includes "import com.example.TestClass")
  b..   test2.jar

test2.jar looks this on the inside:
  a..    com/example/TestClass

Any ideas as to why that may be happening?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pgfoundry.org/pipermail/pljava-dev/attachments/20080414/405b7633/attachment.html 


More information about the Pljava-dev mailing list