db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel John Debrunner (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-3176) J2ME support for phoneME platform disabled in 10.3
Date Tue, 06 Nov 2007 20:01:50 GMT

    [ https://issues.apache.org/jira/browse/DERBY-3176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540539
] 

Daniel John Debrunner commented on DERBY-3176:
----------------------------------------------

I think some cleanup needs to happen here, I now see that the JDK_ID should be set to the
base level of the specification and the J2ME flag set to true if it's a J2ME platform.

Thus J2ME/CDC/Foundation 1.1 should have:

JDK_ID=J2SE_14
J2ME=true

This should be the case for the existing J2ME support (the so called WCTME code) and the Phone
ME code (which probably should be a single code block).

I agree that default java version should be 1.4, but  because Derby only supports JDK 1.4,
not because a single vm vendor has deprecated their vm.

For GPL, we just need to ensure that we depend on nothing that could be seen as part of the
phone me api, e.g. a specific phoneme system property or a phoneme value of a system property.
To be careful do we need this comment?
  // Sun's phoneME platform is JDK 1.4 based
It's really the case that CDC/Foundation 1.1 is jdk1.4 based.

> J2ME support for phoneME platform disabled in 10.3
> --------------------------------------------------
>
>                 Key: DERBY-3176
>                 URL: https://issues.apache.org/jira/browse/DERBY-3176
>             Project: Derby
>          Issue Type: Bug
>          Components: JDBC
>    Affects Versions: 10.3.1.4
>            Reporter: Rick Hillegas
>            Assignee: Rick Hillegas
>         Attachments: derby-3176-01-phoneME-aa.diff, derby-3176-01-phoneME-ab.diff
>
>
> Derby 10.2 runs on the phoneME small device platform. However, on that platform Derby
10.3 fails to boot databases, complaining that Derby cannot find an appropriate implementation
of DataValueFactory.
> For details on how to install and run the phoneME platform, please see http://blogs.sun.com/wittyman/entry/javadb_on_sun_javame_cdc
These are great instructions but I needed to adjust them as follows:
> 1) I had to use 10.2 because 10.3 and the development mainline would not run on this
platform
> 2) I needed to to set LD_LIBRARY_PATH so that the vm could find the necessary shared
libraries.
> Here is the phoneME startup script which worked for me:
> #! /bin/bash
> #
> # Run an ij script in the phoneME vm
> #
> # $1 is the script to run
> export LD_LIBRARY_PATH=$CDC_HOME/lib
> cd ~/demo/tearoffToPhone/data
> $CDC_HOME/bin/cvm -Xbootclasspath/a:$JSR169_HOME/lib/jsr169.jar \
>   -cp $DERBYJARS/derby.jar:$DERBYJARS/derbytools.jar \
>   -Dij.dataSource=org.apache.derby.jdbc.EmbeddedSimpleDataSource \
>   -Dij.dataSource.databaseName=sample  \
>   -Dij.dataSource.createDatabase=create \
>   org.apache.derby.tools.ij $1

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message