I wrote a custom class.
I put the class in a package.
I put the path to the package in my CLASSPATH
The code was able to locate the package on compile. (Or at least it does not error).
However, if did error (on compile) if I used the actual classname, and not just the package name, in the import statement.
worked (well at least it compiled without error, but the class could not be found at runtime)
did not work
There is one class (className) and one method below the class.
Command is constructed
returnValue = className.methodName(arg1, arg2);
I believe my package is created correctly (but since this is the first time I have created a package, maybe I did this incorrectly).
javac -d . classfile.java
and it created the directory for my package (based on the package name I used in the .java file), and put the compiled className.class file within it.
Does the servlet also need to know the classpath, even if it was known at compile time, when the class was compiled?
Is there a way to avoid this need?
How do I get the process, that is running the servlet, to know the classpath.
Even if I start tomcat, as the user that I compile with, it does not execute the .profile, where I have the classpath set.
Is this a configuration somewhere, I can set?