在Win 8上启动Eclipse时出现Java错误

时间:2023-01-22 17:42:02

When starting Eclipse I get the following error:

启动Eclipse时,我收到以下错误:

在Win 8上启动Eclipse时出现Java错误

Obviously it's trying to use javaw.exe from system32-folder, which it shouldn't I guess. I've set the environment-vars to the following:

显然它正在尝试使用system32文件夹中的javaw.exe,我不应该这样做。我已将环境变量设置为以下内容:

JAVA_HOME : "C:\Program Files\Java\jdk1.7.0_07;C:\Program Files (x86)\Java\jdk1.7.0_07"

JAVA_HOME:“C:\ Program Files \ Java \ jdk1.7.0_07; C:\ Program Files(x86)\ Java \ jdk1.7.0_07”

Path : "... ;C:\Program Files (x86)\Java\jdk1.7.0_07\bin;C:\Program Files\Java\jdk1.7.0_07\bin"

路径:“...; C:\ Program Files(x86)\ Java \ jdk1.7.0_07 \ bin; C:\ Program Files \ Java \ jdk1.7.0_07 \ bin”

and I added -vm C:\Program Files\Java\jdk1.7...\bin\javaw.exe to eclipse.ini

我将-vm C:\ Program Files \ Java \ jdk1.7 ... \ bin \ javaw.exe添加到eclipse.ini

Java and JDK are installed. x86-version and x64-version. Has anybody an idea, how I can solve this?

安装了Java和JDK。 x86-version和x64-version。有谁有想法,我怎么能解决这个问题?

1 个解决方案

#1


0  

The solution is the following:

解决方案如下:

  • I removed the -vm C:\Program ... entry from eclipse.ini
  • 我从eclipse.ini中删除了-vm C:\ Program ...条目

  • I removed the JAVA_HOME variable
  • 我删除了JAVA_HOME变量

  • I edited the Path as follows: I moved the path to javaw.exe to the beginning of the Path-variable, because it's using the first javaw.exe it finds and there's one in system32-folder whyever.
  • 我按如下方式编辑了Path:我将javaw.exe的路径移动到Path-variable的开头,因为它使用了它找到的第一个javaw.exe,并且system32-folder中有一个。

#1


0  

The solution is the following:

解决方案如下:

  • I removed the -vm C:\Program ... entry from eclipse.ini
  • 我从eclipse.ini中删除了-vm C:\ Program ...条目

  • I removed the JAVA_HOME variable
  • 我删除了JAVA_HOME变量

  • I edited the Path as follows: I moved the path to javaw.exe to the beginning of the Path-variable, because it's using the first javaw.exe it finds and there's one in system32-folder whyever.
  • 我按如下方式编辑了Path:我将javaw.exe的路径移动到Path-variable的开头,因为它使用了它找到的第一个javaw.exe,并且system32-folder中有一个。