home *** CD-ROM | disk | FTP | other *** search
- =======================================
- JToExe(TM) V1.0
- =======================================
-
- Introduction
- ============
- JToExe packages Java applications into
- Windows executables. It relies on a
- primary class containing the function
- main (String args []). This eliminates
- the use of a batch file and makes your
- Java application more professionally
- polished. The JToExe application
- consists of six tab panels, which
- contain the options to be passed
- through to the jre executable.
-
- There are two possible runtime
- scenarios for your application. The
- first is bundling and shipping your
- application with Java Runtime
- Environment or JRE. The second a
- specific Java environment exists on the
- target machine so you want JToExe to
- co-exist with other Java applications.
-
- In the first example, you will want to
- use relative paths. Your application
- can be moved from directory to
- directory or even from machine to
- machine even if Java is installed on
- the target machine. This option is
- also ideal if you want to install your
- application on a CD-ROM and you are
- not certain what drive will be assigned
- to the CD-ROM.
-
- In the second example, the paths to the
- Java binaries are known. The paths are
- hard coded. The advantage to using this
- method is that you will save some disk
- space (~2.5MB/application for the JRE
- and additional 2MB in case you are
- using Swing). You won't have duplicate
- environments. You can still move the
- application around on your local
- machine as long as your Java
- environment doesn't change.
-
- Installation
- ============
- There are two versions of JToExe to
- download.
-
- 1.) One version including the JToExe
- files, the Java Runtime Environment (JRE)
- and Swing (zip with ~5MB).
-
- 2.) One version, which assumes that both,
- JRE 1.1 and Swing are already installed
- on the machine. Sun provides Swing as
- zip-file. For that you need to add it
- to the classpath after installation by
- hand. JToExe just uses the library
- "swingall.jar"
-
- In both cases it should suffice to just
- extract the files to a directory of
- your choice and double click on
- "JToExe.exe". JToExe was tested with
- JRE-1.1.6 and Swing-1.0.3. It is
- recommended to have the newest versions
- of both, though JToExe should work
- properly with all JRE-1.1.x and
- Swing-1.0.x versions.
-
- If you want to download JRE, JDK or
- Swing or need any additional
- information about Java visit
- http://java.sun.com
-
- Known Problems:
- ===============
-
- PATH
- ----
- If a version of Java is installed on
- your machine, Java will use that
- version no matter which of both
- versions you have installed. The reason
- for that is, that Java looks up the
- registry key:
-
- HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment\1.1\JavaHome
- or
- HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Development Kit\1.1\JavaHome
-
- In case the JRE or JDK was just erased
- or not de-installed correctly, Java
- will still search for jre.exe in that
- path. IN THAT CASE JAVA WILL EXIT
- WITHOUT NOTICE. If that happens you
- need to reinstall JRE (or JDK). The
- decision to use the Windows Registry
- to locate the binaries was not a very
- lucky one though.
-
-
- CLASSPATH
- ---------
- Java will first search the paths stated
- in the classpath environment variable,
- than the paths indicated in JToExe
- (Classpath Tab). If an old version of
- rt.jar (Java Runtime) or swingall.jar
- (Swing Runtime) is in the path, it will
- be used.
- ATTENTION:
- JToExe needs rt.jar and swingall.jar to run.
- If you Swing and Jre is allready installed on
- your machine you have to take care, that rt.jar
- and swingall.jar is in the classpath as
- JRE does NOT set the classpath for rt.jar and
- SWING does NOT set the classpath for swingall.jar!
-
-
- Feedback
- ========
- For commercial question please contact:
- simpson@bravozulu.com
-
- For technical questions please contact:
- gass@magnet.at
-