Starting with gcj - having problems
Heiko Nardmann
h.nardmann@secunet.de
Tue Mar 14 09:00:00 GMT 2000
I now have installed libgcj 2.95.1 in the gcc 2.95.2 tree (same prefix).
Now I am trying to compile the following small program using 'gcj -I./oracle
-C HTMLappData.java':
import oracle.html.*;
import java.lang.*;
import oracle.html.*;
import oracle.rdbms.*;
import oracle.plsql.*;
import oracle.owas.wrb.services.http.*;
import java.util.*;
import java.io.*;
public class HTMLappData
{
private HtmlHead hd = new HtmlHead("This is a test");
private HtmlBody bd = new HtmlBody();
private HtmlPage pg = new HtmlPage(hd, bd);
public HTMLappData()
{
}
}
This results in the following error message:
gcj -I./oracle -C HTMLappData.java
HTMLappData.java:33319: Type `HtmlHead' also potentially defined in package
`oracle.html'.
<<file too short - unexpected EOF>>
HTMLappData.java:12: Type `HtmlHead' not found in declaration of field `hd'.
private HtmlHead hd = new HtmlHead("This is a test");
^
HTMLappData.java:33319: Type `HtmlBody' also potentially defined in package
`oracle.html'.
<<file too short - unexpected EOF>>
HTMLappData.java:13: Type `HtmlBody' not found in declaration of field `bd'.
private HtmlBody bd = new HtmlBody();
^
HTMLappData.java:33319: Type `HtmlPage' also potentially defined in package
`oracle.html'.
<<file too short - unexpected EOF>>
HTMLappData.java:14: Type `HtmlPage' not found in declaration of field `pg'.
private HtmlPage pg = new HtmlPage(hd, bd);
^
6 errors
make: *** [all] Error 1
Attached is the libgcj.spec I have installed.
'gcj -v' tells me:
Reading specs from
/usr/opt/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
Reading specs from /usr/opt/gcc-2.95.2/lib/libgcj.spec
rename spec lib to liborig
gcc version 2.95.2 19991024 (release)
--
Heiko Nardmann (Dipl.-Ing.), h.nardmann@secunet.de, Software Development
secunet Security Networks AG - Sicherheit in Netzwerken (www.secunet.de),
Weidenauer Str. 223-225, D-57076 Siegen
Tel. : +49 271 48950-13, Fax : +49 271 48950-50
More information about the Java
mailing list