 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Roland De Clerck Guest
|
Posted: Tue Dec 14, 2004 9:27 pm Post subject: Sun Java Virtual Machine |
|
|
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
--
[email]rap.declerck (AT) tiscali (DOT) be[/email]
|
|
| Back to top |
|
 |
Andrew Thompson Guest
|
Posted: Wed Dec 15, 2004 2:17 pm Post subject: Re: Sun Java Virtual Machine |
|
|
On Wed, 15 Dec 2004 10:07:26 +0100, Boudewijn Dijkstra wrote:
| Quote: | "Roland De Clerck" <rap.declerck (AT) tiscali (DOT) be> schreef in bericht
news:41bf5abc$0$44073$5fc3050 (AT) dreader2 (DOT) news.tiscali.nl...
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
|
<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+?)
....
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
--
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
|
|
| Back to top |
|
 |
Roland De Clerck Guest
|
Posted: Wed Dec 15, 2004 7:59 pm Post subject: Re: Sun Java Virtual Machine |
|
|
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).
--
Roland De Clerck
Tel 02/466.50.60
Gsm 0498/26.21.97
[email]rap.declerck (AT) tiscali (DOT) be[/email]
"Andrew Thompson" <SeeMySites (AT) www (DOT) invalid> schreef in bericht
news:1hylxtq991hk2$.1l37laqllt8ar$.dlg (AT) 40tude (DOT) net...
| Quote: | On Wed, 15 Dec 2004 10:07:26 +0100, Boudewijn Dijkstra wrote:
"Roland De Clerck" <rap.declerck (AT) tiscali (DOT) be> schreef in bericht
news:41bf5abc$0$44073$5fc3050 (AT) dreader2 (DOT) news.tiscali.nl...
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
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
--
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
|
|
|
| Back to top |
|
 |
Roland De Clerck Guest
|
Posted: Tue Dec 21, 2004 8:27 am Post subject: Re: Sun Java Virtual Machine |
|
|
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 ?
--
[email]rap.declerck (AT) tiscali (DOT) be[/email]
"Roland De Clerck" <rap.declerck (AT) tiscali (DOT) be> schreef in bericht
news:41bf5abc$0$44073$5fc3050 (AT) dreader2 (DOT) news.tiscali.nl...
| Quote: | 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
--
[email]rap.declerck (AT) tiscali (DOT) be[/email]
|
|
|
| Back to top |
|
 |
Roland De Clerck Guest
|
Posted: Tue Dec 21, 2004 7:28 pm Post subject: Re: Sun Java Virtual Machine |
|
|
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.
--
Roland De Clerck
Tel 02/466.50.60
Gsm 0498/26.21.97
[email]rap.declerck (AT) tiscali (DOT) be[/email]
"La?ie Techie" <laie (AT) win_remove_get_nospam_solutions (DOT) com> schreef in bericht
news:1103536847.9898e0425db30cc645a77f35c012727d (AT) teranews (DOT) ..
| Quote: | On Tue, 14 Dec 2004 22:27:49 +0100, Roland De Clerck wrote:
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
|
|
|
| Back to top |
|
 |
