Cannot run .jar file in terminal, can run in Firefox

Dotan Cohen dotancohen at gmail.com
Wed May 14 12:11:24 UTC 2008


2008/5/14 Tim <timfrost at xtra.co.nz>:
>
>  The other consideration is that because the code is an applet, it is
>  built to run inside a browser, rather than running as a stand-alone
>  application.  This can be handled by putting the above html code in a
>  file that is presented to appletviewer (which should be set up as part
>  of the jvm installation for Sun java 5 or 6).  You will still need all
>  the referenced jar files to be in the correct directory relative to the
>  html code (the directory ../applets/ is identified in the codebase
>  attribute in the snippet of HTML that NoOp cites).  An applet depends on
>  the environment (browser/appletviewer) to provide some of the system and
>  initialisation functionality.
>
>  This model is in contrast to a java application, such as tomcat, which
>  expects to be invoked using the java command (which Dotan was using to
>  invoke operationsOnVectors.jar).
>

Thank you Tim, I did not realize that there would be different
environmental variables available to the applet depending on where it
was run. I suppose that it makes sense. When I return to that project
I will simply write a local HTML page that will mimic the page on the
university website. Thanks.

Dotan Cohen

http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?


More information about the ubuntu-users mailing list