Linux 64λ?????????????java
???????????? ???????[ 2014/3/24 9:46:28 ] ????????Linux ?????? ???
??????. ????????????????????1. ???/etc/profile???
????????????????????????????????????????????????????????shell??????????Щ???????????????????????????????
????·???????????/etc/profile
????·??profile????β????
export JAVA_HOME=/usr/share/jdk1.6.0_14
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
????1. ???????????????Ч
# vi /etc/profile
//??????[Shift + g]?? ??profile?????????????????:
export JAVA_HOME = /home/myuser/jdk1.7.0_03
export PATH = $JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
????[?]?????????????????????Ч????????? #source /etc/profile
????2. ?????????????Ч
//?????????μ?.bash_profile???
$ vi /home/myuser/.bash_profile
//???????????????????
export JAVA_HOME = /home/myuser/jdk1.7.0_03
export PATH = $JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
????[?]?????????????????????Ч????????? #source /home/myuser/.bash_profile
????3. ?????bash /shell ??Ч
????$ export JAVA_HOME = /home/myuser/jdk1.7.0_03
????$ export PATH = $JAVA_HOME/bin:$PATH
????$ export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
?????塢???????????
????д??????HelloWorld?????????
????[root@esprit java]# vi HelloWorld.java
?????????????
????public class HelloWorld {
????public static void main(String args[]) {
????System.out.println( " Hello World in Linux!! " );
????}
????}
????:wq ???????
????[root@esprit java]# javac HelloWorld.java
??????д???????
????[root@esprit java]# java HelloWorld
????shell?????:Hello World in Linux!!
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11