Meaningless Drivel is fun!*
The moose likes Other Open Source Projects and the fly likes Problem with sourceforge project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Problem with sourceforge project" Watch "Problem with sourceforge project" New topic
Author

Problem with sourceforge project

Dan Dales
Greenhorn

Joined: Jul 20, 2011
Posts: 8
hai,

i'm doing my proj in tahiti server for remote data retrieval & i encountered errors when i run the sample program that is given in the sorceforge website.

First, i got the sample code below:
package myfirst;
import com.ibm.aglet.*;
public class MyAglet extends Aglet {
public void run() {
System.out.println("Hello, world!");
setText("you can see this in the Tahiti window");
}
}

secondly i created a batch file called makeit with the content:
set JDK_HOME=C:\jdk1.3.1_06
set AGLET_HOME=C:\aglets-2.0.1
set CLASSPATH=%CLASSPATH%;%AGLET_HOME%\lib\aglets-2.0.1.jar
set CLASSPATH=%CLASSPATH%;%AGLET_HOME%\public
%JDK_HOME%\bin\javac -d %AGLET_HOME%\public -classpath %CLASSPATH% MyAglet.java

thirdly i tried to compile the aglet by running the batch file but it is throwing the following errors
C:\myfirst>makeit

C:\myfirst>set JDK_HOME=C:\jdk1.3.1_06

C:\myfirst>set AGLET_HOME=C:\aglets-2.0.1

C:\myfirst>set CLASSPATH=;C:\aglets-2.0.1\lib\aglets-2.0.1

C:\myfirst>set CLASSPATH=;C:\aglets-2.0.1\lib\aglets-2.0.1
ublic

C:\myfirst>C:\jdk1.3.1_06\bin\javac -d C:\aglets-2.0.1\pub
ets-2.0.1\lib\aglets-2.0.1.jar;C:\aglets-2.0.1\public MyAg
MyAglet.java:3: cannot resolve symbol
symbol : class Aglet
location: class myfirst.MyAglet
public class MyAglet extends Aglet {
^
MyAglet.java:6: cannot resolve symbol
symbol : method setText (java.lang.String)
location: class myfirst.MyAglet
setText("you can see this in the Tahiti window");
^
2 errors

C:\myfirst>


I am new to this technology. Please can someone help me out?

Hoping to hear from you soon
thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with sourceforge project
 
Similar Threads
JMF ?classpath? problem
struts
failed to compile servlet file
problem with struts
Error compiling the AdviceClient.java