How to compile java code in the package under Unix environment?

I have a package of java appication. I have copied all the programs in the package into Unix server. I am trying to compile the code in order for .JSP file use all the programs as javaBean. How do I compile?

First I used JDeveloper tool to compile the whole project, and has no problem. In each program I included package packagename. So each program can reference other program in the package without any problem.

If I compile each program using "javac filename.java", the error msg when one program reference a class defined in another program in the same package.

Please help

[612 byte] By [zhangha] at [2007-9-26 4:00:48]
# 1

Don't forget that you need to have your Java files in a directory that matches your pakage name and have an entry in your classpath so the compiler can find your files.

Example:

package myproject.myfiles;

if your files are in d:\adir\myproject\myfiles

you need d:\adir in the classpath

Good Luck.

WynEaston at 2007-6-29 12:56:02 > top of Java-index,Archived Forums,Java Programming...