GlassFish in Eclipse complains “GlassFish v3 requires a JDK 1.6 and not a JRE”

前端 未结 4 905
栀梦
栀梦 2021-01-04 04:41

I am running:

  • Eclipse Java EE IDE for Web Developers.
  • Version: Helios Service Release 2
  • Build id: 20110218-0911

I have also in

4条回答
  •  别那么骄傲
    2021-01-04 05:14

    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.

    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.

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

    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.

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

提交回复
热议问题