Author Topic: How to run .jar aplication?  (Read 4093 times)

Yasen

  • Full Member
  • ***
  • Posts: 107
    • View Profile
    • http://
How to run .jar aplication?
« on: July 12, 2004, 10:09:48 am »
I need this on my Z. Can anybody explain me how to run .jar file ?
[span style=\'font-size:8pt;line-height:100%\']SL-5600 PXA-250
noname 256 MB MMC fat,
SanDisk 1GB  CF vfat
[/span]

rrashkin

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • http://pwp.t-3.cc/rrashkin
How to run .jar aplication?
« Reply #1 on: July 12, 2004, 10:27:00 am »
You need to have both a terminal program (like qkonsole) and a Java runtime environment (like JEODE).  I don't know about the other ROMs but with the Sharp 3.1 on the SL5500, they have to be installed seperately from (after) the ROM installation.

Then (I do this on a PC), you need to know the location of the main class in the JAR file. You can find this with " jar tf  <jarfile name> ".  It will likely be something like "Progname.progName" (note the implied directory).

Then, on the Z, you enter from the console: evm cp <jarfile name> <main class>.
Bob Rashkin
rrashkin@csc.com
SL5500/Sharp3.1
Targus IR keyboard

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
How to run .jar aplication?
« Reply #2 on: July 12, 2004, 11:06:37 am »
From what I can see, the jar file is really the JMol applet. The full JMol application requires Java 1.4, but only the equivalent of Java 1.1.8 is available on the Zaurus.

To run an applet, you need to create or have access to a simple HTML page that loads the applet jar file and then use the command:

evm -appletviewer <HTML file/URL>
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

Mag1c

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://
How to run .jar aplication?
« Reply #3 on: July 12, 2004, 11:59:53 am »
Hi,

if you have a runnable .jar you can just type "java -jar <jar-file>" on PC. Don't know if the jeode JVM can handle this too.

greets
Mag1c

stupkid

  • Hero Member
  • *****
  • Posts: 578
    • View Profile
    • http://
How to run .jar aplication?
« Reply #4 on: July 12, 2004, 01:03:59 pm »
Java Personal Profile is based on Java 1.3.1 (J2ME) and Jeode is based on Java 1.1.8.  This is probably not going to work, but I'll give it try tonight.

Zaurus SL-C3200 pdaXii13v2 5.5 / Ambicom WC1100C-CF / Socket Bluetooth Rev G


OpenMoko FreeRunner - Running Tweaked OM2008.x Image

Yasen

  • Full Member
  • ***
  • Posts: 107
    • View Profile
    • http://
How to run .jar aplication?
« Reply #5 on: July 13, 2004, 07:43:22 am »
10x to all of you but there is a small problem. Java Personal Profile require libfloat_1.0_arm.ipk but Icant find it anywhere
[span style=\'font-size:8pt;line-height:100%\']SL-5600 PXA-250
noname 256 MB MMC fat,
SanDisk 1GB  CF vfat
[/span]

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
How to run .jar aplication?
« Reply #6 on: July 13, 2004, 10:59:46 am »
The download page states the applet works with any browser with Java 1.1. So if it is the applet jar you have, it should work fine with Jeode, which comes with the SL-5600 and hence you don't need to install any other version of JVM.
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

Yasen

  • Full Member
  • ***
  • Posts: 107
    • View Profile
    • http://
How to run .jar aplication?
« Reply #7 on: July 13, 2004, 11:10:54 am »
Yes but the aplet can be commanded only by some kind of dinamick web page and i dont know how to do that.
[span style=\'font-size:8pt;line-height:100%\']SL-5600 PXA-250
noname 256 MB MMC fat,
SanDisk 1GB  CF vfat
[/span]

stupkid

  • Hero Member
  • *****
  • Posts: 578
    • View Profile
    • http://
How to run .jar aplication?
« Reply #8 on: July 13, 2004, 12:27:02 pm »
Yeah I tried to get the app to work with Personal Profile to no avial.  It's written with swing, which is not included in J2ME.

Zaurus SL-C3200 pdaXii13v2 5.5 / Ambicom WC1100C-CF / Socket Bluetooth Rev G


OpenMoko FreeRunner - Running Tweaked OM2008.x Image

Yasen

  • Full Member
  • ***
  • Posts: 107
    • View Profile
    • http://
How to run .jar aplication?
« Reply #9 on: July 13, 2004, 01:12:03 pm »
Sad  I'll think about running the applet.
Thank you all
[span style=\'font-size:8pt;line-height:100%\']SL-5600 PXA-250
noname 256 MB MMC fat,
SanDisk 1GB  CF vfat
[/span]

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
How to run .jar aplication?
« Reply #10 on: July 14, 2004, 07:37:37 am »
Look at this page for creating a simple HTML page to embed the applet:

http://jmol.sourceforge.net/docs/JmolAppletGuide.html
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender