#3 Can't compile on Ubuntu -- The import sun.net cannot be reso

open
nobody
5
2010-10-27
2010-10-27
Anonymous
No

Ran ant -- it generated a lot of warnings and then:
[javac] 188. WARNING in /0/rss2ia/meta_extract/metadata-extractor/src/java/nz/govt/natlib/meta/ui/wizard/Wizard.java (at line 47)
[javac] public class Wizard extends JDialog {
[javac] ^^^^^^
[javac] The serializable class Wizard does not declare a static final serialVersionUID field of type long
[javac] ----------
[javac] ----------
[javac] 189. ERROR in /0/rss2ia/meta_extract/metadata-extractor/src/java/nz/govt/natlib/xsl/XSLTFunctions.ja
[javac] va (at line 29)
[javac] import sun.net.www.MimeEntry;
[javac] ^^^^^^^
[javac] The import sun.net cannot be resolved
[javac] ----------
[javac] 190. ERROR in /0/rss2ia/meta_extract/metadata-extractor/src/java/nz/govt/natlib/xsl/XSLTFunctions.ja
[javac] va (at line 30)
[javac] import sun.net.www.MimeTable;
[javac] ^^^^^^^
[javac] The import sun.net cannot be resolved
[javac] ----------
[javac] 191. WARNING in /0/rss2ia/meta_extract/metadata-extractor/src/java/nz/govt/natlib/xsl/XSLTFunctions.
[javac] java (at line 54)
[javac] String line = din.readLine();
[javac] ^^^^^^^^^^^^^^
[javac] The method readLine() from the type DataInputStream is deprecated
[javac] ----------
[javac] 192. ERROR in /0/rss2ia/meta_extract/metadata-extractor/src/java/nz/govt/natlib/xsl/XSLTFunctions.java (at line 143)
[javac] MimeEntry entry = MimeTable.getDefaultTable().findByFileName(
[javac] ^^^^^^^^^
[javac] MimeEntry cannot be resolved to a type
[javac] ----------
[javac] 193. ERROR in /0/rss2ia/meta_extract/metadata-extractor/src/java/nz/govt/natlib/xsl/XSLTFunctions.java (at line 143)
[javac] MimeEntry entry = MimeTable.getDefaultTable().findByFileName(
[javac] ^^^^^^^^^
[javac] MimeTable cannot be resolved
[javac] ----------
[javac] 193 problems (4 errors, 189 warnings)

BUILD FAILED
/0/rss2ia/meta_extract/metadata-extractor/build.xml:42: Compile failed; see the compiler error output for details.

Total time: 4 seconds

Discussion