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!

mac classpath设置的更多相关文章

  1. 写了一个Mac快速设置、打开和关闭Web代理的Shell命令

    缘由(痛点) 每次在Mac上设置Web代理,都需要点开"系统偏好设置 -- 网络 -- 高级 -- 代理",然后分别设置Web代理(HTTP)和安全Web代理(HTTPS),设置完 ...

  2. mac电脑设置USB键盘按键方法,设置多显示屏镜像显示器的方法

    mac电脑设置USB键盘按键方法,设置多显示屏镜像显示器的方法 设置多显示屏镜像显示器的方法 ==================== mac电脑复制粘贴使用command+c command+v - ...

  3. 在mac下设置环境变量

    在mac下设置环境变量   在基于unix/linux的操作系统下进行程序开发,使用环境变量将会方便.通过设置环境变量将可以在任意目录通过输入程序名来执行设定目录下的程序.不需要通过cd将工作目录改变 ...

  4. Mac怎么设置wifi热点

    苹果 Mac 系统中要把无线当作 Wifi 热点来用的话,需要电脑有其它网络接入才可以,也就是说它需要一个可以用于上网的网络,比如有线网络.尤其是对于使用 MacBook Pro 或 MacBook ...

  5. mac os设置root密码

    不知怎么忘记mac os系统的root密码了 方法一: 首先,启动机器,启动时按住Apple和S键,以单用户模式(single user mode)进入系统.输入:mount -uw / 然后回车.输 ...

  6. mac个人设置

    修改spotlight快捷键 mac默认的command+space和我windows下的习惯冲突,修改为ctrl+space 删除输入法切换的快捷键 因为我不需要切换不同语言的快捷键.中英文切换直接 ...

  7. Mac下设置Android源代码编译环境

    在Mac下编译Android最麻烦的就是设置Android的编译环境了,做完这一步基本上剩下的就是近乎傻瓜式的操作了.说起来也简单就三步,设置大小写敏感的文件系统.安装编译工具.设置文件系统同时能打开 ...

  8. Mac 可设置环境变量的位置、查看和添加PATH环境变量

    Mac 启动加载文件位置(可设置环境变量) ------------------------------------------------------- (1)首先要知道你使用的Mac OS X是什 ...

  9. MAC OS设置JDK小结

    开始折腾mac pro,在网上找了些资料,自己也尝试了一下,特在这里做个小结. mac中JDK的位置 OSX默认的JDK /System/Library/Frameworks/JavaVM.frame ...

随机推荐

  1. Android开发调试无法连接到夜神模拟器的解决方法

    Android开发调试无法连接到夜神模拟器的解决方法: 一般原因是adb的版本不一致造成的!!!!!换成一样的就可以了. 在网上看到的方法,特记录下来: 1.任务管理器里看下,adb.exe以及nox ...

  2. PHP 接入支付宝即时到账功能

    首先请到支付宝那边申请一个及时到账的接口账户,需要提交相关材料申请.然后根据即时到账的API文档进行接入.API文档提供了各种语言版本的demo,我这里是下的php版demo,然后再进行相关修改操作. ...

  3. Linux cp复制

    复制指定目录下的全部文件到另一个目录中文件及目录的复制是经常要用到的.linux下进行复制的命令为cp.假设复制源目录 为 dir1 ,目标目录为dir2.怎样才能将dir1下所有文件复制到dir2下 ...

  4. Terracotta

    Terracotta 3.2.1简介 (一) 博客分类: 企业应用面临的问题 Java&Socket 开源组件的应用 hibernatejava集群服务器EhcacheQuartzTerrac ...

  5. 【Luogu】P3116会议时间(拓扑排序,DP)

    题目链接 本题使用拓扑排序来规划DP顺序.设s[i][j]表示i步是否能走到j这个点,e[i][j]表示i步是否能走到j这个点——用第二条路径.因为要满足无后效性和正确性,只有第i个点已经全部更新完毕 ...

  6. uva 10561 sg定理

    Problem C Treblecross Input: Standard Input Output: Standard Output Time Limit: 4 Seconds Treblecros ...

  7. 洛谷 [P2216] 理想的正方形

    二维单调队列 先横向跑一边单调队列,记录下每一行长度为n的区间的最值 在纵向跑一边单调队列,得出结果 注意,mi要初始化为一个足够大的数 #include <iostream> #incl ...

  8. msp430入门学习40

    msp430的其他八 msp430入门学习

  9. Activity 切换动画

    1,在AndroidManifest.xml中的Activity的声明上加入android:theme="@style/Anim_fade" <activity androi ...

  10. HDu1241 DFS搜索

    #include<iostream> #include<cstring> using namespace std; int a[105][105]; int d[8][2]={ ...