如何在NetBeans中指定PATH?

如何在NetBeans中指定PATH?

问题描述:

在NetBeans上运行Ruby代码时(例如在运行测试时),由于找不到程序,我遇到了一些故障.该程序安装在/opt中的某个位置,而对于外壳程序,我将其添加到了PATH中,似乎NetBeans没有得到它.

When running Ruby code on NetBeans (like when running the tests) I'm having some failures because a program is not being found. That program is installed somewhere in /opt and while for the shell I get that added to my PATH, it seems NetBeans is not getting it.

如何在NetBeans中指定PATH?

How do I specify the PATH in NetBeans?

在Unix中,您的netbeans安装目录(我们将其称为$ NETBEANS)中有一个etc目录.

In Unix, in your netbeans install directory (we'll call it $NETBEANS), there's an etc directory.

$ NETBEANS/etc/netbeans.conf可以更改为在PATH中添加内容或为Netbeans实例设置其他环境变量.例如,我在那里为我的Glassfish启动设置了一些env变量.

$NETBEANS/etc/netbeans.conf can be changed to add things to your PATH or set other environment variables for your Netbeans instances. I set some env variable for my Glassfish launches in there, for example.

对于Windows无法说.

Can't say for Windows.