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 / First Aid / January 2005

Tip: Looking for answers? Try searching our database.

Need to run applets requiring different JRE versions

Thread view: 
dhumes001@comcast.net - 12 Jan 2005 14:48 GMT
I need to run two different applets that require different JRE versions
on a Windows XP SP1 workstation.  One applet requires 1.4.2.  The
manufacturer recommends 1.3.1 for the other applet.  If I use 1.4.2
with the applet that requires 1.3.1, the system locks up frequently,
which is not acceptable.  The lockups occur using either IE6 or Firefox
1.0.  I have both 1.3.1 and 1.4.2 installed on the system, but
whichever version was installed last seems to always have control.  Is
there any way that I can run different versions of JRE depending on the
application?  It would be acceptable to run 1.3.1 with Firefox and
1.4.2 with IE if that would work.  It would be nice if both applets
could be run simultaneously with their respective JRE versions, but
that is not essential.
Andrew Thompson - 13 Jan 2005 07:53 GMT
> I need to run two different applets that require different JRE versions
> on a Windows XP SP1 workstation.

JWS can specify the Java run-time version to use.
<http://www.physci.org/codes/javafaq.jsp#jws>

HTH

Signature

Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane

dhumes001@comcast.net - 13 Jan 2005 21:30 GMT
OK, in JWS I selected File -> Preferences -> Java.  Both versions
1.4.2_06 and 1.3.1_15 are listed as enabled.  I disable 1.3.1_15, click
OK, and go to http://www.javatester.org/version.html.  It tells me my
version is 1.3.1_15.  Likewise, http://www.cyscape.com/showbrow.asp
tells me I'm running 1.3.1_15 also.  If I disable both versions, both
sites still say I'm running 1.3.1_15.  The Java Plug-in Control Panel
looks like it lets you select the JRE environment also.  But that seems
to have no effect as well.  Any ideas?

> > I need to run two different applets that require different JRE versions
> > on a Windows XP SP1 workstation.
[quoted text clipped - 10 lines]
> http://www.1point1C.org/  Science & Technology
> http://www.LensEscapes.com/  Images that escape the mundane
Andrew Thompson - 14 Jan 2005 08:07 GMT
Please post your replies below earlier text, and trim any
text no longer relevant.
<http://www.physci.org/codes/javafaq.jsp#netiquette>

See further comments in that style (below).

>>> I need to run two different applets that require different JRE
> versions
..
>> JWS can specify the Java run-time version to use.
..
> OK, in JWS I selected File -> Preferences -> Java.

No, not OK.  

To get JWS to work for you, you need to create a JNLP file[1].  
Everything else happens automatically if ..
- The user clicks the link to the JNLP file
- The user's browser is running 1.3+
- The said browser has Java enabled
- (The user accepts the security certificate)

Though the last is not relevant to your problem.  You can run
your applet in the default security sandbox, and do no need to
sign your code (though it will have to be in a Jar file).

Unfortunately I have yet to apply JWS to an applet, so I cannot
advise much further.

[1]  Here is an example of a JNLP file..
<http://java.sun.com/j2se/1.4.2/docs/guide/jws/developersguide/syntax.html#example>
Note particularly the element in 'resources', near the bottom..

...
 <resources>
   <j2se version="1.4.2"/>
..

HTH

Signature

Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane



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



©2008 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.