Hi, can someone tell me, if I want to use classes from one package, can I just put the package in a specific directory and not have to worry about classpath?
Hi, When you want to use a class from a package you'll always have to tell the JMV where it can find the package. Example where MyClass is in the com package : /Dir1/com/MyClass.class To run MyClass you'll always have to do something like : java -cp /Dir1 com.MyClass