![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Instalar JAVA manualmente en un Windows (con bash), útil para wineFuente: https://appdb.winehq.org/objectManager.php?sClass=version&iId=31528&iTestingId=90897&bShowAll=trueManual installation of Java 8. Due to the nature of Java, you can run this on a Unix-like or Windows, provided you have an existing Java 8 installation. However these instructions will be for Unix-like systems. You will also need p7zip-full (available in Debian) along with unzip. Download jdk-8u60-windows-i586.exe and place it into C:\. $ cd ~/.wine/drive_c $ 7z x jdk-8u60-windows-i586.exe A file called tools.zip should be created. $ mkdir jdk $ cd jdk $ unzip ../tools.zip The installation cannot yet be run, unpack200 must be called on all pack200ed JAR files. Using a POSIX compatible shell this is simple. This will take awhile to complete. If you do not have unpack200, you can use one from another Java installation on another system. $ find -type f | grep '\.pack$' | while read __line; do \ __outjar="$(dirname "$__line")/$(basename "$__line" .pack).jar" echo "$__line" -- "$__outjar"; \ unpack200 "$__line" "$__outjar"; \ done After it is complete, check that your installation works. $ wine bin/java -version You should see fixme:heap:HeapSetInformation (nil) 1 (nil) 0 java version "1.8.0_60" Java(TM) SE Runtime Environment (build 1.8.0_60-b27) Java HotSpot(TM) Client VM (build 25.60-b23, mixed mode) This means that your installation works. After this you can either: 1) Call via c:\jdk\bin\java (or relative paths, etc.) 2) Add c:\jdk\bin to your Windows PATH JAVA_HOME should not have to be set at all, however if it complains about it then you can set it to c:\jdk\jre. Para añadir una variable al path (Fuente): Run "wine regedit", navigate to "HKCU/Environment" and make sure the string "PATH" with value "C:\jdk\bin" exists. |