Starting with gcj - having problems
Heiko Nardmann
h.nardmann@secunet.de
Sat Apr 1 00:00:00 GMT 2000
I would like to get away from JBuilder and Visual Cafe instead using
gcj.
Some time ago I installed the whole GCC 2.95.2 package.
My current project involves building a servlet using the Oracle
Application Server
and its JWEB cartridge.
So I copied all my source to my Linux machine, looked for the zip file
with the
Oracle classes and tried the following:
gcj -I../oracle.zip -C HTMLappData.java
What I want is get a class file from this java file.
So I suppose the '-C' flag is ok, isn't it?
Now I get the error message below.
Is this because gcj is somehow experimental or is there something wrong
with my setup?
The first time I started gcj it complained about a missing libgcj.spec.
So I looked with strace
which paths gcj checked and touched such a file. That's probably not
sufficient, is it?
Here is the error message:
HTMLappData_try.java:33316: Type `HtmlHead' also potentially defined in
package `oracle.html'.
<<file too short - unexpected EOF>>
^
HTMLappData_try.java:12: Type `HtmlHead' not found in declaration of
field `hd'.
private HtmlHead hd = new HtmlHead("This is a test");
^
HTMLappData_try.java:33316: Type `HtmlBody' also potentially defined in
package `oracle.html'.
<<file too short - unexpected EOF>>
^
HTMLappData_try.java:13: Type `HtmlBody' not found in declaration of
field `bd'.
private HtmlBody bd = new HtmlBody();
^
HTMLappData_try.java:33316: Type `HtmlPage' also potentially defined in
package `oracle.html'.
<<file too short - unexpected EOF>>
^
HTMLappData_try.java:14: Type `HtmlPage' not found in declaration of
field `pg'.
private HtmlPage pg = new HtmlPage(hd, bd);
^
6 errors
--
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