Re: Java Newbie... Read file at HTTP
- From: Lloyd Duke <news@xxxxxxxxxxx>
- Date: Sat, 30 Apr 2005 12:01:21 GMT
Could you post the source that caused this error?
It seems that at *minimum* you don't have java.net or java.io imported into your source. You should familurise yourself with these packages if you wish to do any type of network programing. Also the NIO package is WELL worth the time to look at.
sven.dz@xxxxxxxxx wrote:
Hi Lloyd,
so... I've made some mistakes... I guess! The compiler says:
Building target "MakeTraffic" with build style "Development" (optimization:level 'N/A', debug-symbols:off) - (5 errors) frameworkjars="" for i in `echo ` ; do if [ -f "$i" ] ; then frameworkjars="$frameworkjars":"$i" ; fi ; done classpath="/Users/sdz/Desktop/Tempora¨res Verzeichnis/XCode/maketraffic/MakeTraffic/build/MakeTraffic.build/MakeTraffic.build/JavaClasses$frameworkjars:"`/usr/bin/javaconfig DefaultClasspath` /usr/bin/javac -J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8 -g -encoding MACINTOSH -sourcepath "/Users/sdz/Desktop/Tempora¨res Verzeichnis/XCode/maketraffic/MakeTraffic/." -classpath "$classpath" -d "/Users/sdz/Desktop/Tempora¨res Verzeichnis/XCode/maketraffic/MakeTraffic/build/MakeTraffic.build/MakeTraffic.build/JavaClasses" '@/Users/sdz/Desktop/Tempora¨res Verzeichnis/XCode/maketraffic/MakeTraffic/build/MakeTraffic.build/MakeTraffic.build/JavaFileList'
MakeTraffic.java:3: cannot resolve symbol
symbol : class URL
location: class MakeTraffic
URL image = new URL("www.darknob.de","IMGA0356.JPG");
^
MakeTraffic.java:3: cannot resolve symbol
symbol : class URL
location: class MakeTraffic
URL image = new URL("www.darknob.de","IMGA0356.JPG");
^
MakeTraffic.java:4: cannot resolve symbol
symbol : class URLConnection
location: class MakeTraffic
URLConnection con = image;
^
MakeTraffic.java:5: cannot resolve symbol
symbol : method openConnection ()
location: class MakeTraffic
openConnection();
^
MakeTraffic.java:8: cannot resolve symbol
symbol : class InputStream
location: class MakeTraffic
InputStream stream = con.getInputStream();
^
5 errors
MakeTraffic.java:3: cannot resolve symbol
symbol : class URL
MakeTraffic.java:3: cannot resolve symbol
symbol : class URL
MakeTraffic.java:4: cannot resolve symbol
symbol : class URLConnection
MakeTraffic.java:5: cannot resolve symbol
symbol : method openConnection ()
MakeTraffic.java:8: cannot resolve symbol
symbol : class InputStream
:-( I'm a java newbie!
-- http://lloyd-duke.net + news AT website.domain .
- Follow-Ups:
- Re: Java Newbie... Read file at HTTP
- From: sven . dz
- Re: Java Newbie... Read file at HTTP
- References:
- Java Newbie... Read file at HTTP
- From: sven . dz
- Re: Java Newbie... Read file at HTTP
- From: Lloyd Duke
- Re: Java Newbie... Read file at HTTP
- From: Lloyd Duke
- Re: Java Newbie... Read file at HTTP
- From: sven . dz
- Java Newbie... Read file at HTTP
- Prev by Date: Re: How to determine line break in textarea?
- Next by Date: Re: File remains in use after calling close
- Previous by thread: Re: Java Newbie... Read file at HTTP
- Next by thread: Re: Java Newbie... Read file at HTTP
- Index(es):