page 1 of 1
Comments: 4 | Views: 922
I have to write a program for my final project in my Java class. My program must be written in Java and it must be cross platform compatible (meaning it will run on two different operating systems).

At the same time, I am writing a completely different program for my final project in my C++ class and I would like to write a GUI for it. I have much more flexibility in writing it than I do with my Java program, which must be strictly Java.

Rather than learning two completely different APIs, I would like to use GTK+ in place of the AWT and Swing libraries for my Java program and in place of Winforms for my C++ application. I have spoken to both of my professors and this is acceptable.

My question is, how do I do it? If someone could point me towards or provide me with directions for getting simple Hello World applications running in both languages on Windows using GTK+ (preferably in Visual Studio for C++ and Eclipse for Java), I should be able to work from there.
GTK+ Runtime for Window though you'll likely want to head to the old version section, where you can get GTK+ as a stand-alone

Also, you could just go directly to the project page:
http://www.gtk.org/download-windows.html
CannotResolveSymbol
CannotResolveSymbol
{insert caption here}
Not to burst your bubble here, but the Java bindings for GTK+ (through the java-gnome project) aren't available for Windows.

Even if it were available on Windows, GTK+ is still a native library, which means that you'll have all the cross-platform incompatibility problems associated with it.  Swing is really the only way to go if you're looking for "write-once, run anywhere" pure Java code.

Getting GTK+ working with C++ on Windows should be easier.  You probably actually want gtkmm, which is a C++ interface to GTK+ (GTK+ itself is a plain C API and doesn't take advantage of any of the features in C++, like memory management, polymorphism (the "right" C++ way, I should add), and the Standard C++ library/STL).
Charles
Charles
Welcome Change
What are you triyng to do, from an application perspective? Just curious.

C
page 1 of 1
Comments: 4 | Views: 922