2012-01-11 60 views
3

當我啓動Eclipse,我立刻得到以下錯誤:Eclipse將不是我的Windows 7系統上啓動,JRE未找到錯誤

A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: C:\Program Files\eclipse\jre\bin\javaw.exe javaw.exe in your current PATH

看來,它無法讀取ini文件,或實際的java路徑系統變量。

下面的東西,我已經在網絡上閱讀,我已經創建了一個eclipse.ini文件具有以下內容:

-vm 
c:\program files\java\jre7\bin\javaw.exe 

這是應該避免瞎的路徑。

我在Windows 7 SP1上運行。

感謝您的任何想法和意見!

問候,

史蒂夫奧沙利文

回答

9

與價值路徑創建一個環境變量PATH至UR jdkbin文件夾

+1

賓果!謝謝。新的MS員工,並從Macintosh轉換到Windows(再次....) – Sosullivan 2012-01-11 18:13:55

+0

不客氣 – 2012-01-11 18:17:25

2

請嘗試將路徑報價之間像"c:\program files\java\jre7\bin\javaw"

5

雖然PATH變量確實有效,最好的做法是將其放入eclipse.ini中,因爲這樣可以讓您快速更改正在使用的JRE。這就是說,就eclipse.ini而言,就佈局和語法而言,存在一些古怪的問題。

- The -vm option and its value (the path) must be on separate lines. 
- The value must be the full absolute path to the Java executable, not just to the Java home directory. 
- The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM. 

希望這會有所幫助。

相關問題