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.
I'm trying to write a simple jsp/servlet app. I have set up dir structure like this: -Root -WEB-INF -classes -org -noobie -lamer I have 2 classes called Example1.java and Example2.java both in package org.noobie.lamer. I cannot compile Example2.java because it cannot find Example1.class. I keep getting unresolved symbol errors. Here is part of my Example2.java.
This is one error:
Both Example1 and Example2 are in package org.noobie.lamer. I am compiling from within the classes/org/noobie/lamer/ directory and Example1.class exists there. Here is my javac command:
Do check out ant for simplifying your life immeasurably. Also, you will find more JSP help in the JSP Forum. And once you have your web server set up for your app context, the folder /WEB-INF/classes will automatically be in the server's classpath. No other special config is needed. hth, bear