paul schmit via JavaKB.co Guest
|
Posted: Wed Dec 29, 2004 7:00 pm Post subject: Re: Sun Java Virtual Machine |
|
|
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_MACHINESOFTWAREJavaSoftJava Plug-in1.4.1_02]
"JavaHome"="C:\Program Files\Java\j2re1.4.1_02"
"UseJava2IExplorer"=dword:00000000
"HideSystemTrayIcon"=dword:00000000
[HKEY_LOCAL_MACHINESOFTWAREJavaSoftJava Runtime Environment]
"CurrentVersion"="1.4"
[HKEY_LOCAL_MACHINESOFTWAREJavaSoftJava Runtime Environment1.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_MACHINESOFTWAREJavaSoftJava Runtime Environment1.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_MACHINESOFTWAREMicrosoftInternet ExplorerAdvancedOptionsJAVA_SUN]
"Text"="Java (Sun)"
"Type"="group"
"Bitmap"="C:\Program Files\Java\j2re1.4.1_02\bin\ActPanel.dll,1000"
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerAdvancedOptionsJAVA_SUNSELECT]
"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_MACHINESOFTWAREClassesCLSID{08B0E5C0-4FCB-11CF-AAA5-00401C608501}]
@="Web Browser Applet Control"
[HKEY_LOCAL_MACHINESOFTWAREClassesCLSID{08B0E5C0-4FCB-11CF-AAA5-00401C608501}InprocServer32]
@="C:\WINXP\System32\msjava.dll"
"ThreadingModel"="Both"
[HKEY_LOCAL_MACHINESOFTWAREClassesCLSID{08B0E5C0-4FCB-11CF-AAA5-00401C608501}ProgID]
@="MSJava"
[HKEY_LOCAL_MACHINESOFTWAREClassesCLSID{08B0E5C0-4FCB-11CF-AAA5-00401C608501}TreatAs]
@="{CAFEEFAC-0014-0001-0002-ABCDEFFEDCBB}"
[HKEY_LOCAL_MACHINESOFTWAREClassesCLSID{CAFEEFAC-0014-0001-0002-ABCDEFFEDCBA}]
@="Java Plug-in 1.4.1_02"
[HKEY_LOCAL_MACHINESOFTWAREClassesCLSID{CAFEEFAC-0014-0001-0002-ABCDEFFEDCBA}InprocServer32]
@="C:\Program Files\Java\j2re1.4.1_02\bin\npjpi141_02.dll"
"ThreadingModel"="Apartment"
[HKEY_LOCAL_MACHINESOFTWAREClassesCLSID{CAFEEFAC-0014-0001-0002-ABCDEFFEDCBB}]
@="Java Plug-in 1.4.1_02<applet> redirector"
[HKEY_LOCAL_MACHINESOFTWAREClassesCLSID{CAFEEFAC-0014-0001-0002-ABCDEFFEDCBB}InprocServer32]
@="C:\Program Files\Java\j2re1.4.1_02\bin\npjpi141_02.dll"
"ThreadingModel"="Apartment"
[HKEY_LOCAL_MACHINESOFTWAREClassesCLSID{8AD9C840-044E-11D1-B3E9-00805F499D93}]
@="Java Plug-in 1.4.1_02"
[HKEY_LOCAL_MACHINESOFTWAREClassesCLSID{8AD9C840-044E-11D1-B3E9-00805F499D93}Control]
[-HKEY_LOCAL_MACHINESOFTWAREClassesCLSID{8AD9C840-044E-11D1-B3E9-00805F499D93}InprocServer32]
[HKEY_LOCAL_MACHINESOFTWAREClassesCLSID{8AD9C840-044E-11D1-B3E9-00805F499D93}InprocServer32]
@="C:\Program Files\Java\j2re1.4.1_02\bin\npjpi141_02.dll"
"ThreadingModel"="Apartment"
[HKEY_LOCAL_MACHINESOFTWAREClassesCLSID{8AD9C840-044E-11D1-B3E9-00805F499D93}MiscStatus]
@="0"
[HKEY_LOCAL_MACHINESOFTWAREClassesCLSID{8AD9C840-044E-11D1-B3E9-00805F499D93}MiscStatus1]
@="2449"
[HKEY_LOCAL_MACHINESOFTWAREClassesCLSID{8AD9C840-044E-11D1-B3E9-00805F499D93}ProgID]
@="JavaSoft.JavaBeansBridge.1"
[HKEY_LOCAL_MACHINESOFTWAREClassesCLSID{8AD9C840-044E-11D1-B3E9-00805F499D93}Programmable]
[HKEY_LOCAL_MACHINESOFTWAREClassesCLSID{8AD9C840-044E-11D1-B3E9-00805F499D93}Version]
@="1.1"
[HKEY_LOCAL_MACHINESOFTWAREClassesCLSID{8AD9C840-044E-11D1-B3E9-00805F499D93}VersionIndependentProgID]
@="JavaSoft.JavaBeansBridge"
--
Message posted via http://www.javakb.com
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|