db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joisten, Andreas (GE Infra, Energy)" <andreas.jois...@ge.com>
Subject fail install Derby
Date Mon, 03 Mar 2008 13:15:09 GMT
Dear derby-dev,

My name is Andreas Joisten, and I do work as a Product Specialist for GE Energy, Germany Ratingen.

Among other products, we develop and market a Mobile GIS (please see http://www.gepower.com/prod_serv/products/gis_software/en/field_infosys.htm),
which we now want to make available for PocketPcs, therefore we are keen to test CrEme 4.12
as the JVM. 

We normally use the Cloudscape database and here I decided for Derby 10.2.20, as this Version
supports J2ME.

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.

See EclipseStructure.jpg


##############################


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


################################


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:

NSIcom Ltd., CrEme(tm) Evaluation Version
CrE-ME J2ME(tm)
CrE-ME V4.12 B142.190307 19-March-2007
  MemoryLimit=29056Kb
EBCI(TM) Interpreter V1.00,
Copyright 1998-2002 by Bytecodes, Inc.
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?




But it does not run either.




Please explain my mistake! What can I do better?

Best regards and Thanks a lot



Andreas Joisten, GE Energy 

andreas.joisten@ge.com



Mime
View raw message