解决 Eclipse is running in a JRE, but a JDK is required

来源:互联网 发布:索尼55 210mm镜头知乎 编辑:程序博客网 时间:2024/05/14 14:18
  1. To create a Windows shortcut to an installed Eclipse:  
  2.   
  3. Navigate to eclipse.exe in Windows Explorer and use Create Shortcut on the content menu.  
  4. Select the shortcut and edit its Properties. In the Target: field append the command line arguments.  
  5. -vm C:/Java/jdk1.6.0_05/bin/javaw  
  6. Opening this shortcut launches Eclipse. (You can drag the shortcut to the Windows Desktop if you want to keep it in easy reach.)  
  7.   
  8. example:  
  9. C:/Eclipse/eclipse.exe -vm C:/Java/jdk1.6.0_05/bin/javaw.exe