Re: "Cannot Resolve Symbol" when trying to compile

"Kris Ardis" <Kristopher.Ardis-6tN4nzCoH/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <00c701c40d26$a1e19390$764000b4@kardis>
> Hello.java:1: cannot resolve symbol
> Symbol : class HTTPServer

You need to point to the TINI classes in order to build this file.  for 1.0x
firmwares (and 1.1x if you aren't using any modules like HTTP), this is:

   javac -bootclasspath %TINIDIR%/bin/tiniclasses.jar myclass.java

If this is for 1.1x firmwares and using some modules...

   javac -bootclasspath %TINIDIR%/bin/tiniclasses.jar -classpath
%TINIDIR%/bin/modules.jar myclass.java


Make sure when you build this app you use BuildDependency and the '-add
HTTPSERVER' tag.

Kris

----- Original Message -----
From: "Joe Vitale" <[email protected]>
To: <tini-6tN4nzCoH/[email protected]>
Sent: Wednesday, March 17, 2004 10:15 PM
Subject: [TINI]"Cannot Resolve Symbol" when trying to compile


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...





I'm 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



_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.