How to keep the Palm Java JVM OasisVM (JRE) with webOS 2.0 and above

From WebOS Internals

Jump to: navigation, search

More info about Java Support in webOS

Go here : Java Support in webOS

Installation steps

I use webosdoctorp101ueu-wr.jar file (webos doctor 1.4.5 for Palm Pre Plus with SFR Carrier in France.

  • 3) Extract the doctors as follows:

1.4.5: Unzip the Doctor file (.jar); Open "resources" folder; Untar webOS.tar; Open "webOS" folder; Untar "nova-cust-image-castle.rootfs.tar.gz"; Open "nova-cust-image-castle.rootfs" folder

  • 4) Pull the following FILES out of the webOS 1.4.5 doctor with :


copying these 4 files in oasis-vm/bin folder that you have created 
/usr/bin/javahy                                                                   
/usr/bin/jps                                                                      
/usr/bin/jthreads                                                                 
/usr/bin/jtop


copying the /usr/lib/jvm folder by copy and paste with all the files in oasis-vm folder that you have created

/usr/lib/jvm/java-1.5-palm/bin/.debug/libvmi.so                                   
/usr/lib/jvm/java-1.5-palm/bin/java                                               
/usr/lib/jvm/java-1.5-palm/bin/libvmi.so     
/usr/lib/jvm/java-1.5-palm/lib/rt.jar   
/usr/lib/jvm/java-1.5-palm/jre/bin/harmony.properties                             
/usr/lib/jvm/java-1.5-palm/jre/bin/harmony_ca.properties                          
/usr/lib/jvm/java-1.5-palm/jre/bin/harmony_cs.properties                          
/usr/lib/jvm/java-1.5-palm/jre/bin/harmony_de.properties                          
/usr/lib/jvm/java-1.5-palm/jre/bin/harmony_es.properties                          
/usr/lib/jvm/java-1.5-palm/jre/bin/harmony_fr.properties                          
/usr/lib/jvm/java-1.5-palm/jre/bin/harmony_hu.properties                          
/usr/lib/jvm/java-1.5-palm/jre/bin/harmony_it.properties                          
/usr/lib/jvm/java-1.5-palm/jre/bin/harmony_ja.properties                          
/usr/lib/jvm/java-1.5-palm/jre/bin/harmony_ko.properties                          
/usr/lib/jvm/java-1.5-palm/jre/bin/harmony_pl.properties                          
/usr/lib/jvm/java-1.5-palm/jre/bin/harmony_pt_BR.properties                       
/usr/lib/jvm/java-1.5-palm/jre/bin/harmony_ru.properties                          
/usr/lib/jvm/java-1.5-palm/jre/bin/harmony_sk.properties                          
/usr/lib/jvm/java-1.5-palm/jre/bin/harmony_sl.properties                          
/usr/lib/jvm/java-1.5-palm/jre/bin/harmony_tr.properties                          
/usr/lib/jvm/java-1.5-palm/jre/bin/harmony_zh.properties                          
/usr/lib/jvm/java-1.5-palm/jre/bin/harmony_zh_TW.properties                       
/usr/lib/jvm/java-1.5-palm/jre/bin/libICUInterface34.so                           
/usr/lib/jvm/java-1.5-palm/jre/bin/libhyarchive.so                                
/usr/lib/jvm/java-1.5-palm/jre/bin/libhyauth.so                                   
/usr/lib/jvm/java-1.5-palm/jre/bin/libhycharset.so                                
/usr/lib/jvm/java-1.5-palm/jre/bin/libhyluni.so                                   
/usr/lib/jvm/java-1.5-palm/jre/bin/libhynio.so                                    
/usr/lib/jvm/java-1.5-palm/jre/bin/libhyprt.so                                    
/usr/lib/jvm/java-1.5-palm/jre/bin/libhythr.so                                    
/usr/lib/jvm/java-1.5-palm/jre/bin/libhyxnet.so                                   
/usr/lib/jvm/java-1.5-palm/jre/bin/libhyzlib.so                                   
/usr/lib/jvm/java-1.5-palm/jre/lib/boot/annotation.jar                            
/usr/lib/jvm/java-1.5-palm/jre/lib/boot/archive.jar                               
/usr/lib/jvm/java-1.5-palm/jre/lib/boot/auth.jar                                  
/usr/lib/jvm/java-1.5-palm/jre/lib/boot/crypto.jar                                
/usr/lib/jvm/java-1.5-palm/jre/lib/boot/logging.jar                               
/usr/lib/jvm/java-1.5-palm/jre/lib/boot/luni.jar                                  
/usr/lib/jvm/java-1.5-palm/jre/lib/boot/math.jar                                  
/usr/lib/jvm/java-1.5-palm/jre/lib/boot/nio.jar                                   
/usr/lib/jvm/java-1.5-palm/jre/lib/boot/nio_char.jar                              
/usr/lib/jvm/java-1.5-palm/jre/lib/boot/regex.jar                                 
/usr/lib/jvm/java-1.5-palm/jre/lib/boot/security.jar                              
/usr/lib/jvm/java-1.5-palm/jre/lib/boot/sql.jar                                   
/usr/lib/jvm/java-1.5-palm/jre/lib/boot/text.jar                                  
/usr/lib/jvm/java-1.5-palm/jre/lib/boot/x-net.jar                                 
/usr/lib/jvm/java-1.5-palm/jre/lib/content-types.properties                       
/usr/lib/jvm/java-1.5-palm/jre/lib/logging.properties                             
/usr/lib/jvm/java-1.5-palm/jre/lib/net.properties                                 
/usr/lib/jvm/java-1.5-palm/jre/lib/rowset.properties                              
/usr/lib/jvm/java-1.5-palm/jre/lib/security/java.policy                           
/usr/lib/jvm/java-1.5-palm/jre/lib/security/java.security 
  • 5) Go in oasis-vm folder
  • 6) Use 7zip to compress by tar the bin folder in a bin.tar file
  • 7) Use 7zip to compress by tar the jvm folder in a jvm.tar file
  • 8) Hook your phone up to your computer and load the bin.tar and jvm.tar files onto your USB partition.
  • 9) unplug your device from USB port
  • 10) Launch Novaterm program

http://www.webos-internals.org/wiki/Novacom_on_Windows
http://www.webos-internals.org/wiki/Novacom_with_Windows_7
http://www.webos-internals.org/wiki/Novacom_on_Fedora_15
with the following command line :

novacom -t open tty://

Your prompt will change to root@castle:/# ?[J

  • 11) Go in the USB folder on your device
cd /media/internal
  • 12) uncompress the files :
tar xvf bin.tar
tar xvf jvm.tar
cd bin
chmod 755 *
cp -p * /usr/bin
cd ..
chmod -R 755 jvm
cp -p -r jvm /usr/lib
  • 13) Now, check if your Java OasisVM JVM (JRE) works :
javahy --help

and you should have :

OasisVM: Build 107
Copyright 2005, Iventor, Inc. All Rights Reserved
Build options are: Oasis-Linux-WebConsole-LightLocks-Generational-GCC_Goto_Optimizations-SingleSlot
usage: OasisVM [options] [classfile [args]] 
...

Testing a with a basic HelloWorld program

Go here : Compile and Test the Hello World program on Palm webOS.

Personal tools
Google AdSense