<small id='TDvyX'></small><noframes id='TDvyX'>

      <legend id='TDvyX'><style id='TDvyX'><dir id='TDvyX'><q id='TDvyX'></q></dir></style></legend>

      <tfoot id='TDvyX'></tfoot>
          <bdo id='TDvyX'></bdo><ul id='TDvyX'></ul>
        <i id='TDvyX'><tr id='TDvyX'><dt id='TDvyX'><q id='TDvyX'><span id='TDvyX'><b id='TDvyX'><form id='TDvyX'><ins id='TDvyX'></ins><ul id='TDvyX'></ul><sub id='TDvyX'></sub></form><legend id='TDvyX'></legend><bdo id='TDvyX'><pre id='TDvyX'><center id='TDvyX'></center></pre></bdo></b><th id='TDvyX'></th></span></q></dt></tr></i><div id='TDvyX'><tfoot id='TDvyX'></tfoot><dl id='TDvyX'><fieldset id='TDvyX'></fieldset></dl></div>

      1. Eclipse 中的 GlassFish 抱怨“GlassFish v3 需要 JDK 1.6 而不是 JRE"

        时间:2023-08-21
            <tbody id='IKRZa'></tbody>

          1. <legend id='IKRZa'><style id='IKRZa'><dir id='IKRZa'><q id='IKRZa'></q></dir></style></legend>

            <i id='IKRZa'><tr id='IKRZa'><dt id='IKRZa'><q id='IKRZa'><span id='IKRZa'><b id='IKRZa'><form id='IKRZa'><ins id='IKRZa'></ins><ul id='IKRZa'></ul><sub id='IKRZa'></sub></form><legend id='IKRZa'></legend><bdo id='IKRZa'><pre id='IKRZa'><center id='IKRZa'></center></pre></bdo></b><th id='IKRZa'></th></span></q></dt></tr></i><div id='IKRZa'><tfoot id='IKRZa'></tfoot><dl id='IKRZa'><fieldset id='IKRZa'></fieldset></dl></div>

            <small id='IKRZa'></small><noframes id='IKRZa'>

              • <tfoot id='IKRZa'></tfoot>
                  <bdo id='IKRZa'></bdo><ul id='IKRZa'></ul>

                  本文介绍了Eclipse 中的 GlassFish 抱怨“GlassFish v3 需要 JDK 1.6 而不是 JRE".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在跑步:

                  • 面向 Web 开发人员的 Eclipse Java EE IDE.
                  • 版本:Helios Service Release 2
                  • 版本号:20110218-0911

                  我还安装了 Java EE 6 SDK Update 2,其中包括:

                  I have also installed Java EE 6 SDK Update 2 which includes:

                  • GlassFish 开源版 3.1
                  • Java EE 6 代码示例
                  • Java EE 6 API 文档
                  • Java EE 6 教程
                  • 您的第一杯:Java EE 平台简介

                  我已经在 Eclipse 中注册了 GlassFish,但是当我尝试启动服务器时,我收到以下错误:

                  I have registered GlassFish with Eclipse but when I try to start the server, I get the following error:

                  GlassFish v3 需要 JDK 1.6 而不是 JRE.请在服务器属性运行时环境"部分添加/选择正确的 JDK.

                  GlassFish v3 requires a JDK 1.6 and not a JRE. Please add/select the correct JDK in the Server properties 'Runtime Environment' section.

                  我已经在这里搜索了答案,但到目前为止似乎都没有.谁能建议我如何解决这个错误?

                  I have searched here for an answer but none so far seem to work. Can anybody suggest how I would sort this error out?

                  推荐答案

                  是的,您下载(或将 Eclipse 指向)一个 JRE,但它需要一个 JDK.后者拥有所有Java工具:javac.exe、java.exe、jar.exe等.

                  Yes, you downloaded (or pointed Eclipse to) a JRE, but it needs a JDK. The latter has all the Java tools: javac.exe, java.exe, jar.exe, etc.

                  如果您查看您告诉 Eclipse 查找 JDK 的目录,您必须看到一个/bin 目录,其中包含这些 .exe 文件.如果不知道,您就知道错误消息的原因.

                  If you look at the directory where you told Eclipse to look for a JDK, you must see a /bin directory with those .exe files in it. If you don't, you know why the error message.

                  确保您下载了 JDK 并将 Eclipse 指向它.

                  Make sure you downloaded a JDK and point Eclipse to it.

                  再检查一下:看看您是否可以在没有 Eclipse 的情况下启动 Glassfish.如果你同时学习这两件事,你就对两件事一无所知.在您可以让 Glassfish 自行运行之前,不要考虑一个未知数.

                  One more check: see if you can start Glassfish without Eclipse. You're ignorant of two things if you're learning both at the same time. Leave one unknown out of the equation until you can make Glassfish run on its own.

                  您需要一个 JAVA_HOME 环境变量.它指向什么?如果您没有,请创建它.

                  You need a JAVA_HOME environment variable. What's it pointing to? If you don't have one, create it.

                  这篇关于Eclipse 中的 GlassFish 抱怨“GlassFish v3 需要 JDK 1.6 而不是 JRE".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:eclipse,新的android应用项目,“next button";在需要项目名称的部分中被禁用 下一篇:eclipse中的.metadata.log错误

                  相关文章

                • <small id='bEOh5'></small><noframes id='bEOh5'>

                  <tfoot id='bEOh5'></tfoot>

                  1. <legend id='bEOh5'><style id='bEOh5'><dir id='bEOh5'><q id='bEOh5'></q></dir></style></legend>
                      <bdo id='bEOh5'></bdo><ul id='bEOh5'></ul>

                  2. <i id='bEOh5'><tr id='bEOh5'><dt id='bEOh5'><q id='bEOh5'><span id='bEOh5'><b id='bEOh5'><form id='bEOh5'><ins id='bEOh5'></ins><ul id='bEOh5'></ul><sub id='bEOh5'></sub></form><legend id='bEOh5'></legend><bdo id='bEOh5'><pre id='bEOh5'><center id='bEOh5'></center></pre></bdo></b><th id='bEOh5'></th></span></q></dt></tr></i><div id='bEOh5'><tfoot id='bEOh5'></tfoot><dl id='bEOh5'><fieldset id='bEOh5'></fieldset></dl></div>