thedosmann
07-06-2005, 08:35 PM
I have jdk installed..
Path Env var in windows set..
I have a .java file I'm trying to compile
path d:\inetpub\wwwroot\bdd\search\EnginePrefs.java
It calls a .class that is same dir -Monitor.class
I call javac with the following:
javac -classpath d:\inetpub\wwwroot\bdd\search d:\inetpub\wwwroot\bdd\search\EnginePrefs.java
and get the following:
[CODE]
d:\inetpub\wwwroot\bdd\search\EnginePrefs.java:42: cannot find symbol
symbol : class Monitor
location: class bdd.search.EnginePrefs
Monitor monitor = null; // query and url monitor
^
d:\inetpub\wwwroot\bdd\search\EnginePrefs.java:257: cannot find symbol
symbol : class Monitor
location: class bdd.search.EnginePrefs
public Monitor getMonitor() {
^
Note: d:\inetpub\wwwroot\bdd\search\EnginePrefs.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: d:\inetpub\wwwroot\bdd\search\EnginePrefs.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
[\CODE]
Why can't it find Monitor class?
I'm sure this is a simple fix but I can't I've tried several combo's with no success.
I'll deal with the other issues later..just trying to figure out the path deal first.
Thanks
Path Env var in windows set..
I have a .java file I'm trying to compile
path d:\inetpub\wwwroot\bdd\search\EnginePrefs.java
It calls a .class that is same dir -Monitor.class
I call javac with the following:
javac -classpath d:\inetpub\wwwroot\bdd\search d:\inetpub\wwwroot\bdd\search\EnginePrefs.java
and get the following:
[CODE]
d:\inetpub\wwwroot\bdd\search\EnginePrefs.java:42: cannot find symbol
symbol : class Monitor
location: class bdd.search.EnginePrefs
Monitor monitor = null; // query and url monitor
^
d:\inetpub\wwwroot\bdd\search\EnginePrefs.java:257: cannot find symbol
symbol : class Monitor
location: class bdd.search.EnginePrefs
public Monitor getMonitor() {
^
Note: d:\inetpub\wwwroot\bdd\search\EnginePrefs.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: d:\inetpub\wwwroot\bdd\search\EnginePrefs.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
[\CODE]
Why can't it find Monitor class?
I'm sure this is a simple fix but I can't I've tried several combo's with no success.
I'll deal with the other issues later..just trying to figure out the path deal first.
Thanks