有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

EclipseWebSphere8.5.5.6服务器具有Java6和Java7,但我需要Java8如何将JavaSDK添加到现有的WebSphereServer

我在系统中安装了was 8.5.5.6。当我试图添加eclipse时,它会将Jre运行时环境显示为

  1. Web sphere应用服务器java 1.6、64位和
  2. Web sphere应用服务器java 1.7,64位

但我需要在已经安装的Java1.8上工作,但是服务器jre不存在,默认的Java1.7存在 我的问题是如何在WebSphere中添加或升级Java1.8

当我尝试运行服务器时,它显示以下错误:

WebSphere应用程序服务器错误 WebSphere应用程序服务器错误

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.


共 (5) 个答案

  1. # 1 楼答案

    Java8现在可以在WAS8.5.5.9上完整下载。 可从here下载。 Java 8仅在这些Operating Systems上受支持

  2. # 2 楼答案

    Java 8仅受WebSphere Liberty 8.5.5.6支持。如果使用WebSphere Application Server完整配置文件,则只支持Java 7和6

  3. # 3 楼答案

    1. 转到安装websphere的路径 C:\IBM\WebSphere\AppServer85\bin

    2. managesdk。bat–列表可用

    3. managesdk。bat-listEnabledProfile-profileName{Profile name ex-AppSrv01}-verbose
    4. managesdk。bat-enableProfile-profileName{Profile name ex-AppSrv01}-sdkname 1.7_32{或1.7_64}-enableServers

    5. 关闭RAD(如果打开)

    6. 重新打开RAD
    7. 右键单击servers视图中配置了JDK 7 runtime的服务器>;房地产>;WebSphereApplicationServer

    JVM版本现在应该是sdkname的值(例如1.7_64,如下所示):

    1. 在RAD中发布应用程序
  4. # 5 楼答案

    我就是这么做的。我希望它能帮助未来的用户

    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 installation manager并按上述位置配置存储库
    6) 然后单击installation manager上的安装链接
    7) 选择适当的更新(IBM Java SDK for app.server)
    8) 然后,只需进一步成功安装
    9) 启动服务器并按以下路径运行
    应用服务器>;服务器1>;Java SDK 现在您将看到Java8和Java6
    10) 选择Java8并单击make default
    11) 重新启动服务器
    12) 就这样