OESF Portables Forum

General Forums => General Discussion => Topic started by: Yasen on July 12, 2004, 10:09:48 am

Title: How to run .jar aplication?
Post by: Yasen on July 12, 2004, 10:09:48 am
I need this (http://jmol.sourceforge.net/) on my Z. Can anybody explain me how to run .jar file ?
Title: How to run .jar aplication?
Post by: rrashkin 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>.
Title: How to run .jar aplication?
Post by: tumnus 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>
Title: How to run .jar aplication?
Post by: Mag1c 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
Title: How to run .jar aplication?
Post by: stupkid 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.
Title: How to run .jar aplication?
Post by: Yasen 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
Title: How to run .jar aplication?
Post by: tumnus 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.
Title: How to run .jar aplication?
Post by: Yasen 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.
Title: How to run .jar aplication?
Post by: stupkid 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.
Title: How to run .jar aplication?
Post by: Yasen on July 13, 2004, 01:12:03 pm
Sad  I'll think about running the applet.
Thank you all
Title: How to run .jar aplication?
Post by: tumnus 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 (http://jmol.sourceforge.net/docs/JmolAppletGuide.html)