On 3/3/08, Joisten, Andreas (GE Infra, Energy) <[EMAIL PROTECTED]> wrote:
> Dear derby-dev,
> At first I tested with Eclipse 3.2, you can see the structure of my project. 
> I can create a database and tables.  This test is fine.
>
...
> Then I want to install Derby on my PocketPc. I have copied the Derby.jar, 
> derbytool.jar and jdbcPackage.jar in the folder \windows\CrEme\lib.
>
> After that, I built a new jar with my test-class "DerbyVersion1.java". I also 
> define this class as the main-class for the jar.
>
> Although it is the same code, it does not run on my PocketPc.
>
>
> I get this Error Message:
>
> Main class: DerbyVersion1
> -jar: jar fie /JarFiles/derbyVersion1.jar not found: 
> java.lang.reflect.InvocationTargetException
>
I can't help you much with this one...but...

> Then I try an other way. I thought, that the classpath ist wrong, so I create 
> a folder with all *,jar and biuld the following link:
>
>
> 255#"\windows\CrEme\bin\CrEme.exe" -Of -classpath'\MyLib\derby.jar'; 
> '\MyLib\derbytools.jar'; '\MyLib\jdbcPackage.jar' -jar 
> \JarFiles\versionDerby1.jar DerbyVersion1
>
> Now, I get this error message:
>
....
> java.lang.IncompatibleClassChangeError: Unimplemented interface method
>        at org.apache.derby.jdbc.InternalDriver.connect()
>        at org.apache.derby.jdbc.EmbeddedSimpleDataSource.getConnection()
>        at org.apache.derby.jdbc.EmbeddedSimpleDataSource.getConnection()
>        at DerbyVersion1.runDemo()
>        at DerbyVersion1.main()
>

>
> Why runs Derby in Eclipse and not on my PocketPc?
>
I think you have missed a detail - on the PocketPC, your JVM is *not*
the same as with eclipse. On the PocketPC, the J2ME jvm is based (but
not identical to) the 1.4. specification. You will need to compile (I
used my 1.5 jvm) your app specifying -source 1.4 -target 1.4, like so:
   javac -source 1.4 -target 1.4 DerbyVersion1.java

I think that will work for you - it worked for me.

Myrna

Reply via email to