eclipse websphere 8.5.5.6 服务器具有 java 6 和 7 但我需要 java 8 如何将 java sdk 添加到现有的 websphere 服务器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31718027/
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
websphere 8.5.5.6 server having java 6 and 7 but i need java 8 how to add java sdk to existing websphere server
提问by saidesh kilaru
i installed was 8.5.5.6 in my system. when i am trying to add in eclipse its showing Jre run-time environment as
我在我的系统中安装的是 8.5.5.6。当我尝试在 Eclipse 中添加它时,它显示的 Jre 运行时环境为
- Web sphere application server java 1.6, 64 bit and
- Web sphere application server java 1.7, 64 bit
- Web 领域应用程序服务器 java 1.6,64 位和
- Web Sphere 应用程序服务器 java 1.7,64 位
But i need to work on java 1.8 which is already installed but server jre is not there default java 1.7 is there my question is how to add or upgrade Java 1.8 in web sphere
但是我需要在已经安装的 java 1.8 上工作但是服务器 jre 不存在默认的 java 1.7 我的问题是如何在 web 领域添加或升级 Java 1.8
when i tried to run the server its showing below error:
当我尝试运行服务器时,它显示以下错误:
WebSphere Application Server error WebSphere Application Server error
WebSphere Application Server 错误 WebSphere Application Server 错误
The xxxxxx project is built with Java SDK 8, which is not compatible with the server running at Java SDK 7. Try publishing the application on a later version of WebSphere Application Server. Or try increasing the JRE of the server, if you are using WebSphere Application Server V8.5. The xxxx project is built with Java SDK 1.8, which is not compatible with the server running at Java SDK 7. Try publishing the application on a later version of WebSphere Application Server. Or try increasing the JRE of the server, if you are using WebSphere Application Server V8.5. The xxxxxx project is built with Java SDK 1.8, which is not compatible with the server running at Java SDK 7. Try publishing the application on a later version of WebSphere Application Server. Or try increasing the JRE of the server, if you are using WebSphere Application Server V8.5.
xxxxxx 项目是使用 Java SDK 8 构建的,它与运行在 Java SDK 7 上的服务器不兼容。尝试在更高版本的 WebSphere Application Server 上发布应用程序。或者尝试增加服务器的 JRE,如果您使用的是 WebSphere Application Server V8.5。xxxx 项目是使用 Java SDK 1.8 构建的,它与运行在 Java SDK 7 上的服务器不兼容。尝试在更高版本的 WebSphere Application Server 上发布应用程序。或者尝试增加服务器的 JRE,如果您使用的是 WebSphere Application Server V8.5。xxxxxx 项目是使用 Java SDK 1.8 构建的,它与运行在 Java SDK 7 上的服务器不兼容。尝试在更高版本的 WebSphere Application Server 上发布应用程序。或者尝试增加服务器的JRE,
采纳答案by dunni
Java 8 is only supported by WebSphere Liberty 8.5.5.6. If you use the WebSphere Application Server Full Profile, only Java 7 and 6 are supported.
Java 8 仅受 WebSphere Liberty 8.5.5.6 支持。如果您使用 WebSphere Application Server Full Profile,则仅支持 Java 7 和 6。
回答by mshenhouse
Java 8 is now available on Full WAS 8.5.5.9. It can be downloaded from here. Java 8 is only supported on these Operating Systems.
Java 8 现在可以在 Full WAS 8.5.5.9 上使用。它可以从这里下载。Java 8 仅在这些操作系统上受支持。
回答by Chandramouli
This is what I did. I hope it will help future users.
这就是我所做的。我希望它会对未来的用户有所帮助。
1) I upgraded to 8.5.5.10
2) Go to below page
http://www-01.ibm.com/support/docview.wss?uid=swg24042600#SDK80
and then click on first link ("Java SDK 8.0.3.0 ..." link)
3) Click to download appropriate file. (for Windows, 8.0.3.0-WS-IBMWASJAVA-Win.zip)
4) Extract the file to some location
5) Open IBM installation manager and configure the repository as above location
6) Then click on Install link on installation manager
7) Select appropriate update (IBM Java SDK for app. server)
8) Then just go further to install successfully
9) Start the server and go the below path
Application servers > server1 > Java SDKs
You will see now both Java 8 as well as Java 6.
10) Select Java 8 and click on make default.
11) Restart the server.
12) Thats it
1) 我升级到 8.5.5.10
2) 转到下面的页面
http://www-01.ibm.com/support/docview.wss?uid=swg24042600#SDK80
然后点击第一个链接(“Java SDK 8.0.3.0 ..." 链接)
3) 单击以下载适当的文件。(对于 Windows,8.0.3.0-WS-IBMWASJAVA-Win.zip)
4) 将文件解压到某个位置
5) 打开 IBM 安装管理器并将存储库配置为上述位置
6) 然后单击安装管理器上的安装链接
7) 选择适当的更新(用于应用程序服务器的 IBM Java SDK)
8)然后继续安装成功
9)启动服务器并转到以下路径
应用程序服务器 > 服务器 1 > Java SDKs 您现在将看到 Java 8 和 Java 6。
10) 选择 Java 8 并点击 make default。
11) 重启服务器。
12) 就是这样
回答by peater
Java 8 is now supported on WebSphere classic profile by the 8.5.5.9 fix pack according to the documentation here: http://www-01.ibm.com/support/docview.wss?rs=180&uid=swg27005002
根据此处的文档,8.5.5.9 修订包现在在 WebSphere 经典配置文件上支持 Java 8:http://www-01.ibm.com/support/docview.wss?rs=180&uid=swg27005002
WebSphere 8.5.5 Java 8.0 (Liberty only from 8.5.5.5, Classic WebSphere from 8.5.5.9)
WebSphere 8.5.5 Java 8.0(仅来自 8.5.5.5 的 Liberty,来自 8.5.5.9 的 Classic WebSphere)
回答by Abdul K Shaikh
Go to path where websphere is installed C:\IBM\WebSphere\AppServer85\bin
managesdk.bat –listAvailabl
- managesdk.bat -listEnabledProfile -profileName {Profile name ex - AppSrv01 } -verbose
managesdk.bat -enableProfile -profileName {Profile name ex - AppSrv01 } -sdkname 1.7_32{or 1.7_64} –enableServers
Close RAD (if it is open)
- Reopen RAD
- Right click the server configured with JDK 7 runtime in the servers view > Properties > WebSphere Application Server.
转到安装 websphere 的路径 C:\IBM\WebSphere\AppServer85\bin
managesdk.bat –listAvailable
- managesdk.bat -listEnabledProfile -profileName {Profile name ex - AppSrv01 } -verbose
managesdk.bat -enableProfile -profileName {Profile name ex - AppSrv01 } -sdkname 1.7_32{or 1.7_64} –enableServers
关闭 RAD(如果它是打开的)
- 重新打开 RAD
- 在服务器视图 > 属性 > WebSphere Application Server 中右键单击配置了 JDK 7 运行时的服务器。
The JVM Version should now be at the value of sdkname (for example 1.7_64 as seen below):
JVM 版本现在应该是 sdkname 的值(例如 1.7_64 如下所示):
- Publish your application in RAD
- 在 RAD 中发布您的应用程序