博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mac classpath设置
阅读量:4583 次
发布时间:2019-06-09

本文共 1736 字,大约阅读时间需要 5 分钟。

I've been searching for the answer daylong, and finally had the problems solved. I am going to write down what I've done to complete them. Hopefully this could help someone.

As far as I know, there is little need to modify PATH on Mac, so here I only tell how to set CLASSPATH on Mac.

1. Temporary setting, which means once you close the Terminal, the setting won't be kept. You have to set again when you open another Terminal.

Here is the steps:

Open the Terminal;

Type:(Here I suppose you put distribution under your username folder)

$export CLASSPATH=${CLASSPATH}:~/jadex-0.96/lib/jadex_rt.jar:~/jadex-0.96/lib/jibx-run.jar:~/jadex-0.96/lib/xpp3.jar:~/jadex-0.96/lib/jadex_standalone.jar:~/jadex-0.96/lib/jadex_tools.jar:~/jadex-0.96/lib/GraphLayout.jar:~/jadex-0.96/lib/jhall.jar

Press return

Then you could check by typing:

$ echo $CLASSPATH to see if you succeed in doing that. After that, you could run command:

$ java jadex.adapter.standalone.Platform

 

 

2. Permanent setting.

Open the Terminal

$ ls -a 

And see if there is a .bash_profile in your home folder. If there isn't:
$touch .bash_profile
This will create a blank file if there is none. Then,
$open -e .bash_profile
This will open it in TextEdit. Add the following line:
export CLASSPATH=.:/Users/lingao/jadex-0.96/lib/jadex_rt.jar:/Users/lingao/jadex-0.96/lib/jibx-run.jar:/Users/lingao/jadex-0.96/lib/xpp3.jar:/Users/lingao/jadex-0.96/lib/jadex_standalone.jar:/Users/lingao/jadex-0.96/lib/jadex_tools.jar:/Users/lingao/jadex-0.96/lib/GraphLayout.jar:/Users/lingao/jadex-0.96/lib/jhall.jar
save the file
close the Terminal and open a new one
Type:$ echo $CLASSPATH
You will find there are values for CLASSPATH.

Done!

转载于:https://www.cnblogs.com/melody-emma/p/4736075.html

你可能感兴趣的文章
Ice_cream's world I
查看>>
echarts中国地图散点涟漪效果
查看>>
三.NFS存储服务
查看>>
sql2008日志文件截断
查看>>
git增加远程仓库
查看>>
[POJ3162]Walking Race(DP + 单调队列)
查看>>
作业3-单元测试
查看>>
【生活日常】一切从Hello World开始
查看>>
微信分享 apicloud方式 中遇到的坎
查看>>
用例图之我见
查看>>
UVA 10972 RevolC FaeLoN(边-双连通+缩点)
查看>>
开源的Android视频播放器
查看>>
[算法]死磕二叉树专题算法
查看>>
MySQL知识点小结
查看>>
(leetcode题解)Third Maximum Number
查看>>
DOM
查看>>
Apache Qpid Broker云
查看>>
Algorithm --> 爬楼梯求最大分数
查看>>
My SQL
查看>>
apl脚本入门-脚本中定义方法(函数), 类
查看>>