Seite 1 von 1
Windows 7 64 bit - Java 32 bit
Verfasst: 08 Jul 2010, 09:52
von shelas
Hallo,
wahrscheinlich ist mittlerweile bekannt, dass der Installer von Java 32bit unter Windows 64bit Probleme macht, da er die Daten in das falsche Verzeichnis entpackt.
Quelle:
http://old.nabble.com/jre-silent-instal ... 09647.html
Code: Alles auswählen
I guess the problem come from the fact that jre-6u17-windows-i586-s.exe is a 32bit app.
It obviously unpacks in in \Windows\system32\config\systemprofile\AppData\LocalLow\Sun\Java\jre1.6.0_17\
if a 64bits msiexec is started by the exe then it can't find jre1.6.0_17.msi as it is not there.
System32 when in 64bits mode is not the same system32 you got in 32bits mode
Hat schon jemand einen Weg gefunden, dieses Problem zu umgehen? Es scheint bei mir keinen Unterschied zu machen, ob ich msiexec oder syswow64\msiexec verwende. Meine einzige Idee bisher ist, die Dateien nach dem entpacken zu kopieren und den Installer ein zweites Mal zu starten.
--
Stephan
Re: Windows 7 64 bit - Java 32 bit
Verfasst: 08 Jul 2010, 11:18
von othiman
Hallo,
ich hab die entpackten Dateien einfach ins OPSI Packet kopiert und dann mit Hilfe der enthaltenen msi Datei installiert. Das ist nicht besonders schön, weil der Arbeitsaufwand bei jeder neuen Version deutlich höher ist, aber zumindest funktioniert es so. Vielleicht löst Orcale das Problem ja in einer der nächsten Versionen.
Gruß,
Thomas
Re: Windows 7 64 bit - Java 32 bit
Verfasst: 08 Jul 2010, 12:48
von wolfbardo
Hallo,
hilft das akualisierte:
http://www.opsi.org/opsi_wiki/Javavm
??
Weiterhin etwas Werbung fuer unsere Services um opsi:
http://download.uib.de/doku/opsi-leistungen-info.pdf
hier passt besonders:
Update-Abo opsi Standardprodukte
Gruss
Bardo Wolf
Re: Windows 7 64 bit - Java 32 bit
Verfasst: 08 Jul 2010, 19:07
von shelas
Hallo,
Die INstallation funktioniert jetzt bei mir sowohl bei 32bit als auch bei 64bit. Allerdings scheint es noch ein weiteres Problem zu geben. Beim Uninstall liest die Funktion GetRegistryStringValue die Registry "gemappt" aus. Das bedeutet, wenn man den Schlüssel für Uninstall aufruft, bekommt man nur 32bit Software angezeigt. Es findet wohl ein Mapping von
SOFTWARE\Microsoft\Windows\
nach
SOFTWARE\WOW6432\Microsoft\Windows\
statt
--
Stephan
Re: Windows 7 64 bit - Java 32 bit
Verfasst: 09 Jul 2010, 11:23
von wolfbardo
Hallo shelas,
diverse Features zur besseren 64-Bit Unterstützung befinden sich in den Versionen
preloginloader/opsi-winst aus
http://download.uib.de/opsi3.4/testing/ verwenden
Bitte ins aktualisierte Handbuch schauen
http://download.uib.de/opsi3.4/testing/winstdoc-de.pdf
z.B.
GetRegistryStringValue64
Gruss
Bardo Wolf
Re: Windows 7 64 bit - Java 32 bit
Verfasst: 09 Sep 2015, 14:29
von islam
Hallo,
Ich habe immer wieder Probleme mit dem Java 32-bit exe Installer auf Windows 64-bit Systeme.
Die Installation über OPSI ist meistens fehlgeschlagen.
Zuletzt hatte ich das Problem mit Java 8 Update 60 (1.8.0.60) 32-bit auf Windows 7 64-bit
Anhand dieser Quelle:
https://harryjohnston.wordpress.com/201 ... ows-7-x64/
konnte ich das Problem endgültig beheben und möchte hier die notwendige Anpassung im Installationsskript mit euch teilen
Hier die wichtigsten Anpassungen im Installationsskript.
(Das komplette Skript ist hier zu finden:
http://sourceforge.net/p/opsiupdater/co ... em_javavm/)
setup.ins
Code: Alles auswählen
[Actions]
DefVar $ProductVersion$
DefVar $InstVersion$
DefVar $ProductShortVersion$
Set $ProductVersion$ = "1.8.0.60"
Set $InstVersion$ = "1.8.0_60"
Set $ProductShortVersion$ = "8u60"
Winbatch_install_64_1 /TimeOutSeconds 500
Winbatch_install_64_2 /TimeOutSeconds 500
[Winbatch_install_64_1]
;; There is an issue with Java 32-bit exe Installer on 64-Bit OS
;; The Installer looks for the extracted msi at the wrong location
;; To fix this, a Symlink will be created
;; it extracts to: C:\Windows\syswow64\config\systemprofile\AppData\LocalLow\Sun\Java\jre$InstVersion$
;; but looks for msi in: C:\Windows\system32\config\systemprofile\AppData\LocalLow\Oracle\Java\jre$InstVersion$
;; so we create a link in system32 that points to syswow64
;; Source: https://harryjohnston.wordpress.com/2011/02/20/installing-32-bit-software-as-system-in-windows-7-x64/
"cmd.exe" /c mkdir "%Systemroot%\syswow64\config\systemprofile\AppData\LocalLow\Oracle\Java\jre$InstVersion$"
"cmd.exe" /c mkdir "%Systemroot%\syswow64\config\systemprofile\AppData\LocalLow\Sun\Java\jre$InstVersion$"
; Use cmd64.exe for mklink - Doesn't work with cmd.exe
"cmd64.exe" /c mklink /J %Systemroot%\system32\config\systemprofile\AppData\LocalLow\Oracle\Java\jre$InstVersion$ %Systemroot%\syswow64\config\systemprofile\AppData\LocalLow\Oracle\Java\jre$InstVersion$
"cmd64.exe" /c mklink /J %Systemroot%\system32\config\systemprofile\AppData\LocalLow\Sun\Java\jre$InstVersion$ %Systemroot%\syswow64\config\systemprofile\AppData\LocalLow\Sun\Java\jre$InstVersion$
"%ScriptPath%\files\jre-$ProductShortVersion$-windows-i586.exe" /s /L C:\opsi.org\log\java32_$InstVersion$.log
[Winbatch_install_64_2]
"%ScriptPath%\files\jre-$ProductShortVersion$-windows-x64.exe" /s /L C:\opsi.org\log\java64_$InstVersion$.log
Re: Windows 7 64 bit - Java 32 bit
Verfasst: 09 Sep 2015, 18:04
von SisterOfMercy
I just download the .tar.gz from obstacle and copy the files. The needed registry keys are also created in the OPSI script. I had several problems with the current installer, for instance the .msi only being a 'shell' for the .exe installer.