Re: help setting classpath
insert "." at the end of your classpath, then whenever you call Javac from the any folder it will look for classes in that folder, if you want to use this folder from another path put ";C:\jarFolder;" at the end of the classpath.
ClassPath:
1- Go to System Properties from the Control Panel
2- Advanced Tab
3- Environment Variables
4- System Variables, Double click the ClassPath, and if you don't have it, add new one
Re: help setting classpath
Sorry, but I don't quite understand what you mean. Where am I putting the "."? In the command line or in the System Properties(System variables)? This is what I did based on how I understood your explanation. I opened that Advanced Tab and created a CLASSPATH in the System variables. I named it CLASSPATH and the value I put a "." at the end of the classpath like so:
"c:\jarFolder\."
Then in the dos cmd line, i put:
javac StockQuoteService.java
but it didn't work.
Re: help setting classpath
Re: help setting classpath
In the command line after "-cp" or in the Advanced Tab->System Variabled->CLASSPATH?
Re: help setting classpath
Re: help setting classpath
I tried putting it inthe Advanced Tab, CLASSPATH, and ran this command:
javac MyNameService.java
and I still get the "cannot find symbol" error.
Re: help setting classpath
Have you listed every JAR in the CLASSPATH variable? It doesn't do automatic resolution. (Java6 will.)
I stand by my point from the other thread, though: use an IDE or an Ant build file.
Re: help setting classpath
ok, i'll try that. Thanks for the responses.