Open terminal on linux
> vi file.sh
export JAVA_HOME=$JAVA_HOME:/opt/jdk1.6.0_24
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
echo $CLASSPATH
java -Xmx128m -jar DandaaMessenger.jar
click ESC close editor
click ZZ for save
>file.sh for run jar
No comments:
Post a Comment