Eclipse is running in a JRE, but a JDK is requi...

Eclipse安裝了Maven插件後,可能會報這種錯誤: 「Eclipse is running in a JRE, but a JDK is required」 java

這是由於在Eclipse.ini配置中沒有指定-vm參數,修改以下重啓Eclipse問題就解決了: eclipse


eclipse.ini 寫道-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
C:\Program Files\Java\jdk1.6.0_10\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
相關文章
相關標籤/搜索