終於找到在 windows 7 中替某個程式加上【以系統管理員執行此程式】的方法了!!
這樣的話,我在 Easy_run_class 中新增 PATH 應該就不會遇到什麼問題了
要新增資料到登錄檔裡面
安裝程式都可以代勞~
接下來的比較大的問題...可能就是要怎麼辦找到 JDK 的路徑了吧 (在沒有安裝在預設路徑的情況下)
本文章轉載自:http://www.sevenforums.com/tutorials/316-compatibility-mode.html
1. Open the Start Menu, then type regedit in the search box and press Enter.
2. If prompted by UAC, then click on Yes.
3. In regedit, navigate to the location below. (see screenshot below)
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
4. To Run a Program in Compatibility Mode
A) In the right pane of Layers, right click on a empty area and click on New, then onString Value. (see screenshot below)
B) Type in the full path of the program's exe file and press Enter, then right click on the full path and click on Modify. (see screenshot below)
C) Type in a single or combination of Data values (see tables below) for how you want to run the program as, and click on OK. (see screenshot below)
NOTE: If you use more than one Settings, then you must add them in the order they are in the table below.
[Compatibility Mode (only one)] + space + [Settings (one or more with a space inbetween)] + space + [Privilege Level]