創建桌面快捷方式

Specifying the Java virtual machine
Here is a typical Eclipse command line:
eclipse -vm c:\jdk6u22\jre\bin\javaw
Tip: It's generally a good idea to explicitly specify which Java VM to use when running Eclipse. This is achieved with the "-vm" command line argument as illustrated above. If you don't use "-vm", Eclipse will look on the O/S path. When you install other Java-based products, they may change your path and could result in a different Java VM being used when you next launch Eclipse.
To create a Windows shortcut to an installed Eclipse:
1.Navigate to eclipse.exe in Windows Explorer and use Create Shortcut on the content menu.
2.Select the shortcut and edit its Properties. In the Target: field append the command line arguments.
Opening this shortcut launches Eclipse. (You can drag the shortcut to the Windows Desktop if you want to keep it in easy reach.)
D:\eclipse\eclipse.exe -vm D:\JRE6\bin\javaw.exe

D:\eclipse\eclipse.exe -vm "D:\JRE 6\bin\javaw.exe"

注意:當javaw的路徑包含空格時必須使用雙引號包含起來。
復制JRE安裝文件到Eclipse根目錄


編輯eclipse.ini


在-vmargs之前插入參數,如下:
-vm
D:\JRE6\bin\javaw.exe

-vm
D:\JRE 6\bin\javaw.exe

注意:即使javaw的路徑包含空格,也不要使用雙引號。
設置Path環境變量
向Path環境變量追加內容(javaw的父級路徑),如下:
;D:\JRE6\bin

浙公網安備 33010602011771號