"Cannot Resolve Symbol" when trying to compile
"Joe Vitale" <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
I am trying to compile the following file (hello.java) with JDK 1.3.1
import com.dalsemi.tininet.http.HTTPServer;
import com.dalsemi.tininet.http.HTTPServerException;
class HelloWeb {
public static void main(String[] args) {
// Constuct an instance of HTTPServer that listens for
// requests port 80
HTTPServer httpd = new HTTPServer(80);
httpd.setHTTPRoot("/html");
httpd.setIndexPage("index.html");
// Specify a name for the log file and turn on logging
httpd.setLogFilename("/log/web.log");
httpd.setLogging(true);
// Spin around forever servicing inbound requests
for (;;) {
try {
// Wait for a new request
httpd.serviceRequests();
} catch (HTTPServerException e) {
System.out.println(e.getMessage());
}
}
}
}
But I get the following error:
Hello.java:1: cannot resolve symbol
Symbol : class HTTPServer
Location: package http
Import com.dalsemi.tininet.http.HTTPServer;
Hello.java:2: cannot resolve symbol
Symbol : class HTTPServerException
Location: package http
Import com.dalsemi.tininet.http.HTTPServerException;
Hello.java:7: cannot resolve symbol
Symbol : class HTTPServer
Location: package HelloWeb
HTTPServer httpd = new HTTPServer(80);
more unresolved symbols
Im new to java and probably am doing something wrong. Please let me know if you have any suggestions.
Thanks, Joe
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini