This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, I am new to linux. I have managed to install the binaries of java 1.5. I have set the classpath and JAVA_HOME(for tomcat). All these things work fine. I have managed to compile simple java files. However when I try to import another package (that I know exists with compiled classes in it) I get
package <package> does not exist import <pakcage> ^
I have tried this code on another linux machine and it worked fine. So what is wrong with the environment of the machine I am working on. HOw do I get the compiler to import the requirede packages.
Please help NS [ March 04, 2005: Message edited by: Ernest Friedman-Hill ]
am I missing something? Note that I can compile a .java file where there are no imports involved. I can also compile files in the same package. I dont understand why I cannot import files [ March 04, 2005: Message edited by: Ernest Friedman-Hill ]
author and iconoclast
Go and carefully read this. Make sure you're following it properly, especially this part:
If you are trying to locate classes in a directory, then specify the path up to but not including the name of the package the classes are in. (If the classes are in a package called my.package and they are located in a directory called C:\myclasses\here\my\package, you would set the classpath to be CLASSPATH=C:\myclasses\here).