为Eclipse和Command行设置JDK环境变量

时间:2022-06-20 02:48:58

I had Java working with Eclipse but I had to set up up Javac on the command line. I set the environment variables shown below but it doesn't work. Eclipse has now also stopped working.

我让Java使用Eclipse但我必须在命令行上设置Javac。我设置了下面显示的环境变量,但它不起作用。 Eclipse现在也停止了工作。

为Eclipse和Command行设置JDK环境变量

Any help would be great! Thanks!

任何帮助都会很棒!谢谢!

1 个解决方案

#1


0  

Ok so I went a bit crazy and uninstalled/reinstalled loads of different jdk's. Finally one installed completely when I saved it directly to my C drive. I updated my environment variables for eclipse and for my command prompt and voila! Java is now working! I guess the problems with the space between Program Files will haunt me forever so I shouldn't save anything there anymore.

好的,所以我有点疯狂,卸载/重新安装不同的jdk的负载。最后,当我将其直接保存到我的C盘时,完全安装了。我为eclipse和我的命令提示符更新了我的环境变量,瞧! Java正在运行!我想程序文件之间的空间问题将永远困扰我,所以我不应该再保存任何东西了。

#1


0  

Ok so I went a bit crazy and uninstalled/reinstalled loads of different jdk's. Finally one installed completely when I saved it directly to my C drive. I updated my environment variables for eclipse and for my command prompt and voila! Java is now working! I guess the problems with the space between Program Files will haunt me forever so I shouldn't save anything there anymore.

好的,所以我有点疯狂,卸载/重新安装不同的jdk的负载。最后,当我将其直接保存到我的C盘时,完全安装了。我为eclipse和我的命令提示符更新了我的环境变量,瞧! Java正在运行!我想程序文件之间的空间问题将永远困扰我,所以我不应该再保存任何东西了。