Subject Re: [Firebird-Java] problems with Class.forName
"Harrison, Matthew" schrieb:
> Hi all-
> I'm trying to test out firebird but am having trouble connecting.
> I get an
> java.lang.NoClassDefFoundError: javax/resource/ResourceException
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source)
> at com.kanisa.GSBuilder.DataAccess.DataObject.<init>(
> at com.kanisa.GSBuilder.DataAccess.DataObjectFactory.getDataObject(
> at com.kanisa.GSBuilder.DataAccess.DataAccessTester.testCreateBaseTypes(
> at java.lang.reflect.Method.invoke(Native Method)
> at junit.framework.TestCase.runTest(
> at junit.framework.TestCase.runBare(
> at junit.framework.TestResult$1.protect(
> at junit.framework.TestResult.runProtected(
> at
> at
> at junit.framework.TestSuite.runTest(
> at
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
> at
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(

You just have to include the J2EE-jar to your classpath. This
is a little bit ugly I think, because just for using JDBC 2.0
there ist no functional need for any classes of J2EE. Perhaps
there are others having a good explanation.

Hans Georg