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 / Virtual Machine / October 2005

Tip: Looking for answers? Try searching our database.

Sun Java Virtual Machine

Thread view: 
Roland De Clerck - 14 Dec 2004 21:27 GMT
At my company we're preparing a massive roll-out of new Windows XP
Workstations (with SP2), in the initial installation procedure we plan to
install the following Sun Java Virtual Machines : 1.4.1_02, 1.4.5_04 and
1.5.0 with default virtual machine set to version 1.5.0

Some intranet and intenet applicaties require a JRE different from the
default version. My question is :
is there an elegant way to give an answer to the following questions :
- determine the JRE version used in the Internet Browser
- give the end-user or the applications the possibility to switch to a
version different from the default version
- can this been done without restarting the browser
- how should we do it: java-applet, active-X, javascript, ...

This problem comes from the fact that we thought java should have less
dependencies on the installed run-time components and we stupidly assumed by
installing the latest run-time the older applications using java in the
browser could run without any problems.
The option to permit to user himself to install other software (e.g. yet
another JRE version) is unacceptable and impossible at my company.
We already asked this question to Microsoft and Sun, but without any
satisfying answer
--

rap.declerck@tiscali.be
Boudewijn Dijkstra - 15 Dec 2004 09:07 GMT
> At my company we're preparing a massive roll-out of new Windows XP
> Workstations (with SP2), in the initial installation procedure we plan to
[quoted text clipped - 9 lines]
> - can this been done without restarting the browser
> - how should we do it: java-applet, active-X, javascript, ...

http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/using_tags.html
Andrew Thompson - 15 Dec 2004 14:17 GMT
>> At my company we're preparing a massive roll-out of new Windows XP
>> Workstations (with SP2), in the initial installation procedure we plan to
[quoted text clipped - 5 lines]
>> is there an elegant way to give an answer to the following questions :
>> - determine the JRE version used in the Internet Browser

<http://www.physci.org/pc/property.jsp?prop=java.version>

BTW - does 'the Internet Browser' actually mean 'the Internet Explorer'?[1]
(If so, is it all Win? All IE 5.5+?)

...
>> - how should we do it: java-applet, active-X, javascript, ...
>
> http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/using_tags.html

A few points about that page.  

'New Style Format'[2] described, shows the 'best' way to have both
an OBJECT and EMBED[1] element.  

I am pleased to notice they now specifically warn against using
the HTML Converter's 'Java Plug-In Anywhere'[3] option, which
used some rather horrific (browser sniffing, amongst other things)
Javascript to attempt to achieve what the nested element did.

The only disadvantage I found to the nested element, or any use
of <EMBED> at all, is that it is invalid HTML.  It never has been
valid in any HTML standard, so it makes your web-pages harder to
check for bad HTML.

Ultimately, I abandoned Sun's messy (to me) system in favor of a
simple versioning applet that ensures minimum version, but that
approach will not fulfill the OP's requirement on this matter.

[1] If this is a %100 IE environment, use <object> completely
dismiss the <embed> 'element' and disregard the above rant.

Besides the nested elements, the OP might also look at JWS[4],
It is well designed for this sort of task, for any Java 1.3+.

[2]
<http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/using_tags.html
#ie-nav
>

[3]
<http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/using_tags.html
#anywhere
>

[4]
<http://java.sun.com/j2se/1.4.2/docs/guide/jws/developersguide/syntax.html#resources>

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

Roland De Clerck - 15 Dec 2004 19:59 GMT
Should work on the following platforms : Windows XP (SP2) and Citrix
Metaframe Server installed on Windows 2000 and WIndows 2003 servers. The
Microsoft Internet Browser version we need to support is minimal 5.5 (I
suppose even version 6 in near future).

Signature

Roland De Clerck
Tel 02/466.50.60
Gsm 0498/26.21.97
rap.declerck@tiscali.be

>>> At my company we're preparing a massive roll-out of new Windows XP
>>> Workstations (with SP2), in the initial installation procedure we plan
[quoted text clipped - 53 lines]
>
> HTH
Lāʻie Techie - 20 Dec 2004 10:00 GMT
> At my company we're preparing a massive roll-out of new Windows XP
> Workstations (with SP2), in the initial installation procedure we plan to
> install the following Sun Java Virtual Machines : 1.4.1_02, 1.4.5_04 and
> 1.5.0 with default virtual machine set to version 1.5.0

Where did you get 1.4.5_04?  Looking at Sun's site, the latest in the 1.4
series is 1.4.2_06.

La'ie Techie
Roland De Clerck - 21 Dec 2004 19:28 GMT
My mistake, I meant 1.4.2_05 in stead of 1.4.5_04.

So using 1.4.1_02, 1.4.2_05 and 1.5.0; now also 1.3.1 is added and IBM JRE.

Signature

