Thread: [Java-gnome-developer] About Dialog
Brought to you by:
afcowie
From: Andrew <ac...@on...> - 2003-12-06 20:29:54
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 OK, I have an error I'm not sure why. I created a small window using glade, and load the window using libglade. The onAboutActivate() method is defined as a signal in glade, the logging prints out, however crashes with the error listed below. I have run the CroMagnon application and the about dialog works fine with that, so I'm a little stumped?? Note: I have this also in my startup; -Djava.library.path=/usr/local/lib public void onAboutActivate(MenuItemEvent event, Object target) { logger.finest("Help/About"); About about = new About(APP_TITLE, APP_VERSION, "Don't know yet!!", "Application written using Java-Gnome", new String[]{"Andrew"}, new String[]{"Andrew"}, "No translation available", (Pixbuf) null); about.show(); } ListenerDelegate.fireEvent(org.gnu.gtk.event.MenuItemEvent[source=org.gnu.gtk.MenuItem@aeffdf,id=ACTIVATE]): java.lang.UnsatisfiedLinkError: gnome_about_new java.lang.UnsatisfiedLinkError: gnome_about_new at org.gnu.gnome.About.gnome_about_new(Native Method) at org.gnu.gnome.About.<init>(About.java:58) - -- [A n d r e w] - ------|------ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQE/0jxV2AKtqeH2FeQRAnbvAKCcuCp6+2DrhvZcXw/RLyVEFszyOACfZOZA ZRqOzkjLmO1hlFHr6k1D7+0= =Zh3m -----END PGP SIGNATURE----- |
From: Mark H. <mh...@ca...> - 2003-12-06 20:45:42
|
On Sat, Dec 06, 2003 at 08:30:13PM +0000, Andrew wrote: > Note: I have this also in my startup; -Djava.library.path=/usr/local/lib looks like you don't have the libgnome-java.so file in the library path. Does your installed version of java-gnome have gnome support? -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... | mh...@ca... |
From: Andrew <ac...@on...> - 2003-12-06 21:06:19
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mark Howard wrote: | On Sat, Dec 06, 2003 at 08:30:13PM +0000, Andrew wrote: | |>Note: I have this also in my startup; -Djava.library.path=/usr/local/lib | | | looks like you don't have the libgnome-java.so file in the library path. | Does your installed version of java-gnome have gnome support? | Hi, I have this: ~ ls -l /usr/local/lib/*Java* lrwxrwxrwx 1 root root 21 Nov 6 21:16 /usr/local/lib/libGNOMEJava.so -> libGNOMEJava.so.0.8.1 - -rw-r--r-- 1 root root 9909082 Nov 6 21:16 /usr/local/lib/libGNOMEJava.so.0.8.1 lrwxrwxrwx 1 root root 19 Nov 6 21:16 /usr/local/lib/libGTKJava.so -> libGTKJava.so.0.8.1 - -rw-r--r-- 1 root root 36786115 Nov 6 22:04 /usr/local/lib/libGTKJava.so.0.8.1 lrwxrwxrwx 1 root root 21 Nov 6 21:16 /usr/local/lib/libGladeJava.so -> libGladeJava.so.0.8.1 - -rw-r--r-- 1 root root 197677 Nov 6 21:16 /usr/local/lib/libGladeJava.so.0.8.1 I would have thought my setup was correct, since I can run the CroMagnom ~ application ok (the help about window included). ? - -- [A n d r e w] - ------|------ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQE/0kTR2AKtqeH2FeQRAnXtAJ9hyNGP0ataL350bqb+KcGwwLGY/gCffjsQ a73qCLMrDvAALUlgP57zfRU= =+Xhq -----END PGP SIGNATURE----- |
From: Mark H. <mh...@ca...> - 2003-12-06 21:43:39
|
Try doing it with the LD_LIBRARY_PATH rather than the -D: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib java ... -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... | mh...@ca... |
From: Andrew <ac...@on...> - 2003-12-06 21:46:46
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mark Howard wrote: | Try doing it with the LD_LIBRARY_PATH rather than the -D: | | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib | java ... | I just checked my LD_LIBRARY_PATH, and it is already set to /usr/local/lib So I think there must be another problem.. :( - -- [A n d r e w] - ------|------ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQE/0k5h2AKtqeH2FeQRAhAjAKCiK99Do/UBdXvpN2iwLPaPSSLirACeLxgR llXDhd7bhhCICdG7uYC1t1w= =7nMp -----END PGP SIGNATURE----- |
From: Mark H. <mh...@ca...> - 2003-12-07 08:01:56
|
On Sat, Dec 06, 2003 at 09:47:13PM +0000, Andrew wrote: > I just checked my LD_LIBRARY_PATH, and it is already set to /usr/local/lib > > So I think there must be another problem.. :( Perhaps it can't find the gnome libraries then? Are they in the path? -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... | mh...@ca... |
From: Luca De R. <pie...@li...> - 2003-12-07 14:52:58
|
Il sab, 2003-12-06 alle 21:30, Andrew ha scritto: > ListenerDelegate.fireEvent(org.gnu.gtk.event.MenuItemEvent[source=org.gnu.gtk.MenuItem@aeffdf,id=ACTIVATE]): > java.lang.UnsatisfiedLinkError: gnome_about_new > java.lang.UnsatisfiedLinkError: gnome_about_new > at org.gnu.gnome.About.gnome_about_new(Native Method) > at org.gnu.gnome.About.<init>(About.java:58) I must admit I never used glade to make an about dialog, in fact the CroMagnon about dialog was done without glade. However it seems an installation/compilation problem. The LD_LIRARY_PATH should point to /usr/local/lib (in your setup) and CLASSPATH should point to /usr/local/share/java-gnome/{gtk.jar, gnome.jar, glade.jar}. It seems that you have compiled with gnome support, cause your files are big enough, so maybe you have upgraded the library and forgot to run ldconfig? Also which jdk are you using? Also, as Mark said, make sure you have stock gnome libraries in the path. It could be a java-gnome bug too, if you want you can report the bug on sourceforge bug-tracker. Let me know if you have further problems with the fileselector too. If you are interested in CroMagnon, I suggest to grab the latest cvs version: an upgraded functional CroMagnon was checked in few days ago. I'll be glad to have comments on this ;) Luca. -- Luca De Rugeriis <pie...@li...> |
From: Andrew <ac...@on...> - 2003-12-07 18:25:37
|
Luca De Rugeriis wrote: > Il sab, 2003-12-06 alle 21:30, Andrew ha scritto: > >>ListenerDelegate.fireEvent(org.gnu.gtk.event.MenuItemEvent[source=org.gnu.gtk.MenuItem@aeffdf,id=ACTIVATE]): >>java.lang.UnsatisfiedLinkError: gnome_about_new >>java.lang.UnsatisfiedLinkError: gnome_about_new >> at org.gnu.gnome.About.gnome_about_new(Native Method) >> at org.gnu.gnome.About.<init>(About.java:58) > > I must admit I never used glade to make an about dialog, in fact the > CroMagnon about dialog was done without glade. However it seems an > installation/compilation problem. The LD_LIRARY_PATH should point to > /usr/local/lib (in your setup) and CLASSPATH should point to > /usr/local/share/java-gnome/{gtk.jar, gnome.jar, glade.jar}. > It seems that you have compiled with gnome support, cause your files are > big enough, so maybe you have upgraded the library and forgot to run > ldconfig? Also which jdk are you using? Also, as Mark said, make sure > you have stock gnome libraries in the path. > It could be a java-gnome bug too, if you want you can report the bug on > sourceforge bug-tracker. > > Let me know if you have further problems with the fileselector too. > If you are interested in CroMagnon, I suggest to grab the latest cvs > version: an upgraded functional CroMagnon was checked in few days ago. > I'll be glad to have comments on this ;) > > Luca. > Hi, I am about to go on holidays, but will probably work a bit on it with my laptop. The About window is not a glade window, it is a default gtk window. The reason I'm confused about it not working in my application is because it works when I run the CroMagnom application from eclipse, in exactly the same manner. I have the jar files in /usr/local/share/java-gnome I have also copied those files to a local directory to the project and tried. The LD_LIBRARY_PATH is set to /usr/local/lib as I previously pointed out. I am using jdk1.4.2_01 -- [A n d r e w] ------|------ |
From: Luca De R. <pie...@li...> - 2003-12-08 00:07:46
|
Il dom, 2003-12-07 alle 19:26, Andrew ha scritto: > Hi, > I am about to go on holidays, but will probably work a bit on it with my > laptop. Fine! Maybe, you could discuss eventual changes on the list, prior to send patches, to avoid conflicts, or just to know other people's opinion. > The About window is not a glade window, it is a default gtk window. Ehr...I was simply guessing that that signal defined from within glade could be the problem, but it doesn't seems to be. (it's a Gnome widget). > The reason I'm confused about it not working in my application is > because it works when I run the CroMagnom application from eclipse, in > exactly the same manner. > I have the jar files in /usr/local/share/java-gnome It continues to sound like a PATH problem: are you able to run cromagnon and launch its about dialog *without* eclipse? I can't think anything else but a compilation issue, be sure to check configure output, during the build process, if it says it's missing some needed library. Luca. |