On 6/13/07, Daniel John Debrunner <[EMAIL PROTECTED]> wrote:

Mike Jarmy wrote:

>
> FYI -- For anyone else reading this thread, JclMax is a superset of J2ME
> which includes quite a few more classes, but sadly java.sql.* is not
> among them.


What environment are you running in? JCLMax is not any official Java
profile so it may or may not work with Derby. Derby works on
J2ME/CDC/Foundation 1.0/1.1, jdk 1.3, jdk 1.4, jdk 1.5 & jdk6.

If you run

java org.apache.derby.tools.sysinfo

and send the output it will be a help. There is a line that indicates
what Derby thinks the JVM support level is:

E.g. I see this in JDK 1.4.2

--------- Derby Information --------
JRE - JDBC: J2SE 1.4.2 - JDBC 3.0

Dan.


OK, I actually have Derby working on J9/JclMax now.  The problem was that
J9/JclMax was telling Derby that its java.version was "1.4.2 subset", which
(although technically true) was confusing Derby into trying to load classes
that use java 1.4 packages such as java.nio.  So what I did as a
quick-and-dirty way to get it working was comment out the static block in
org.apache.derby.iapi.services.info.JVMInfo and replace it with the
following code:

       JDK_ID = J2SE_13;
       J2ME = false;  // JclMax is a superset of J2ME
       JAVA_SQL_TYPES_BOOLEAN = java.sql.Types.BIT;

Everything seems to work fine now.  It would be nice if there was a more
graceful way to handle this though.  If anyone has suggestions for how I
ought to modify JVMInfo to properly handle this situation, I'd be glad to
contribute the code back to the project.  Although JclMax is not an official
Java profile, it is an IBM product, just not a 'coffee-cup-branded' one.

Once again here is my sysinfo output in QNX:

# /ive/bin/j9 -Xbootclasspath/a:/ive/lib/jdbc.jar -Xmso128K -jcl:max
-noverify -Xmx48M -Xms48M org.apache.derby.tools.sysinfo
   ------------------ Java Information ------------------
   Java Version:    1.4.2 subset
   Java Vendor:     IBM Corporation
   Java home:       /ive
   Java classpath:
/ive/lib/jclMax/classes.zip:/niagara/modules/baja.jar:/ive/lib/prsnlqnx.jar:/ffs0:/ffs0/derby.jar
   OS name:         QNX
   OS architecture: ppc
   OS version:      6.3.2
   Java user name:  tridium
   Java user home:  /
   Java user dir:   /ffs0
   java.specification.name : Java Platform API Specification
   java.specification.version: 1.4
   --------- Derby Information --------
   JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
   [/ffs0/derby.jar] 10.2.2.0 - (???)
   ------------------------------------------------------
   ----------------- Locale Information -----------------
   ------------------------------------------------------

Reply via email to