On 01/12/2010 01:28 AM, Costantino Cerbo wrote:
That would be awesome. We certainly don't want to introduce a hard
dependency on the presence of the GTK libraries to run Java programs.
Ok, than I will create a separate GtkFileDialogPeer.
Is there already a way in the JDK to detect the presence of the GTK
libraries, so that in this case
sun.awt.X11.XToolkit#createFileDialog(FileDialog) can return
GtkFileDialogPeer instead of XFileDialogPeer?
grep reveals the following:
sun.awt.UNIXToolkit.loadGTK();
That better be addresses with a separate fix. Currently we don't have an
implementation for that functionality on the MS Windows platform, so the
fix would have to introduce both Windows and X11 versions.
Okay, we can temporarily leave out this functionality. Anyway do you
agree that it's a good idea?
I can do the fix for the X11 platform.
This is a good idea, but still we need this implemented on both
platforms at once.
You can do incremental builds (i.e. running the make at make/sun/xawt or
make/sun|java/awt) only after you have compiled the whole OpenJDK.
I have compiled the whole OpenJDK without problem and then I've set
this variable:
export
ALT_JDK_IMPORT_PATH=/home/c.cerbo/openjdk/jdk7/mytl/build/linux-i586/j2sdk-image
but I get still the errors that I've attached in my previous mail.
You don't need to set the variable or otherwise alter your environment
after building the whole jdk. Just cd to a sub-directory (e.g. sun/xawt)
and run make the same way you ran it to get the full build.
--
best regards,
Anthony