[kaffe] Sun's javac and compiling rt.jar without debugging symbols

Mark and Janice Juszczec juszczec at hotmail.com
Fri Aug 8 18:29:02 PDT 2003


Hi folks

I made kaffe-1.1.0 for i386.

Now I'm making kaffe-1.1.0 for mipsel (still playing with that Helio)

Per the FAQ.embedded, I do:

export -n JAVA
export -n JAVAC
export -n CLASSPATH
export JAVAC="/usr/java/jdk1.3.1_08/bin/javac -g:none"
make Klasses

I get a bunch of errors (41 to be exact) like:

./java/io/ObjectStreamClass.java:791: cannot resolve symbol
symbol  : method initCause  (java.io.IOException)
location: class java.io.StreamCorruptedException
                        sce.initCause(e);
                           ^
./java/io/ObjectStreamClass.java:825: cannot resolve symbol
symbol  : method initCause  (java.io.IOException)
location: class java.io.StreamCorruptedException
                        sce.initCause(e1);
                           ^
./java/io/ObjectStreamClass.java:830: cannot resolve symbol
symbol  : method initCause  (java.lang.ClassNotFoundException)
location: class java.io.StreamCorruptedException
                        sce.initCause(e2);


Figuring its looking for stuff in my i386 kaffe rt.jar, I do:

export JAVAC="/usr/java/jdk1.3.1_08/bin/javac -g:none -classpath 
/usr/local/kaffe/jre/lib/rt.jar"

and get errors like (83 of them):

java/lang/AssertionError.java:80: cannot resolve symbol
symbol  : method initCause  (java.lang.Throwable)
location: class java.lang.AssertionError
      initCause((Throwable) msg);
      ^
java/lang/reflect/Proxy.java:341: cannot resolve symbol
symbol  : method getCause  ()
location: class java.lang.reflect.InvocationTargetException
        throw (NullPointerException) e.getCause();


So out of desperation, I tried:

export JAVAC="/usr/java/jdk1.3.1_08/bin/javac -g:none -classpath 
/usr/local/kaffe/jre/lib/rt.jar:/usr/local/kaffe/lib/kjc.jar"
make Klasses

and got the same thing.

So, the question is, what do I have to do to strip all debugging information 
out of rt.jar?

Mark

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail





More information about the kaffe mailing list