Fwd: clean build doesn't generate package private class

Doug Felt dougfelt at google.com
Thu Mar 5 17:16:09 UTC 2009


resend, bounced the first time

---------- Forwarded message ----------
From: Doug Felt <dougfelt at google.com>
Date: Tue, Mar 3, 2009 at 1:52 PM
Subject: clean build doesn't generate package private class
To: build-dev at openjdk.java.net


I recently fetched jdk7 (after not having done so for a few months) and did
a clean rebuild, and the VM is failing to start.  I'm building on Ubuntu
(2.6.27-11-generic) on i586.  Sanity passes.

make all CC=gcc-4.1 CPP=g++-4.1

On startup I get the following stack trace:

Error occurred during initialization of VM
java.lang.NoClassDefFoundError: java/net/Parts
    at java.net.URL.<init>(URL.java:396)
    at java.net.URL.<init>(URL.java:300)
    at java.net.URL.<init>(URL.java:323)
    at sun.net.www.ParseUtil.fileToEncodedURL(ParseUtil.java:272)
    at sun.misc.Launcher.getFileURL(Launcher.java:442)
    at sun.misc.Launcher$ExtClassLoader.getExtURLs(Launcher.java:190)
    at sun.misc.Launcher$ExtClassLoader.<init>(Launcher.java:161)
    at sun.misc.Launcher$ExtClassLoader$1.run(Launcher.java:145)
    at sun.misc.Launcher$ExtClassLoader$1.run(Launcher.java:139)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.misc.Launcher$ExtClassLoader.getExtClassLoader(Launcher.java:138)
    at sun.misc.Launcher.<init>(Launcher.java:71)
    at sun.misc.Launcher.<clinit>(Launcher.java:59)
    at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1325)
    at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1307)

Looking in the classes directory, I see that although URL.class is present,
Parts.class is not.  Parts.class is a package private class defined at the
top level in the same source file as URL.java.

Does anyone recognize this problem?  How do I work around this?  Do I need a
new bootstrap build, or different compiler options?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/build-dev/attachments/20090305/4d879120/attachment.html>


More information about the build-dev mailing list