java “必须安装 JRE 1.3 或更高版本!” / "必须安装JDK 1.3或更高版本!" 在 Windows 7 (x64) 上安装 JAI 1.1.3 时出错
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7284035/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
"JRE 1.3 or higher must be installed!" / "JDK 1.3 or higher must be installed!" errors installing JAI 1.1.3 on Windows 7 (x64)
提问by Xonatron
I am getting these errors...
我收到这些错误...
Severe: JRE 1.3 or higher must be installed!
严重:必须安装JRE 1.3或更高版本!
Severe: JDK 1.3 or higher must be installed!
严重:必须安装JDK 1.3或更高版本!
...when installing JAI (Java Advanced Imaging) 1.1.3 on Windows 7 (x64), with JRE 7 (1.7) installed at "C:\Program Files\Java\jre7" and JDK 7 (1.7) installed at "C:\Program Files\Java\jdk1.7.0".
...在 Windows 7 (x64) 上安装 JAI (Java Advanced Imaging) 1.1.3 时,JRE 7 (1.7) 安装在“C:\Program Files\Java\jre7”,JDK 7 (1.7) 安装在“C” :\Program Files\Java\jdk1.7.0"。
Following http://download.java.net/media/jai/builds/release/1_1_3/INSTALL.html#Windows, specifically this is what I did:
按照http://download.java.net/media/jai/builds/release/1_1_3/INSTALL.html#Windows,具体来说这是我所做的:
Visited:
访问过:
- http://download.java.net/media/jai/builds/release/
- http://download.java.net/media/jai/builds/release/1_1_3/(latest version)
- http://download.java.net/media/jai/builds/release/
- http://download.java.net/media/jai/builds/release/1_1_3/(最新版本)
Downloaded:
下载:
- http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-windows-i586-jdk.exe
- http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-windows-i586-jre.exe
- http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-windows-i586.exe
- http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-windows-i586.jar.zip
- http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-windows-i586-jdk.exe
- http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-windows-i586-jre.exe
- http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-windows-i586.exe
- http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-windows-i586.jar.zip
EDIT (QUESTION): It would be great if someone could break down the difference between these files. The instructions at http://download.java.net/media/jai/builds/release/1_1_3/INSTALL.html#Windowsdo not go into enough detail and assume you already know what's what.
编辑(问题):如果有人可以分解这些文件之间的差异,那就太好了。http://download.java.net/media/jai/builds/release/1_1_3/INSTALL.html#Windows 上的说明不够详细,假设您已经知道什么是什么。
EDIT: As noted in the comments below, the .exe are exclusive installs, but I wished to install them to all three locations (to "C:\Program Files (x86)\Sun Microsystems\Java Advanced Imaging 1.1.3" as well as to my JDK and JRE locations), as I was not sure which I would need at my work as a Java developer. As far as I know, I just need to install the JDK version, and the .zip is a manual install of the same thing. I am not sure though! Unverified.
编辑:如以下评论中所述,.exe 是独占安装,但我希望将它们安装到所有三个位置(也安装到“C:\Program Files (x86)\Sun Microsystems\Java Advanced Imaging 1.1.3”)至于我的 JDK 和 JRE 位置),因为我不确定作为 Java 开发人员在我的工作中需要哪些。据我所知,我只需要安装 JDK 版本,而 .zip 是相同内容的手动安装。我不确定!未经证实。
Installed:
安装:
- jai-1_1_3-lib-windows-i586.exe (installed fine)
- jai-1_1_3-lib-windows-i586-jre.exe <---- this is what causes one of the errors.
- jai-1_1_3-lib-windows-i586-jdk.exe <---- this is what causes one of the errors.
- jai-1_1_3-lib-windows-i586.exe(安装正常)
- jai-1_1_3-lib-windows-i586-jre.exe <---- 这是导致错误之一的原因。
- jai-1_1_3-lib-windows-i586-jdk.exe <---- 这是导致错误之一的原因。
The errors appear to be the same issue of not finding where Java (JRE and JDK) is installed.
这些错误似乎与找不到 Java(JRE 和 JDK)的安装位置相同。
I have the following environment variables set:
我设置了以下环境变量:
- JAVA_HOME = C:\Program Files\Java\jdk1.7.0
- Path = ...;C:\Program Files\Java\jdk1.7.0\bin
- JAVA_HOME = C:\Program Files\Java\jdk1.7.0
- 路径 = ...;C:\Program Files\Java\jdk1.7.0\bin
EDIT: This makes me think the problem is something deeper than environment variables, as there's no environment variables for JRE like there is for JDK (i.e., JAVA_HOME), right?
编辑:这让我认为问题比环境变量更深,因为 JRE 没有环境变量,就像 JDK(即 JAVA_HOME)一样,对吧?
Fixes I have tried (to no avail):
我尝试过的修复(无济于事):
- Re-installing*.
- Re-downloading and re-installing*.
- Adding "C:\Program Files\Java\jre7\bin" to "Path" and re-installing*.
- Adding "C:\Program Files\Java\jre7" to "Path", without removing the above Path addition, and re-installing*.
- Adding "C:\PROGRA~1\Java\jre7" to "Path", and verified it was the proper folder, and re-installing*.
- Changing JAVA_HOME from "C:\Program Files\Java\jdk1.7.0" to "C:\PROGRA~1\Java\JDK17~1.0", and verified it properly forwards back to the original folder in Windows, and re-installing*.
- Re-installing Java to a non-space folder, "C:\xxx\xxx\jdk1.7.0", where the x's are letters not spaces, and verified it works properly with "java -version" command line, and re-installing**.
- 重新安装*。
- 重新下载并重新安装*。
- 将“C:\Program Files\Java\jre7\bin”添加到“Path”并重新安装*。
- 将“C:\Program Files\Java\jre7”添加到“Path”中,不去掉上面的Path添加,重新安装*。
- 将“C:\PROGRA~1\Java\jre7”添加到“Path”,并验证它是正确的文件夹,然后重新安装*。
- 将 JAVA_HOME 从“C:\Program Files\Java\jdk1.7.0”更改为“C:\PROGRA~1\Java\JDK17~1.0”,并验证它正确转发回Windows中的原始文件夹,然后重新安装* .
- 将 Java 重新安装到非空格文件夹“C:\xxx\xxx\jdk1.7.0”,其中 x 是字母而不是空格,并使用“java -version”命令行验证它可以正常工作,然后重新安装**。
*Downloading and installing jai-1_1_3-lib-windows-i586-jre.exe
*下载安装jai-1_1_3-lib-windows-i586-jre.exe
**Downloading and installing jai-1_1_3-lib-windows-i586-jdk.exe
**下载安装jai-1_1_3-lib-windows-i586-jdk.exe
None of this worked. :(
这些都没有奏效。:(
I have not tried:
我没试过:
- Using an older JRE than 7 (1.7)
- 使用比 7 (1.7) 更旧的 JRE
Any help would be great.
任何帮助都会很棒。
POSSIBLE (HACK) SOLUTION: What about manual installation? It's what we've opted to do at work. Is it possible to figure out what files are installed (without installing it since I cannot)?
可能的(黑客)解决方案:手动安装怎么样?这是我们选择在工作中做的事情。是否可以找出安装了哪些文件(因为我不能安装,所以不安装它)?
EDIT: I have also verified that "JAI (Java Advanced Imaging) Image I/O" has the same problems on my system.
编辑:我还验证了“JAI(Java 高级成像)图像 I/O”在我的系统上存在相同的问题。
回答by David Oliván Ubieto
JAI is only available on 32bit (x86) JRE, so you need to install the 32 bit JRE on Windows 7.
JAI 仅在 32 位 (x86) JRE 上可用,因此您需要在 Windows 7 上安装 32 位 JRE。
JAI uses some native implementations (dlls) in order to accelerate the processing, so only installs on a 32bit JRE.
JAI 使用一些本机实现 (dll) 来加速处理,因此仅安装在 32 位 JRE 上。
When installing JAI, it tries to detect the installed JRE and should be a 32bit JRE. You can install 32bit JRE on a Windows 7 x64, the only "difference" is the performance and the maximum memory available to java applications.
安装 JAI 时,它会尝试检测已安装的 JRE,并且应该是 32 位 JRE。您可以在 Windows 7 x64 上安装 32 位 JRE,唯一的“区别”是性能和 Java 应用程序可用的最大内存。
Install JAva 7 JRE 32bit from http://www.oracle.com/technetwork/java/javase/downloads/java-se-jre-7-download-432155.htmlselect "Windows x86 Offline".
从http://www.oracle.com/technetwork/java/javase/downloads/java-se-jre-7-download-432155.html安装 JAva 7 JRE 32bit选择“Windows x86 Offline”。
Another way is manual installation from JAI as zip, use jai-1_1_3-lib-windows-i586.jar.zip and execute from the 32bit JRE.
另一种方法是从 JAI 手动安装 zip,使用 jai-1_1_3-lib-windows-i586.jar.zip 并从 32 位 JRE 执行。
回答by KevinDTimm
install a JRE version 1.3 or later? (and make sure that your PATH points to it)
安装 JRE 1.3 或更高版本?(并确保您的 PATH 指向它)
[edit]
Are you sure there's a problem? It seems that 3 files you downloaded are mutually exclusive (that's what I got from reading the installation instructions)
[编辑]
你确定有问题吗?您下载的 3 个文件似乎是互斥的(这是我从阅读安装说明中得到的)
http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-windows-i586-jdk.exe
http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-windows-i586-jre.exe
http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-windows-i586.exe
Installing -jre or -jdk may be redundant
I installed the jre version and it asked me for a jre directory - any of that happen to you?
[/edit]
安装 -jre 或 -jdk 可能是多余的
我安装了 jre 版本,它要求我提供一个 jre 目录 - 你有遇到过这种情况吗?
[/编辑]
回答by Martin Gamulin
try to install (reinstall) java (jre) in folder without any spaces. For example C:\Java\jre7.
尝试在没有任何空格的文件夹中安装(重新安装)java(jre)。例如 C:\Java\jre7。
回答by user1466609
You must install 32-bit version of jdk
您必须安装 32 位版本的 jdk
回答by user2022003
I solved this problem by installing 32-bit version of jdk. My OS is window 8 64-bit. when installing jai-1_1_3-lib-windows-i586-jdk.exe and jai_imageio-1_1-lib-windows-i586-jdk.exe with double clicks, i got the same error "Severe: JRE 1.3 or higher must be installed!" then I downloaded jdk-7u21-windows-i586.exe and installed it in "c:\Program Files (x86)\Java". and then it's OK.
我通过安装 32 位版本的 jdk 解决了这个问题。我的操作系统是 windows 8 64 位。双击安装 jai-1_1_3-lib-windows-i586-jdk.exe 和 jai_imageio-1_1-lib-windows-i586-jdk.exe 时,出现同样的错误“严重:必须安装 JRE 1.3 或更高版本!” 然后我下载了 jdk-7u21-windows-i586.exe 并将其安装在“c:\Program Files (x86)\Java”中。然后就OK了。