Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Equinox Demos

Revision as of 15:21, 21 September 2006 by Dj houghton.ca.ibm.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 (J9)

  • the VM on the phone is J9 Personal Profile 1.0 (ppro10)
  • to mimic this 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

Back to the top