Roland De Clerck
Tel 02/466.50.60
Gsm 0498/26.21.97
rap.declerck@tiscali.be

"La?ie Techie" <laie@win_remove_get_nospam_solutions.com> schreef in bericht
news:1103536847.9898e0425db30cc645a77f35c012727d@teranews...

>
>> At my company we're preparing a massive roll-out of new Windows XP
[quoted text clipped - 6 lines]
>
> La'ie Techie
Roland De Clerck - 21 Dec 2004 08:27 GMT
What I'm looking for is (I think) a utility like the JRE switch. However the
site http://xinyiguo.org/cpjre/ is not accessible, can I get it elsewhere ?

Signature

rap.declerck@tiscali.be

> At my company we're preparing a massive roll-out of new Windows XP
> Workstations (with SP2), in the initial installation procedure we plan to
[quoted text clipped - 21 lines]
>
> rap.declerck@tiscali.be
paul schmit - 29 Dec 2004 19:00 GMT
I have some of the same problems. To work around it, I created batch files that apply registry updates which set the default version of the JRE to a particular version.

Here is an example of one of the registry files:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.4.1_02]
"JavaHome"="C:\\Program Files\\Java\\j2re1.4.1_02"
"UseJava2IExplorer"=dword:00000000
"HideSystemTrayIcon"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
"CurrentVersion"="1.4"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4]
"JavaHome"="C:\\Program Files\\Java\\j2re1.4.1_02"
"MicroVersion"="1"
"RuntimeLib"="C:\\Program Files\\Java\\j2re1.4.1_02\\bin\\client\\jvm.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4.1_02]
"JavaHome"="C:\\Program Files\\Java\\j2re1.4.1_02"
"MicroVersion"="1"
"RuntimeLib"="C:\\Program Files\\Java\\j2re1.4.1_02\\bin\\client\\jvm.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\AdvancedOptions\JAVA_SUN]
"Text"="Java (Sun)"
"Type"="group"
"Bitmap"="C:\\Program Files\\Java\\j2re1.4.1_02\\bin\\ActPanel.dll,1000"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\AdvancedOptions\JAVA_SUN\SELECT]
"RegPath"="Software\\JavaSoft\\Java Plug-in\\1.4.1_02"
"Text"="Use Java 2 v1.4.1_02 for <applet> (requires restart)"
"Type"="checkbox"
"ValueName"="UseJava2IExplorer"
"HKeyRoot"=dword:80000002
"CheckedValue"=dword:00000001
"DefaultValue"=dword:00000001
"UncheckedValue"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{08B0E5C0-4FCB-11CF-AAA5-00401C608501}]
@="Web Browser Applet Control"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{08B0E5C0-4FCB-11CF-AAA5-00401C608501}\InprocServer32]
@="C:\\WINXP\\System32\\msjava.dll"
"ThreadingModel"="Both"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{08B0E5C0-4FCB-11CF-AAA5-00401C608501}\ProgID]
@="MSJava"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{08B0E5C0-4FCB-11CF-AAA5-00401C608501}\TreatAs]
@="{CAFEEFAC-0014-0001-0002-ABCDEFFEDCBB}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{CAFEEFAC-0014-0001-0002-ABCDEFFEDCBA}]
@="Java Plug-in 1.4.1_02"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{CAFEEFAC-0014-0001-0002-ABCDEFFEDCBA}\InprocServer32]
@="C:\\Program Files\\Java\\j2re1.4.1_02\\bin\\npjpi141_02.dll"
"ThreadingModel"="Apartment"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{CAFEEFAC-0014-0001-0002-ABCDEFFEDCBB}]
@="Java Plug-in 1.4.1_02<applet> redirector"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{CAFEEFAC-0014-0001-0002-ABCDEFFEDCBB}\InprocServer32]
@="C:\\Program Files\\Java\\j2re1.4.1_02\\bin\\npjpi141_02.dll"
"ThreadingModel"="Apartment"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}]
@="Java Plug-in 1.4.1_02"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}\Control]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}\InprocServer32]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}\InprocServer32]
@="C:\\Program Files\\Java\\j2re1.4.1_02\\bin\\npjpi141_02.dll"
"ThreadingModel"="Apartment"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}\MiscStatus]
@="0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}\MiscStatus\1]
@="2449"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}\ProgID]
@="JavaSoft.JavaBeansBridge.1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}\Programmable]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}\Version]
@="1.1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}\VersionIndependentProgID]
@="JavaSoft.JavaBeansBridge"
siew_wai_w - 12 Oct 2005 10:09 GMT
thanks paul,

your solution was what i was looking for as well.

>I have some of the same problems. To work around it, I created batch files that apply registry updates which set the default version of the JRE to a particular version.
>
[quoted text clipped - 89 lines]
>[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}\VersionIndependentProgID]
>@="JavaSoft.JavaBeansBridge"


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.