Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

using java without installing it

Thread view: 
erik.hochweller@gmail.com - 06 Feb 2006 21:06 GMT
ok i have question. I have a product that needs java in order to run,
now i know you cant distribute SDK/JDK but you can JRE and that is all
i need. I have created an .msi installation file and want to give the
user the option to install java with the program, but since you can
only have one windows installer open at a time thsi wont work unless
there is some way to install java without using the windows installer.
if i have to do it by hand, how would i do it?

Hochi
Oliver Wong - 06 Feb 2006 21:13 GMT
> ok i have question. I have a product that needs java in order to run,
> now i know you cant distribute SDK/JDK but you can JRE and that is all
[quoted text clipped - 3 lines]
> there is some way to install java without using the windows installer.
> if i have to do it by hand, how would i do it?

   What some programs do (I believe Eclipse does this) is checks if Java is
installed at runtime, and if not, prompts the user to install Java. This is
only possible if you have a launcher which is not written in Java. For
example, write a C++ launcher whose only purpose is to check if Java is
installed and, if so, to launch the "real" program.

   - Oliver
IchBin - 06 Feb 2006 21:57 GMT
>> ok i have question. I have a product that needs java in order to run,
>> now i know you cant distribute SDK/JDK but you can JRE and that is all
[quoted text clipped - 11 lines]
>
>     - Oliver

Oliver, Java Web Start can do the install as far as I know.

Signature

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)

Oliver Wong - 07 Feb 2006 14:05 GMT
>>> ok i have question. I have a product that needs java in order to run,
>>> now i know you cant distribute SDK/JDK but you can JRE and that is all
[quoted text clipped - 11 lines]
>
> Oliver, Java Web Start can do the install as far as I know.

   If the user has Java Web Start installed, then they probably already
have Java installed anyway, right?

   - Oliver
IchBin - 07 Feb 2006 17:43 GMT
>>>> ok i have question. I have a product that needs java in order to run,
>>>> now i know you cant distribute SDK/JDK but you can JRE and that is all
[quoted text clipped - 14 lines]
>
>     - Oliver

Your are right. I jump off the edge on that one!

Signature

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)

Chris Smith - 06 Feb 2006 21:24 GMT
> ok i have question. I have a product that needs java in order to run,
> now i know you cant distribute SDK/JDK but you can JRE and that is all
[quoted text clipped - 3 lines]
> there is some way to install java without using the windows installer.
> if i have to do it by hand, how would i do it?

You do not have to use the Java install kit to create a copy of Java.  
You can just package up all the required files in a subdirectory of your
application, and call the java interpreter there.  Remember that you're
legally required to include all but a few optional files, though, and
that you must ask the user to agree to Sun's license agreement as part
of the installation process.

Signature

www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation

IchBin - 06 Feb 2006 21:52 GMT
> ok i have question. I have a product that needs java in order to run,
> now i know you cant distribute SDK/JDK but you can JRE and that is all
[quoted text clipped - 5 lines]
>
> Hochi

Why not use Java Web Start. This way your install can install\update
your distribution. Also check the client for any Java on the machine and
install if need? And If need check for the version installed and require
th version you need.

JavaTM Web Start
http://mindprod.com/jgloss/javawebstart.html
http://www.javaworld.com/javaworld/jw-07-2001/jw-0706-webstart.html
http://java.sun.com/products/javawebstart/
http://java.sun.com/j2se/1.5.0/docs/guide/javaws/index.html
http://www-128.ibm.com/developerworks/java/library/j-webstart/
http://www.dallaway.com/acad/webstart/
http://lopica.sourceforge.net/faq.html

Signature

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)

hochi - 07 Feb 2006 04:16 GMT
Thanks for the fast replies. I will look into webstart however i have
to use an microsoft install package, msi, because thats a requirement
for the integration part of their product.

Is there a way or place to find out what i need to install/copy in
order to make it work just like the java installer distributed by Sun?

Thanks
Ranganath Kini - 07 Feb 2006 07:17 GMT
There is a crystal clear note on how to distribute the free JRE and
what files you need in the "Readme.txt" file in the folder:

<Your JDK folder>\jre

Please read it as it answers all your questions.

Hope it helps!
hochi - 07 Feb 2006 14:20 GMT
ok i looked at that, and yes its crystal clear. However maybe im just
dumb but if i do it this way i dont get the java environment properly
registered.
For example how do i tell IE that it has to register the java
installation (like they do in theirs)
And do i have to set environment variables?
and register it in the registry? cause when i look there there are
entries, but are they needed? I assume so right?
Ranganath Kini - 07 Feb 2006 14:35 GMT
Yes, but the idea of this kind of deployment is not to setup a complete
JRE on the client machine. It is for a private application runtime.

This sort of setup is useful if you want your own private jre, in other
words a JRE exclusive to your application only. Many commercial Java
applications install their own private JREs which are installed inside
their application's installation folder. They then use a custom
launcher, such as a .BAT file to launch their application JAR files via
the installed private JRE.

However, if you want to setup a full fledged JRE on your client's
machine, this technique is no advantage, instead u shud be reading "The
Java Deployment Guide" which covers all aspects of JRE setup using the
JRE installer provided by Sun. Please see for more information:

http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/contents.html

Hope it helps!
Roedy Green - 07 Feb 2006 12:54 GMT
>Why not use Java Web Start. This way your install can install\update
>your distribution. Also check the client for any Java on the machine and
>install if need? And If need check for the version installed and require
>th version you need.

once you get any java installed, JWS will look after installing
others.  you can get the first one installed with either a button or
an Applet with those hideous EMBED tags.

The button is easy. Just a link.  See
http://mindprod.com/jgloss/jumptojava.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.