I solved it!
The reason why I cannot run is, my java and javac version do not agree with each other.
To set up a Java_home permanently, I add the following to [.bash_profile]
If you cannot see the .bash_profile
ls -al - will show all the hidden files.
----------------
.bash_profile
----------------
export JAVA_HOME=/usr/local/jdk1.6.0_10
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib
Now my java, javac version agree with each other.
they are both:
jdk1.6.0_10
----------------
Another thing is, When running Java program with Package directory,
Is the same concept when Running Java program in DOS env.
----------------
$ javac poi/impl/HelloWorld.java
$ java poi.impl.HelloWorld
Hello World!
this
thread, helps me out, ;-)
Cheers!
jackie