Don't run the JRE installation, just copy it onto the target machine.  Also
put in a batch file that runs the "java.exe" you copied in for the JVM.
Here are step-by-step instructions:

1) Create a new directory <MyApp> somewhere on your PC.

2) Create a new directory <MyApp>\JRE

3) Copy all of the contents of your JRE into <MyApp>\JRE.  You should end up
with a <MyApp>\JRE\bin directory, a <MyApp>\JRE\lib directory, etc.

4) Make sure that j3d.dll and j3daudio.dll are in <MyApp>\JRE\bin and
j3daudio.jar, j3dcore.jar, j3dutils.jar, and vecmath.jar are in
<MyApp>\JRE\lib\ext (that's your Java3D installation).

5) Copy your Java application into <MyApp>.  This could be a single jar file
or a directory structure of class files, plus any data files that you read.

6) Create a batch file <MyApp>\<MyApp>.bat.  The contents should be like
this:
JRE\bin\java.exe <your java options> <your main classfile>

You can also use "start JRE\bin\javaw.exe" instead of "JRE\bin\java.exe" if
you want to avoid having a DOS window up the whole time your app runs.

7) Zip the <MyApp> directory structure up using WinZip (a great product!)
and copy the zip file onto a floppy or CD, or just email it to your prof.
When he unzips it, he can just run the batch file and he's off and running.
He can delete the <MyApp> directory and it all goes away.  You also don't
have to worry if he already has the wrong JRE version installed or other
such issues.

Let me know if anything is unclear or if this doesn't work for you.



----Original Message Follows----
From: Yan Laporte <[EMAIL PROTECTED]>
Subject: Re: [JAVA3D] program installation

I was wondering how robust is this way of doing it by copying the JRE with
the application.  I am sure many of you have had the problem with more than
one JDK installed on a single Windows machine that it complains about some
registry entries not having the exact version number they needed (in my case
1.3 or 1.2).

Are we free from that by just shipping JRE?
I know I could just try it and see but better rely on already established
experience...

Yan Laporte
DMI
University of Sherbrooke
Canada
[EMAIL PROTECTED]


>From: "Stanley, Robert" <[EMAIL PROTECTED]>
>Reply-To: Discussion list for Java 3D API <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: [JAVA3D] program installation
>Date: Wed, 1 Nov 2000 09:23:13 -0500
>MIME-Version: 1.0
>Received: from [204.160.241.38] by hotmail.com (3.2) with ESMTP id
>MHotMailBBC976510076D820F3E3CCA0F126F2450; Wed Nov 01 06:40:27 2000
>Received: from mail (mail.javasoft.com [204.160.241.28])by
>mail2.java.sun.com (8.10.0.Beta13+Sun/8.10.0.Beta13) with ESMTP id
>eA1EN0R24666;Wed, 1 Nov 2000 06:23:06 -0800 (PST)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d)
>with          spool id 1403288 for [EMAIL PROTECTED]; Wed, 1 Nov
>2000          06:24:15 -0800
>Received: from igate1.fallschurch.esys.com (igate1.fallschurch.esys.com
>      [198.4.96.17]) by mail.java.sun.com (8.10.0.Beta13+Sun/8.10.2) with
>        ESMTP id eA1EODO01794 for <[EMAIL PROTECTED]>; Wed, 1
>Nov          2000 06:24:14 -0800 (PST)
>Received: by igate1.fallschurch.esys.com; id JAA06589; Wed, 1 Nov 2000
>09:22:23          -0500 (EST)
>Received: from unknown(199.170.244.43) by igate1.fallschurch.esys.com via
>smap          (4.1) id xma006560; Wed, 1 Nov 00 09:21:54 -0500
>Received: from mailhub.fcd.esys.com (mailhub.fcd.esys.com [199.170.224.9])
>by          igate5.fcd.esys.com (8.9.3/8.9.3) with ESMTP id JAA12676 for
>       <[EMAIL PROTECTED]>; Wed, 1 Nov 2000 09:18:54 -0500 (EST)
>Received: from fcexchange.fcd.esys.com (fcexchange.fcd.esys.com
>[199.170.244.31]) by mailhub.fcd.esys.com (8.9.3/8.9.3) with ESMTP id
>    JAA07426 for <[EMAIL PROTECTED]>; Wed, 1 Nov 2000 09:16:55
>        -0500 (EST)
>Received: by fcexchange.fcd.esys.com with Internet Mail Service
>(5.5.2650.21)          id <VVV9VKMV>; Wed, 1 Nov 2000 09:23:14 -0500
>From [EMAIL PROTECTED] Wed Nov 01 06:42:24 2000
>X-Mailer: Internet Mail Service (5.5.2650.21)
>Message-ID:
><[EMAIL PROTECTED]>
>Sender: Discussion list for Java 3D API <[EMAIL PROTECTED]>
>
>Yes, the JRE can be installed with your application. Just download the JRE
>from java.sun.com as well as the Java3D_For_JRE from java.sun.com. Install
>both on your computer. Then copy the JRE folder into your application
>folder.
>
>Then set up a batch file with the following text:
>
>JRE\bin\java -cp . MyApp
>
>or
>
>JRE\bin\java -cp . -jar MyAppJar.jar
>
>or something similar, depending on the exact path and packages leading to
>your "main" .class or .jar file.
>
>You may need to copy java3d.dll and jvm.dll to the location where your
>batch
>file is in order for these .dll files to be found at runtime.
>
>Once you have your application folder set up with the JRE folder inside it,
>you can install it on a computer by just copying onto the computer's hard
>disk. It is not necessary to install the JDK or JRE separately.
>
>This has worked well for me.
>
>Rob
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to