File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
need some help
Joined: Apr 23, 2005
May 11, 2005 14:43:00
I am trying to execute the Prim Numbers example given in
i am getting errors when compiling PrimeList.java file. the errors I got are
PrimeList.java:45: Undefined variable or class name: Primes
start = Primes.random(numDigits);
PrimeList.java:47: Undefined variable or class name: Primes
start = Primes.nextPrime(start);
kindly someone get back to me and tell me where i went wrong.
Joined: Feb 21, 2002
May 11, 2005 15:16:00
My guess is that Prime is another class that they wrote which is not available in your classpath. You should compile them all at once rather than one at a time.
Just make sure all the
files for every class you need to compile that is referenced is in the default directory.
Hope this helps...
Byron Estes<br />Sun Certified Enterprise Architect<br />Senior Consulant<br />Blackwell Consulting Services<br />Chicago, IL<br /><a href="http://www.bcsinc.com" target="_blank" rel="nofollow">www.bcsinc.com</a>
Joined: Dec 11, 2004
May 11, 2005 15:52:00
Each chapter in that book builds on previous chapters.
Look back in the book for the first chapter that builds an app that displays prime numbers.
Build that class and make sure it's on your classpath.
BTW: One of the things that I love about that book is that he teaches the aspects of Servlet/JSP programming in just the right order. It's worth the time to go through the whole thing
How to ask a question...
Simple Servlet Examples
I agree. Here's the link:
subject: need some help
Help on servlet and JSp
Where can i get the best tutorial?
Deploying JSP and Servlets
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014