You don't even need a batch file. You can create a shortcut from java or
javaw to the desktop and give it correct command line arguments. Your users
won't know that they are using a Java application unless they peek into the
properties of the shortcut. You can also use InstallAnywhere or
InstallShield to create an installer that installs everything including jre
with Java3d.

Pasi

-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Stanley, Robert
Sent: Thursday, September 21, 2000 5:34 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Java 3D application distribution for WinNT


Hello Christoph,

You can include the jre folder with your java application, so that the user
does not have to install java in order to run your application. The jre
folder is the java runtime environment, provided by Sun's website
(java.sun.com).

You can include a batch file (your_app.bat, for example) with your
application, which is a simple DOS script file (an ascii text file). This
script file can be run just like a .exe file. The content of the script file
looks something like this:

jre\bin\java -cp . -Xms200m -Xmx200m -jar your_app.jar

The "your_app.jar" is your .jar file that you have created using cafe or the
jdk.

The "-Xms200m -Xmx200m" allocates 200 Megabytes of RAM for the java
interpreter. This is optional, of course.

In this example, the jre folder is a subfolder of the folder where the .jar
file and .bat file are.

I've done this on many occasions.

Rob

-----Original Message-----
From: Christoph Widmer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 21, 2000 9:48 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Java 3D application distribution for WinNT


What is the best solution for a Java 3D application distribution for the
WinNT
platform? Ideally, this should be a single .exe or self-extracting file
including
the 1.2 jre, j3d libraries and my application. Also, users should be able to
start
the application from a desktop icon just like any other Windows application,
i.e. I don't want to have a command window or the like. Does Visual Caf�
support this?

Thanks, Christoph


PS: I'm aware this might be a sensitive topic among Java purists, but the
fact
is that within my corporate environment, all users have Wintel machines and
it would be asked too much of most users to install Java and use command
line to start the application.

===========================================================================
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".

===========================================================================
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".

===========================================================================
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