Jump to: navigation, search

Difference between revisions of "Equinox Demos"

 
Line 6: Line 6:
 
* The File Manager tool is useful for transferring files from your local machine to the phone.
 
* The File Manager tool is useful for transferring files from your local machine to the phone.
  
===The Java VM on the phone (J9)===
+
===The Java VM on the phone===
 
* the VM on the phone is J9 Personal Profile 1.0 (ppro10)
 
* the VM on the phone is J9 Personal Profile 1.0 (ppro10)
* to mimic this VM on your local machine
+
 
 +
===The Java VM on your local machine===
 +
* to mimic the phone's VM on your local machine
 
** download the [[J9 | Foundation 1.0/Personal Profile 1.0 VM]]
 
** download the [[J9 | Foundation 1.0/Personal Profile 1.0 VM]]
 
** add the VM as an Installed JRE (<code>Window -> Preferences -> Java -> Installed JREs</code>)
 
** add the VM as an Installed JRE (<code>Window -> Preferences -> Java -> Installed JREs</code>)

Revision as of 14:32, 21 September 2006

Nokia 9300 Communicator

Local Machine Setup

  • Download and install the Nokia software.
  • Ensure you can use Bluetooth to connect to the phone from your PC.
  • The File Manager tool is useful for transferring files from your local machine to the phone.

The Java VM on the phone

  • the VM on the phone is J9 Personal Profile 1.0 (ppro10)

The Java VM on your local machine

  • to mimic the phone's VM on your local machine
    • download the Foundation 1.0/Personal Profile 1.0 VM
    • add the VM as an Installed JRE (Window -> Preferences -> Java -> Installed JREs)
    • add the 2 extra libraries as external JARs (ppro-ui.jar, ppro-extras.jar)
    • add the following default VM arg: -jcl:ppro10

Running an application on the phone

  • The file-system can be referenced like Windows with C: and D: (the D: drive is the memory card).
  • The J9 VM is associated with the .j9 file-type. You create a .j9 file with all the command-line arguments for your application and then when you click on it in the file manager it will run J9.
  • The file contains everything that you want on the command line except the reference to the VM executable. (e.g. -cp foo.jar com.Foo)
  • Note: any arguments after the class name on the commandline are passed to the class as arguments to the application and are not interpreted by the VM. Therefore if you are trying to set system properties, it should be done early in the command-line. (e.g. -Dfoo=bar -cp foo.jar com.Foo)

Writing to the Console

  • C:/logs/j9vm - You must have this directory created or your Java application will hang when it tries to write something to System.out or System.err.
  • When you run your Java application 2 files will be created in this directory, one for System.err and one for System.out.
  • The files will be named <pid>_syserr.txt and <pid>_sysout.txt
  • Output will always be to this directory, even if your JAR files are on a different drive.

Extras

  • j9 -io:host:port
  • console telnet