<Swing Dev> Compilation problems

Florian Brunner fbrunnerlist at gmx.ch
Wed Oct 8 23:02:58 UTC 2008


Hi,

I've had various troubles to configure my openSuSE 10.3 to compile openJDK and 
am still not sure if I set everything correctly. The build ended in an 
OutOfMemoryError. :-(

Fortunatly I was able to hack the make/netbeans/swing to compile also the 
sun/awt packages (with the new Java SE 7 version it worked). I then was able 
to pack the sun/awt package into a jar. Then I hacked the  
make/netbeans/common/shared.xml to reference that jar when compiling.

It works, but as I think you agree, it is less than optimal. It seems it takes 
quite some time untill the changes in jdk7/swing/jdk repository can be 
integrated to the main repository. Since Swing is a 100% Java project with no 
native part, I think it should be possible for Swing developers to use the 
simplified build at make/netbeans/swing to just build the Swing Java classes. 
Thus I suggest to build bootstrap jdks from the jdk7/swing/jdk repository and 
make these binaries available to the Swing developers. What do you think?

-Florian

Am Montag, 8. September 2008 schrieb Pavel Porvatov:
> Hi Florian,
>
> I don't know info about the make/netbeans/swing project. But as I
> understand you have an old build of jdk and it's the main problem.
> Sometimes (when there are a lot of changes in repository) you have to
> rebuild WHOLE jdk (or get a fresh build).
>
> Here are some ideas:
> 1. Build schedule is here:
> http://openjdk.java.net/projects/jdk7/builds/
> So, a fresh build will be available at 2008/09/11.
>
> 2. You can try to modify your netbeans project for rebuild whole jdk
>
> 3. You can try to rebuild jdk without netbeans project. Info about this
> process is available in the make/README-builds.html file.
>
> Regards, Pavel.
>
> > Hi Pavel,
> >
> > yes, that class is there. Note however that I would like to build the
> > Swing project only. Some months ago this was possible using a binary
> > version of jdk7 and the make/netbeans/swing project. Then I usually could
> > just use the IDEs context menu and call "Clean and Build". This seems not
> > to be possible anymore. I tried to manipulate the build.properties file
> > by once adding "sun/awt/" and once replacing "sun/swing/" with "sun/" in
> > the value of "includes". Both times I got various other errors, though.
> >
> > Could somebody fix this or tell me how I can easily build the Swing (or
> > the whole JDK) project?
> >
> > Against which build of the jdk should the Swing project compile? The
> > latest jdk version is b34 but at
> > http://hg.openjdk.java.net/jdk7/swing/jdk the last tag is "jdk7-b32".
> >
> > Thanks for your help.
> >
> > -Florian
> >
> > Am Freitag, 5. September 2008 schrieb Pavel Porvatov:
> >> Hi Florian,
> >>
> >> I've cloned the repository http://hg.openjdk.java.net/jdk7/swing/jdk
> >> today and built jdk without problems. Do you have
> >> \src\share\classes\sun\awt\EventQueueDelegate.java in your repository?
> >>
> >> Regards, Pavel.
> >>
> >>> Can anybody help me? Thanks
> >>>
> >>> -Florian
> >>>
> >>> Am Sonntag, 31. August 2008 schrieb Florian Brunner:
> >>>> Hi,
> >>>>
> >>>> I cloned the repository http://hg.openjdk.java.net/jdk7/swing/jdk but
> >>>> I get "cannot find symbol" errors. (eg. sun.awt.EventQueueDelegate in
> >>>> com.sun.java.swing.SwingUtilities3) when compiling the Swing project
> >>>> (I use NetBeans 6.1).
> >>>>
> >>>> I tried with the binary build of the jdk7 version b32, b33 and b34.
> >>>>
> >>>> How can I build the Swing sources?
> >>>>
> >>>> -Florian





More information about the swing-dev mailing list