How compile and run a project or package in Unix environment?
I write an application of java package using Jdeveloper tool. The first statement in each program is "package packgename". How can I compile this project or package in Unix command line? If I compile each program in the package, then error msg will show when one program reference another program.
[312 byte] By [
zhangha] at [2007-9-26 4:00:50]

> The first statement in each program is "package packagename".
Then your java files must be in a directory called "packagename". Let's say this packagename directory is in your /source/java directory, then when you compiling, you need to do:
cd /source/java/packagename
javac -classpath /source/java OneOfYours.java
and it should then compile.
--lichu