Newsgroup: it.comp.java
Titolo: Come posso controllare su un pc se la jvm è installata?

Ciao a tutti sto facendo un programma in VB per un CD multimediale,
questo programmino non č nient'altro che un visualizzatore contenente
delle pagine html e flash.
La mia domanda č questa:
Con  VB intercetto e controllo sul pc dell'utente finale, la presenza
del plugin di flash, e lo installo se manca.
Oltre al controllo di (FLASH) ora devo fare anche il controllo sulla jvm
(java virtual machine) di java per vedere sul pc se č installata.
Sapete aiutarmi? o per lo meno cosa devo andare a controllare sul pc
dell'utente finale per fare questo controllo e installarla nel caso
mancasse?
-- 
Posted via Mailgate.ORG Server - 
http://www.Mailgate.ORG

 mancasse?
La prima cosa che mi viene in mente è di guardare il registro di
configurazione:
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]
"CurrentVersion"="1.4"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.3]
"JavaHome"="C:\\Programmi\\Sviluppo\\Java\\Jdk1.3"
"MicroVersion"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.3.1_04]
"JavaHome"="C:\\Programmi\\Sviluppo\\Java\\Jdk1.3"
"MicroVersion"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.4]
"JavaHome"="C:\\Programmi\\Sviluppo\\Java\\Jdk1.4"
"MicroVersion"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.4.1]
"JavaHome"="C:\\Programmi\\Sviluppo\\Java\\Jdk1.4"
"MicroVersion"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.4.1_01]
"JavaHome"="C:\\Programmi\\Sviluppo\\Java\\Jdk1.4"
"MicroVersion"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.4.1_02]
"JavaHome"="C:\\Programmi\\Sviluppo\\Java\\Jdk1.4"
"MicroVersion"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.4.0_01]
"JavaHome"="C:\\Programmi\\Java\\j2re1.4.1"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.4.1]
"JavaHome"="C:\\Programmi\\Java\\j2re1.4.1"
"UseJava2IExplorer"=dword:00000000
"HideSystemTrayIcon"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.4.1_01]
"JavaHome"="C:\\Programmi\\Java\\j2re1.4.1_01"
"UseJava2IExplorer"=dword:00000000
"HideSystemTrayIcon"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.4.1_02]
"JavaHome"="C:\\Programmi\\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:\\Programmi\\Java\\j2re1.4.1_02"
"MicroVersion"="1"
"RuntimeLib"="C:\\Programmi\\Java\\j2re1.4.1_02\\bin\\client\\jvm.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4.0_01]
"JavaHome"="C:\\Program Files\\Java\\j2re1.4.0"
"MicroVersion"="0"
"RuntimeLib"="C:\\Program Files\\Java\\j2re1.4.0\\bin\\client\\jvm.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4.1]
"JavaHome"="C:\\Programmi\\Java\\j2re1.4.1"
"MicroVersion"="1"
"RuntimeLib"="C:\\Programmi\\Java\\j2re1.4.1\\bin\\client\\jvm.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4.1_01]
"JavaHome"="C:\\Programmi\\Java\\j2re1.4.1_01"
"MicroVersion"="1"
"RuntimeLib"="C:\\Programmi\\Java\\j2re1.4.1_01\\bin\\client\\jvm.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4.1_02]
"JavaHome"="C:\\Programmi\\Java\\j2re1.4.1_02"
"MicroVersion"="1"
"RuntimeLib"="C:\\Programmi\\Java\\j2re1.4.1_02\\bin\\client\\jvm.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1]
"Home"="C:\\Programmi\\Java Web Start"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_02]
"Home"="C:\\Programmi\\Java Web Start"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_03]
"Home"="C:\\Programmi\\Java Web Start"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_04]
"Home"="C:\\Programmi\\Java Web Start"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_05]
"Home"="C:\\Programmi\\Java Web Start"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2]
"Home"="C:\\Programmi\\Java Web Start"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2.0_01]
"Home"="C:\\Programmi\\Java Web Start"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2.0_02]
"Home"="C:\\Programmi\\Java Web Start"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs]

ok, scusa il ritardo ho letto solo ora, 
stasera controllo, e ti faccio sapere, 
Grazie1000!
Il mio problema si verifica specialmente su WINDOWS XP.
;-)
