首页 > 编程知识 正文

classpath环境变量配置,classpath类路径

时间:2023-05-04 16:13:34 阅读:109231 作者:2018

I ' vebeensearchingfortheanswerdaylong,andfinallyhadtheproblemssolved.iamgoingtowritedownwhati ' vedonetocompletethem.hem

As far as I know,thereislittleneedtomodifypathonmac,sohereionlytellhowtosetclasspathonmac。

1. Temporary setting,whichmeansonceyouclosetheterminal,thesettingwon ' tbe kept.youhavetosetagainwhenyouopenanothertertermint

Here is the steps:

开放终端;

类型: (hereisupposeyouputdistributionunderyourusernamefolder ) )。

$ export class path=$ { class path } :~/jadex-0.96/lib/jadex _ rt.jar :~/jadex-0.96/lib/JiBX-run jax

Press return

Then you could check by typing:

$ echo $ classpathtoseeifyousucceedindoingthat.after that,you could run command:

$ javajadex.adapter.standalone.platform

2 .持续设置。

开放终端

$ ls -a

andseeifthereisa.bash _ profileinyourhomefolder.ifthereisn ' t :

$touch .bash_profile

thiswillcreateablankfileifthereisnone.then,

$open -e .bash_profile

thiswillopenitintextedit.addthefollowingline :

export class path=./users/lingao/jadex-0.96/lib/jadex _ rt.jar :/users/lingao/jadex-0.96/lib jadex _ standalone.jar :/users/lingao/jadex-0.96/lib/lib graph layout.jar 3360/users/lingao/jadex-0 .

save the文件

close the Terminal and open a new one

Type:$ echo $CLASSPATH

youwillfindtherearevaluesforclasspath。

Done!

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。