Hello!
The applied patch updates the documentation of using binfmt_misc to
execute Java applications. It adds support for executable jar files, the
normal packaging for Java applications.
With Windows, you just double-click on the file, so Linux should be able
to run them, too :-)
Kurt
P.S.: I am not subscribed.
--
------------------------------------------------------------------------
All these worlds are yours -- except Europa. Attempt no landings there.
[
executable-jar-file.patch 1K ]
--- /usr/src/linux/Documentation/java.txt Thu Jul 1 19:47:08 1999
- Java(tm) Binary Kernel Support for Linux v1.02
+ Java(tm) Binary Kernel Support for Linux v1.03
----------------------------------------------
(you should really have read binfmt_misc.txt now):
support for Java applications:
':Java:M::\xca\xfe\xba\xbe::/usr/local/bin/javawrapper:'
+ support for executable Jar files:
+ ':ExecutableJAR:E::jar::/usr/local/bin/jarwrapper:'
support for Java Applets:
':Applet:E::html::/usr/bin/appletviewer:'
====================== Cut here ===================
-Now simply chmod +x the .class and/or .html files you want to execute.
+====================== Cut here ===================
+#!/bin/bash
+# /usr/local/java/bin/jarwrapper - the wrapper for binfmt_misc/jar
+
+java -jar $1
+====================== Cut here ===================
+
+
+Now simply chmod +x the .class, .jar and/or .html files you want to execute.
To add a Java program to your path best put a symbolic link to the main
.class file into /usr/bin (or another place you like) omitting the .class
./HelloWorld.class
+To execute Java Jar files, simple chmod the *.jar files to include
+the execution bit, then just do
+ ./Application.jar
+
+
To execute Java Applets, simple chmod the *.html files to include
the execution bit, then just do
heavily edited for binfmt_misc by Richard Gnther