i have my
java files in the below directory and i wanted my class files to be generated in the same directory
C:\jakarta-tomcat-4.1.31\webapps\examples\WEB-INF\classes\coreservlets
i need to compile 3 files in the above path which are namely
Primes.java
PrimeList.java
PrimeNumbers.java
The relation between them is like this
PrimeNumbers.java (needs) PrimeList.java (needs) Primes.java
The following is the way i am doing it.
C:\jakarta-tomcat-4.1.31\webapps\examples\WEB-INF\classes\coreservlet>set CLASS
PATH=%CLASSPATH%;C:\jakarta-tomcat-4.1.31\webapps\examples\
C:\jakarta-tomcat-4.1.31\webapps\examples\WEB-INF\classes\coreservlets>javac Pri
mes.java
C:\jakarta-tomcat-4.1.31\webapps\examples\WEB-INF\classes\coreservlets>javac Pri
meList.java
PrimeList.java:45: cannot resolve symbol
symbol : variable Primes
location: class coreservlets.PrimeList
BigInteger start = Primes.random(numDigits);
^
PrimeList.java:47: cannot resolve symbol
symbol : variable Primes
location: class coreservlets.PrimeList
start = Primes.nextPrime(start);
^
2 errors
I hope setting classpath is done right way and this PrimeList.java which needs Primes.java should be able to identify Primes.class. But i wonder what could be the problem.
[ August 24, 2005: Message edited by: narayana babu reddyvari ]