This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: error: Can't find method `getLastSelectedPathComponent()' intype `javax.swing.JTree'


Thomas Léauté wrote:

I am trying to use gcj to compile my java legacy code, but I get the following error:

error: Can't find method `getLastSelectedPathComponent()' in type `javax.swing.JTree'

I also get:

error: Can't find method `scrollPathToVisible(Ljavax/swing/tree/TreePath;)' in type `javax.swing.JTree'

Is it because this is not supported yet?


Correct. javax.swing support in libgcj/GNU Classpath is still incomplete, however it is being actively worked on. If you'd like to contribute by implementing some of the missing methods/functionality, we'd be very grateful!

Or did I do something wrong when I installed gcj?... I am on Mac OS 10.3. I followed the instructions at http://hpc.sourceforge.net/ to install the gcj 3.5 binaries. I also tried to compile them as described at http://users.bestweb.net/~john3g/gcj_osx/gcj_on_osx.html , but when I tried to build them, I got:

configure: error:
The following requested languages were not found: c++ java
The following languages were available: c treelang

So I'm really starting to wonder if I didn't do anything wrong when I first installed gcj 3.5. Or does gcj 3.5 require g++ 3.5? (g++ --version returns "g++ (GCC) 3.3 20030304 (Apple Computer, Inc. build 1666)")


Note that if you are planning to use CNI to call Java code from C++, you should compile your C++ code with a version of g++ that matches your version of gcj. ie: trying to call Java code compiled with gcj 3.5 from c++ code compiled with apple gcc 3.3 will not work.

Regards

Bryce


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]