After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 155115 - Building on another platforms (Win32, MacOS,etc.)
Building on another platforms (Win32, MacOS,etc.)
Status: RESOLVED NOTGNOME
Product: java-gnome
Classification: Bindings
Component: General
Not Applicable
Other Linux
: Normal enhancement
: ---
Assigned To: java-gnome bindings maintainers
java-gnome bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2004-10-11 18:14 UTC by Luca De Rugeriis
Modified: 2007-01-05 03:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Luca De Rugeriis 2004-10-11 18:14:44 UTC
Java is crossplatform language. Java-gnome should be
crossplatform too.
Comment 1 Luca De Rugeriis 2004-10-11 18:14:56 UTC
that's also my opinion... java-gnome/-gtk would be much more
interesting for developers, if crossplatform-support was
provided. i think java-gnome/-gtk is a great idea, but no
one's interested in rewriting the gui of a java-app for
other operating-systems.
Comment 2 Mark Howard 2004-10-11 18:50:47 UTC
Lots of people have shown interest in a windows port of java gnome. This should
be possible and may even be just a case of recompiling with the right tools.
Might be a metter of a few hours work for somebody who knows the cygwin tools
and compilers. There are certainly a lot of gnome apps at the moment already on
windows. 

I've created a wiki page to coordinate the efforts of the windows port,
(although at the moment nobody seems to be actively working on it)

http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/WindowsCompilation
Comment 3 Mark Howard 2004-10-14 20:40:57 UTC
Jerry Haltom has java-gnome working on windows, even with glade. Screenshots
look amazing. 
We should keep this bug open until we can have a build system for windows and be
able to release packages some how.
Comment 4 Jonas Geiregat 2005-04-20 22:19:26 UTC
I'm interested in a port to Mac OS X, I might look into it myself next week.
Comment 5 frenk 2005-07-06 22:22:42 UTC
I really wanted to build my java-gnome app (which runs smoothly in linux) for
windows (yes, there are still people that use windows! :-( ).
I didn't used glade, I just wrote it from scratch with org.gnu.gtk and
org.gnu.gnome apis.

The problems I found are:
- gtkjni library was not found. I took it from the java-gnome rar file (
http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/GetJavaGnome#Binary_for_windows
) and renamed it to gtkjni-2.6.dll. (With -Djava.library.path it finds it)
- From the same rar file I took gtk-2.6.jar. I don't know if the linux one is
different, but this seems to be a windows-friendly version.
- That same rar file contains the dll and the jar for glade, so that should be
good, but again I didn't need them.
- Then it complained about libatk-1.0-0 (UnsatisfiedLinkError). I installed
gtk-win32 from gladewin.sf.net and I took libatk-1.0-0.dll from its bin directory.
- Next error is again an UnsatisfiedLinkError, but this time for gnomejni-2.10.
This error is the one that blocks me now, I can't find that dll and if I
understand correctly, this page (
http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/WindowsCompilation )
only explains how to obtain the gtk and glade dlls, which I already have.

I started yesterday with java-gnome so I'm no expert, but I'm wondering if it's
possible to solve this.
Or maybe I should not use org.gnu.gnome classes at all?

From what I view -from the beginner's point of view- the ideal would be:
- you go to the java-gnome website
- you grab glade, gtk, javagnome dll's
- you grab glade, gtk, javagnome jars (if they are different from the linux ones)
- you include those in your application and it runs on windows too.

Btw I forgot to say that the whole java-gnome project is great!
Comment 6 Andrew Cowie 2007-01-05 03:00:06 UTC
The question of whether or not GNOME libraries shoule run on Microsoft Windows is a sensitive one.

We have had a careful consideration of who the audience for java-gnome is; you can see the results of that disucssion here: 
http://java-gnome.sourceforge.net/4.0/doc/design/2a-ObjectiveAndAudience.html

As we move into the next generation of the project, I would observe that the volume of work necessary is enormous, and certainly I will not expect anyone from the GNOME community to be that interested in making it run on proprietary platfroms. That said, non-invasive patches will be considered if an active community of capable hackers emerges who will ensure that a Windows port is stable and well maintained. Until then, we will concentrate on making java-gnome the best Java binding for GNOME it can be.

AfC