简体   繁体   English

设置ECLIPSE IDE路径

[英]Set up ECLIPSE IDE Path

I'm still working on this problem: Java Runtime command line Process 我仍在解决此问题: Java运行时命令行进程

Based on what one of the contributors has said I tried the following: So I've tried adding the path to "gs" in my "Run Configurations" -> Environment Tab and "Linked Resources" (Preferences -> General -> Workspace -> Linked Resources). 根据一位贡献者所说的,我尝试了以下操作:因此,我尝试在“运行配置”->“环境”选项卡和“链接的资源”(“首选项->常规->工作区- >链接资源)。 Neither has worked... 都没有工作...

But it's still not working, I'm getting the same error. 但是它仍然无法正常工作,我遇到了同样的错误。

Any other ideas? 还有其他想法吗? Because I'm all out. 因为我全力以赴。

You can predefine the workspace via the startup parameter: 您可以通过启动参数预定义工作空间:

-data path_to_workspace, 

eg 例如

"c:\eclipse.exe -data "c:\temp" 

Please note that you have to put the path name into brackets. 请注意,您必须将路径名放在方括号中。 To see the current workspace directory in the title of Eclipse use -showLocation as additional parameter. 要在Eclipse的标题中查看当前的工作空间目录,请使用-showLocation作为附加参数。

Java really knows nothing about your Windows PATH. Java真的对Windows路径一无所知。 You've got two options here: 您在这里有两个选择:

  1. Have your executable on your class path. 将可执行文件放在类路径上。
  2. Have full path to your executable in your command line. 在命令行中具有可执行文件的完整路径。

IMO #2 is much simpler. IMO#2更简单。 If you don't want to hard code it - read it from config file or supply it as system property. 如果您不想对其进行硬编码,请从配置文件中读取它或将其作为系统属性提供。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM