简体   繁体   English

Derby Eclipse类路径

[英]Derby Eclipse classpath

I'm new at Derby+Eclipse and trying to use it on my Mac OS. 我是Derby + Eclipse的新手,并尝试在我的Mac OS上使用它。 I've downloaded db-derby-10.8.3.0-bin zip file from http://db.apache.org/derby/derby_downloads.html , extracted it and added it to CLASSPATH via eclipse properties->java build path. 我从http://db.apache.org/derby/derby_downloads.html下载了db-derby-10.8.3.0-bin zip文件,将其解压缩并通过eclipse属性 - > java build path将其添加到CLASSPATH。 Now when I try java org.apache.derby.tools.sysinfo in my terminal it says: 现在,当我在终端上尝试java org.apache.derby.tools.sysinfo ,它说:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/derby/tools/sysinfo

When I try echo $CLASSPATH there is an empty string. 当我尝试echo $ CLASSPATH时,有一个空字符串。 I'm doing something wrong? 我做错了什么?

The Eclipse Java Build Path just sets the class path for compiling and running the project from within Eclipse. Eclipse Java Build Path只是设置了从Eclipse中编译和运行项目的类路径。 It does not set the system CLASSPATH, you will have to set that separately outside of Eclipse. 没有设置系统CLASSPATH,您必须在Eclipse之外单独设置它。

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

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