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.
Hello, I hope you can help me. I can't figure out how to compile this program successfully using javac.
I have two packages: p1 contains A.java, p2 contains B.java. They're in this folder: "packages".
This is how it's structured:
packages - p1 - A.java - p2 - B.java
B.java needs to access A.java so it has an import p1.* statement. I keep on getting this error when I try to compile B.java:
I know something's wrong with my invocation but can anyone please correct me? I tried a lot of stuffs already but nothing seems to be working. Thank you in advance! [ September 08, 2008: Message edited by: Denise Saulon ]
SCJP/OCPJP 6 | SCWCD/OCPJWCD 5 | OCMJEA in progress...