1. 程式人生 > >在eclipse的啟動配置檔案eclipse.ini中配置-vm option

在eclipse的啟動配置檔案eclipse.ini中配置-vm option

問題:

每次啟動eclipse時,報一個warning:Eclipse is running in a JRE, but a JDK is required.Some Maven plugins may not work when importing projects or updating source folders.

解決方法:

找到eclipse的安裝目錄下的eclipse.ini檔案,在-vmargs option上面加入:

-vm 
C:\Program Files\Java\jdk1.6.0_10\

注意:一定要分兩行寫