在mac上设置DERBY_HOME环境变量?

时间:2012-02-15 16:12:54

标签: eclipse macos eclipse-plugin environment-variables derby

我正在使用Eclipse并且希望也使用Derby数据库,并且在设置它时遇到问题。

我将插件文件复制到Eclipse插件文件夹,认为Derby会显示在弹出菜单上,其中包含“new”,“properties”等,但它没有显示在那里。

有人告诉我启动Derby服务器,所以我将bin文件夹复制到我的计算机上并运行startNetworkServer unix可执行文件。它给了我这个错误:

Error: DERBY_HOME is not set. Please set the DERBY_HOME environment variable
to the location of your Derby installation.

那么你能告诉我如何做错误说明我需要做的步骤吗?

1 个答案:

答案 0 :(得分:2)

启动“终端”应用程序并导航到您的主目录。

然后将其添加到.bashrc文件中:

DERBY_HOME=/directory/to/your/installation
export DERBY_HOME

如果它不存在,只需使用touch .bashrc

创建它
相关问题