[英]set the CLASSPATH
I am using Mac os Sierra 10.12.3 ,I want to execute the byte code on the Java(TM) Virtual Machine (JVM) I need to set the CLASSPATH, Using my terminal 我正在使用Mac OS Sierra 10.12.3,我想在Java(TM)虚拟机(JVM)上执行字节代码,我需要使用终端设置CLASSPATH
CLASSPATH=</Users/.../Documents/jj2000/jj2000-4.1\ 3>/jj2000-4.1.jar:$CLASSPATH export CLASSPATH
show me 给我看看
-bash: /jj2000-4.1.jar:: Permission denied
I am confusing with command line how can I set the CLASSPATH. 我在命令行中混淆了如何设置CLASSPATH。 My java is
我的java是
java version "1.8.0_20-ea"
Java(TM) SE Runtime Environment (build 1.8.0_20-ea-b20)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b20, mixed mode)
Please help. 请帮忙。
Don't, ever, set a global CLASSPATH environment variable. 永远不要设置全局CLASSPATH环境变量。 Pass the classpath to each java program you launch: each one has its own, specific classpath.
将类路径传递给您启动的每个Java程序:每个都有自己的特定类路径。
java -cp /path/to/jj2000-4.1.jar:your-application.jar com.yourcompany.youapp.Main
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.