Skip to main content

sun.awt.UNIXToolkit missing since jdk 7

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2013-01-23

Good morning,

I wanted to compile jdk 8 (curious user) with debugging information to help me get through my own code where I experience some problems with JUL. Well, rt.jar is missing sun.awt.UNIXToolkit and some other classes I guess.

I'm clueless...

How can the sources contain imports for sun.awt.UNIXToolkit without having an rt.jar to go to?

Would be very glad if someone could shed some light on this.


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2006-07-24


What repository do you clone your repo from, and how do you build it? How do you run your app? What rt.jar do you test to see if the class is there?

AFAIK, rt.jar is only generated if you build images after performing the actual JDK build. Do you build images?

E.g. using the "old" build system I'd try:

$ cd jdk/make
$ make
$ make images

and then would use the images from the build/
/j2re-image (or j2sdk-image).

best regards,