Installation..
Hi, I am running Linux Redhat 5.2. I just downloaded jdk1.2pre-v2.tar.bz2. Is that the suitable latest version? Can i get installation instruction? begin: vcard fn: Rajesh Patel n: Patel;Rajesh org:Lockheed Martin Information Systems adr;dom:Advance Simulation Center;;37 North Ave.;Burlington;MA;01803; email;internet: [EMAIL PROTECTED] tel;work: 781 505 9582 tel;fax:781 505 9501 tel;home: [EMAIL PROTECTED] x-mozilla-cpt: ;0 x-mozilla-html: FALSE version:2.1 end:vcard
Debugging-C++ code attached by JNI
Hi, I am running into the situation where i need to debugg my c++ code that is attached by jni. Does anybody can help how can i debugg my c++ code?? Main application is in java-swing. -raj -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
dbx
Hi everybody, I am trying to debugg my native methods that are attached by JNI. I am trying to use dbx on my linux box but when i set my environment variable to dbx(setenv DEBUG_PROG dbx) and tried to run java it complained that exec: dbx: not found Does anybody have an idea why is it happening? Do i need to load something? or blackdown does not support it?? I am using blackdown jdk117_v3. I even tried on jdk1.2 and still got the same result. I would appreciate the help. -Raj -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JNI-Linking/loading .so objects used by c code
Hi everybody, I am having trouble linking/loading *.so objects that are used by my C++ code. Does anybody know how should i load them?? I have a java program and a C++ file. Using JNI i created .so object and loaded using loadLibrary() in my java program. Now the problem is i can not access my .so objects(not the one i created using JNI but the other one that is used by my C++ code) from my java program it hangs there and does not do anything!! So i tried to load all other .so objects used by C++ code using loadLibrary in my java program but then i get the errors shown at the end. How do i include other .so objects used by my C++ file?? I tried to use loadLibrary() to load other .so objects but it can not load one of my .so object!! Is this the right way to deal with it?? If so why it is not loading it?? /usr/safdevel/RTI13v6/rti/lang/C++/lib/Linux-2.0/libfedtime.so: undefined symbol: __tiQ23RTI9Exception (libfedtime.so) java.lang.UnsatisfiedLinkError: no fedtime in shared library path Error loading libfedtime.so SIGSEGV 11* segmentation violation stackbase=0x413e3000, stackpointer=0x413e2150 Full thread dump: "TimerQueue" (TID:0x406690a0, sys_thread_t:0x41487e0c, state:CW) prio=5 javax.swing.TimerQueue.run(TimerQueue.java:236) java.lang.Thread.run(Thread.java) "AWT-Finalizer" (TID:0x406694a0, sys_thread_t:0x41466e0c, state:CW) prio=9 java.lang.Object.wait(Object.java) sun.awt.AWTFinalizer.run(AWTFinalizer.java:40) "Screen Updater" (TID:0x40668db0, sys_thread_t:0x41445e0c, state:CW) prio=4 java.lang.Object.wait(Object.java) sun.awt.ScreenUpdater.nextEntry(ScreenUpdater.java:70) sun.awt.ScreenUpdater.run(ScreenUpdater.java:90) "AWT-Motif" (TID:0x4065b668, sys_thread_t:0x41424e0c, state:CW) prio=5 java.lang.Thread.run(Thread.java) "AWT-Input" (TID:0x4065b628, sys_thread_t:0x41403e0c, state:R) prio=5 "AWT-EventQueue-0" (TID:0x4065c3e8, sys_thread_t:0x413e2e0c, state:R) prio=5 *current thread* java.lang.Runtime.loadLibrary(Runtime.java) java.lang.System.loadLibrary(System.java) FSDBconnect.(FSDBconnect.java:22) I know i don't have any trouble with my shared object used by C++ code because i tried to run my C++ part from test C++ code and everything works fine. So i believe i am missing how should i load or include those .so objects used by C++ code? -Raj -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JNI-Linking/loading .so objects used by c code
Burkhart,Kelly wrote: > When you create the shared library with your JNI call do you link it with > the shared libraries it requires? > > Say you have libmyroutine.so and you are trying to create libmyjni.so: > > g++ --shared ... -o libmyjni.so -L/appropriate/path -lmyroutine > > Now when you ldd libmyjni.so it should show a dependency on libmyroutine.so > I already have added the way you suggested but it's not finding it and just hangs there when it needs to go to that .so object required by C++ code -raj > > -K > > > -Original Message- > > From: Raj Patel [mailto:[EMAIL PROTECTED]] > > Sent: Friday, November 05, 1999 8:51 AM > > To: java-linux Mailing List > > Subject: JNI-Linking/loading .so objects used by c code > > > > > > Hi everybody, > > I am having trouble linking/loading *.so > > objects that are used by my C++ code. Does anybody know how should i > > load them?? > > > > I have a java program and a C++ file. > > Using JNI i created .so object and loaded using loadLibrary() > > in my java > > program. > > Now the problem is i can not access my .so objects(not the > > one i created > > using JNI but the other one that is used by my C++ code) from my java > > program it hangs there and does not do anything!! So i tried to load > > all other .so objects used by C++ code using loadLibrary in my java > > program but then i get the errors shown at the end. > > > > How do i include other .so objects used by my C++ file?? > > I tried to use loadLibrary() to load other .so objects but it can not > > load one of my .so object!! Is this the right way to deal > > with it?? If > > so why it is not loading it?? > > > > /usr/safdevel/RTI13v6/rti/lang/C++/lib/Linux-2.0/libfedtime.so: > > undefined symbol: __tiQ23RTI9Exception (libfedtime.so) > > java.lang.UnsatisfiedLinkError: no fedtime in shared library path > > Error loading libfedtime.so > > SIGSEGV 11* segmentation violation > > stackbase=0x413e3000, stackpointer=0x413e2150 > > > > Full thread dump: > > "TimerQueue" (TID:0x406690a0, sys_thread_t:0x41487e0c, state:CW) > > prio=5 > > javax.swing.TimerQueue.run(TimerQueue.java:236) > > java.lang.Thread.run(Thread.java) > > "AWT-Finalizer" (TID:0x406694a0, sys_thread_t:0x41466e0c, > > state:CW) > > prio=9 > > java.lang.Object.wait(Object.java) > > sun.awt.AWTFinalizer.run(AWTFinalizer.java:40) > > "Screen Updater" (TID:0x40668db0, > > sys_thread_t:0x41445e0c, state:CW) > > prio=4 > > java.lang.Object.wait(Object.java) > > sun.awt.ScreenUpdater.nextEntry(ScreenUpdater.java:70) > > sun.awt.ScreenUpdater.run(ScreenUpdater.java:90) > > "AWT-Motif" (TID:0x4065b668, sys_thread_t:0x41424e0c, state:CW) > > prio=5 > > java.lang.Thread.run(Thread.java) > > "AWT-Input" (TID:0x4065b628, sys_thread_t:0x41403e0c, state:R) > > prio=5 > > "AWT-EventQueue-0" (TID:0x4065c3e8, sys_thread_t:0x413e2e0c, > > state:R) prio=5 *current thread* > > java.lang.Runtime.loadLibrary(Runtime.java) > > java.lang.System.loadLibrary(System.java) > > FSDBconnect.(FSDBconnect.java:22) > > > > I know i don't have any trouble with my shared object used by C++ code > > because i tried to run my C++ part from test C++ code and everything > > works fine. So i believe i am missing how should i load or include > > those .so objects used by C++ code? > > > > -Raj > > > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
jdk version
Hi everybody, I have a java-swing application that runs fine with jdk117_v3 but now i need to compile and run under jdk1.2 pre-v2 and it gives runtime Exception under jdk1.2 as follows, Exception occurred during event dispatching: java.lang.IndexOutOfBoundsException: -1 at java.util.BitSet.get(Compiled Code) at javax.swing.DefaultListSelectionModel.clear(Compiled Code) at javax.swing.DefaultListSelectionModel.setState(Compiled Code) at javax.swing.DefaultListSelectionModel.removeIndexInterval(Compiled Code) at javax.swing.plaf.basic.BasicListUI$ListDataHandler.intervalRemoved(Compiled Code) at javax.swing.AbstractListModel.fireIntervalRemoved(Compiled Code) at javax.swing.DefaultComboBoxModel.removeAllElements(Compiled Code) at javax.swing.JComboBox.removeAllItems(Compiled Code) at Fsa.refreshAttrCombo(Compiled Code) at Fsa.addAttributes(Compiled Code) at Fsa.createComponents(Compiled Code) at Question$2.actionPerformed(Compiled Code) at javax.swing.AbstractButton.fireActionPerformed(Compiled Code) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Compiled Code) at javax.swing.DefaultButtonModel.fireActionPerformed(Compiled Code) at javax.swing.DefaultButtonModel.setPressed(Compiled Code) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Compiled Code) at java.awt.Component.processMouseEvent(Compiled Code) at java.awt.Component.processEvent(Compiled Code) at java.awt.Container.processEvent(Compiled Code) at java.awt.Component.dispatchEventImpl(Compiled Code) at java.awt.Container.dispatchEventImpl(Compiled Code) at java.awt.Component.dispatchEvent(Compiled Code) at java.awt.LightweightDispatcher.retargetMouseEvent(Compiled Code) at java.awt.LightweightDispatcher.processMouseEvent(Compiled Code) at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code) at java.awt.Container.dispatchEventImpl(Compiled Code) at java.awt.Window.dispatchEventImpl(Compiled Code) at java.awt.Component.dispatchEvent(Compiled Code) at java.awt.EventQueue.dispatchEvent(Compiled Code) at java.awt.EventDispatchThread.run(Compiled Code) Can anybody tell.. do i need to do anything special to make it work under jdk1.2 or it's a problem with blackdown jdk version. -Raj -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
jdk version
Hi,
I am having few troubles using jdk1.2pre-v2(glib2.0) on Redhat
Linux 6.0. I used jdk1.1.7 with swing module (Redhat Linus 5.2) for my
swing application which is using JNI. Now after installing
jdk1.2pre-v2(glib2.0) application complains about swing classes during
compilation as,
Fsa.java:434: class JLabel not found in class Fsa
JLabel name = new JLabel("name: ");
Fsa.java:437: class JButton not found in class Fsa
JButton createForce = new JButton("Create my Force");
:
makerFSDB: javah: command not found
Everything was working fine under jdk1.1.7 with swing module
With jdk1.2pre-v2 i don't think i have to add swing module because it is
built in correct?
Do i need to set any PATH or something to find different swing classes?
Why it is not finding javah command? It is there in bin directory when
i tried to run from there i got message,
Error: can't find libjava.so.
Can anyone suggest what's missing?
Thanks,
-Raj
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
installation??
Hi, I just posted the question regarding jdk1.2pre-v2. I think it's more of a installation problem. After installing jdk1.2pre-v2 and setting PATH to bin directory when i tried javac command i got following error, black:rpatel% javac *** panic: GC: getStickySystemClass failed: java/lang/ref/Reference CLASSPATH may be incorrect SIGABRT 6* abort (generated by abort(3) routine) stackpointer=0xb2c0 Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v2, native threads): "main" (TID:0x403611e0, sys_thread_t:0x804c498, state:R, native ID:0x400) prio=5: pending=java.lang.OutOfMemoryError Monitor Cache Dump: Registered Monitor Dump: utf8 hash table: JNI pinning lock: JNI global reference lock: BinClass lock: Class linking lock: System class loader lock: Code rewrite lock: Heap lock: Monitor cache lock: owner "main" (0x804c498) 1 entry Thread queue lock: owner "main" (0x804c498) 1 entry Dynamic loading lock: Monitor registry: owner "main" (0x804c498) 1 entry I downloaded jdk1.2pre-v2(glibc2.0) for my Redhat linux 6.0. Am i missing anything?? -Raj -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
blackdown jdk version
Hi, I am putting this problem here one more time. I have a swing application using JNI. Everything was working ok under blackdown jdk 1.1.7 with swing-1.1.1 . Now i upgraded jdk to jdk 1.2(blackdown) so i don't have to have swing because it is already built in. But now under jdk1.2 my application gives strange exception error, Exception occurred during event dispatching: java.lang.IndexOutOfBoundsException: -1 at java.util.BitSet.get(Compiled Code) at javax.swing.DefaultListSelectionModel.clear(Compiled Code) at javax.swing.DefaultListSelectionModel.setState(Compiled Code) at javax.swing.DefaultListSelectionModel.removeIndexInterval(Compiled Code ) at javax.swing.plaf.basic.BasicListUI$ListDataHandler.intervalRemoved(Comp iled Code) at javax.swing.AbstractListModel.fireIntervalRemoved(Compiled Code) at javax.swing.DefaultComboBoxModel.removeAllElements(Compiled Code) at javax.swing.JComboBox.removeAllItems(Compiled Code) at Fsa.refreshAttrCombo(Compiled Code) at Fsa.addAttributes(Compiled Code) at Fsa.createComponents(Compiled Code) at Question$2.actionPerformed(Compiled Code) at javax.swing.AbstractButton.fireActionPerformed(Compiled Code) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Compiled Code) at javax.swing.DefaultButtonModel.fireActionPerformed(Compiled Code) at javax.swing.DefaultButtonModel.setPressed(Compiled Code) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Compiled Code) at java.awt.Component.processMouseEvent(Compiled Code) at java.awt.Component.processEvent(Compiled Code) at java.awt.Container.processEvent(Compiled Code) at java.awt.Component.dispatchEventImpl(Compiled Code) at java.awt.Container.dispatchEventImpl(Compiled Code) at java.awt.Component.dispatchEvent(Compiled Code) at java.awt.LightweightDispatcher.retargetMouseEvent(Compiled Code) at java.awt.LightweightDispatcher.processMouseEvent(Compiled Code) at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code) at java.awt.Container.dispatchEventImpl(Compiled Code) at java.awt.Window.dispatchEventImpl(Compiled Code) at java.awt.Component.dispatchEvent(Compiled Code) at java.awt.EventQueue.dispatchEvent(Compiled Code) at java.awt.EventDispatchThread.run(Compiled Code) I tried to run in debugg mode but it died black:rpatel% jdb Fsa Initializing jdb... 0xb0:class(Fsa) > run Fsa -interactive -outfile logfile running ... main[1] Current thread "main" died. Execution continuing... > Fsa exited I am using Linux6.0(glibc2.0) jdk1.2(blackdown). Is there any known problem with this transition?? -Raj -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: blackdown jdk version
Nathan Meyers wrote: > I think you didn't get an answer because, in general, people are > successfully using Swing and JNI with the JDK1.2 and nobody recognized > your problem. Thanks for the response. I found the problem. Now i have some trouble in native calls. I have Redhat Linux 6.0 with glibc2.1(my mistake i said 2.0). I want to debug my native code(C++) using gdb . I tried using attach process id at gdb session but i did not get anything useful in my gdb sesson. Is anybody familiar with jdb-gdb combination for debugging java code with JNI?? I found most of the places with referenses to dbx which i don't have on linux. Thanks, -Raj -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: blackdown jdk version
Nathan Meyers wrote: > There isn't really a gdb-jdb combination. You can debug under gdb if > you want to debug native code, but you won't get source-level Java > debugging. > > There are some tricks to getting your debugging session started under > gdb, because the breakpoint needs to be set in a library (your JNI code) > that isn't loaded at gdb startup. These steps can get you debugging > native code: > > 1) export LD_PRELOAD= > 2) export DEBUG_PROG=gdb (or whatever debugger you want to use) > 3) Run your application with green threads (java -green ...) > 4) When the debugger starts up, set a breakpoint at main() I am not able to do this, black:rpatel% java -green "Fsa -interactive -outfile logfile" GNU gdb 4.17.0.11 with Linux support Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"... /usr/safdevel/JSAF/libsrc/libfsa/Fsa -interactive -outfile logfile: No such file or directory. (gdb) b Fsa:1565 No source file named Fsa. (gdb) b Fsa.java:1565 No source file named Fsa.java. (gdb) b Fsa.class:1565 No source file named Fsa.class. (gdb) b netif.cc:165 No source file named netif.cc. (gdb) What am i missing?? -Raj > > 5) Run the program... be sure to specify the command-line args for java > 6) When you hit the breakpoint in main(), set a breakpoint in your >JNI code > 7) Continue execution; gdb will stop when it hits your breakpoint. > > Nathan > > On Fri, Nov 12, 1999 at 02:02:09PM -0500, Raj Patel wrote: > > Nathan Meyers wrote: > > > > > I think you didn't get an answer because, in general, people are > > > successfully using Swing and JNI with the JDK1.2 and nobody recognized > > > your problem. > > > > Thanks for the response. I found the problem. Now i have some trouble in > > native calls. I have Redhat Linux 6.0 with glibc2.1(my mistake i said 2.0). > > I want to debug my native code(C++) using gdb . I tried using attach process > > id at gdb session but i did not get anything useful in my gdb sesson. > > > > Is anybody familiar with jdb-gdb combination for debugging java code with > > JNI?? > > I found most of the places with referenses to dbx which i don't have on > > linux. > > Thanks, > > > > -Raj -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: blackdown jdk version
Nathan Meyers wrote: > OK... it's never dumped core there before, has it? > > I'm getting a bit short of ideas and time, but let's see if I can make > any headway. It's dying as soon as you start up "java -green" with my > two recommended environment variable values (JAVA_DEBUG and LD_PRELOAD)? > > Try running /usr/bin/ldd on gdb and on your JNI .so (the one you're > pre-loading). That will tell what library dependencies each has: maybe > one is dependent on glibc and the other on libc5... I've seen that cause > a core dump. > Here is the out put of ldd, % ldd libFSDBconnect.so libRTI.so => /usr/safdevel/RTI13v6/rti/lang/C++/lib/Linux-2.0/libRTI.so (0x4050a000) libfedtime.so => /usr/safdevel/RTI13v6/rti/lang/C++/lib/Linux-2.0/libfedtime.so (0x40b9b000) libpthread.so.0 => /lib/libpthread.so.0 (0x40baa000) libXm.so.2 => /usr/X11R6/lib/libXm.so.2 (0x40bbb000) libXp.so.6 => /usr/X11R6/lib/libXp.so.6 (0x40d45000) libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40d4c000) libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40d96000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40da3000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40daf000) libstdc++-libc6.1-1.so.2 => /usr/lib/libstdc++-libc6.1-1.so.2 (0x40e4c000 libm.so.6 => /lib/libm.so.6 (0x40e8e000) libc.so.6 => /lib/libc.so.6 (0x40eaa000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40f98000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40fa1000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2000) Do you see anything looped wrong? I can run debugger if i don't pre load shared library!! still i am not able to stop debugger at proper place. I tried Stop at class:lineno at gdb prompt to stop debugger in main of java but it did not stop there! -Raj > > Nathan > > On Fri, Nov 12, 1999 at 04:45:20PM -0500, Raj Patel wrote: > > Nathan Meyers wrote: > > > > > Don't specify the "FSA..." stuff on the initial "java" command line, > > > specify it in the "run" command inside the debugger after you've > > > set your breakpoint in main(). And don't put it in quotes. > > > > > > I know this breaks the usual conventions for running Java, but what's > > > happening, inside the launch script, is that it's running: > > > > > > gdb java "FSA..." > > > > > > and it thinks you're asking it to read a corefile with that funny name. > > > And there is no such file. > > > > > > Just run "java -green". When the debugger starts, set a breakpoint at main(), > > > > > > > It's not working for me > > > > black:rpatel% java -green > > Segmentation fault (core dumped) > > black:rpatel% > > > > -Raj -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
java-swing-jni...debug
Hi, I am struggling debugging java-swing-jni application. If i run my program using java command it runs fine but i need to debug my program using gdb and when i do that it hangs in gdb mode i tried to interrupt gdb and check the stack, Program received signal SIGINT, Interrupt. 0x40126827 in __libc_pause () (gdb) where #0 0x40126827 in __libc_pause () #1 0x40020795 in idle_loop (p=0x0) at ../../../../../src/linux/hpi/green_threads/src/threads_md.c:1094 #2 0x4001fe9e in start_func (func=0x40020788 , args=0xb0e4) at ../../../../../src/linux/hpi/green_threads/src/threads_md.c:290 (gdb) I am not able to find out what is happening! Is this the problem with green thread and native thread?? I am using Redhat Linux 6.0 with glibc2.1 and blackdown jdk1.2. -Raj -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
display setting with swing application
Hi, I am running into strange problem. I have Redhat Linux6.0 and blackdownjdk 1.2. When i compile my java-swing-jni application it compiles fine but when i try to run it i get following errors! Exception in thread "main" java.lang.Error: can't load javax.swing.plaf.metal.MetalLookAndFeel at javax.swing.UIManager.initializeDefaultLAF(Compiled Code) at javax.swing.UIManager.initialize(Compiled Code) at javax.swing.UIManager.maybeInitialize(Compiled Code) at javax.swing.UIManager.getUI(Compiled Code) at javax.swing.JDesktopPane.updateUI(Compiled Code) at javax.swing.JDesktopPane.(Compiled Code) at Fsa.(Fsa.java:54) If i try to run my application from other machine, it runs fine. If i set my display to other machine it runs fine. I am not understanding why it raises exception if i run on my display?? Any idea?? -Raj -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
blackdown jdk version..libpthread.so
Hi everybody, I had some problem with threading using JNI application and i decided to try newer version of jdk. I downloaded jdk1.2.2 for i386 rc3 version and file called jdk-1.2.2-RC3-linux-i386.tar.bz2 After i installed it when i tried to compile and run my application i got following error! /usr/local/download/jdk1.2.2/bin/i386/native_threads/javac: error in loading shared libraries: /usr/local/download/jdk1.2.2/jre/lib/i386/native_threads/libhpi.so: symbol sem_init, version GLIBC_2.1 not defined in file libpthread.so.0 with link time reference /usr/local/download/jdk1.2.2/bin/i386/native_threads/javah: error in loading shared libraries: /usr/local/download/jdk1.2.2/jre/lib/i386/native_threads/libhpi.so: symbol sem_init, version GLIBC_2.1 not defined in file libpthread.so.0 with link time reference When tried to run i got, /usr/local/download/jdk1.2.2/bin/i386/native_threads/java: error in loading shared libraries: /usr/local/download/jdk1.2.2/jre/lib/i386/native_threads/libhpi.so: symbol sem_init, version GLIBC_2.1 not defined in file libpthread.so.0 with link time reference Can anyone tell what's going on. I have Linux2.2 (Redhat 6.0) as an operating system. I am able to run older version jdk1.2pre-v2 without trouble. -Raj -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
segmentation fault!
Hi all, I have a simple application that uses java AWT for GUI. I am finding this strange segmentation error! Can anyone tell me when can i get segmentation error? I thought i would not get segmentation error in java. I am using blackdown's JDK_1.2.2_RC4 on Redhat 6.1. I am not using JNI here. In few cases it totally crashes and sometimes it stops updating GUI and freezes. Here is the error output. -Raj Before creating new reservation After new reservationtest2 test2 "4587524" US "not paid" SIGSEGV 11* segmentation violation si_signo [11]: SIGSEGV 11* segmentation violation si_errno [0]: Success si_code [0]: SI_USER [pid: 0, uid: 0] stackpointer=0xbf1fedec Full thread dump Classic VM (Linux_JDK_1.2.2_RC4, native threads): "Screen Updater" (TID:0x40e858e8, sys_thread_t:0x82f8788, state:CW, native ID:0x1c08) prio=4 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java, Compiled Code) at sun.awt.ScreenUpdater.nextEntry(ScreenUpdater.java, Compiled Code) at sun.awt.ScreenUpdater.run(ScreenUpdater.java, Compiled Code) "Thread-0" (TID:0x40e861f8, sys_thread_t:0x8053438, state:CW, native ID:0x400) prio=5 "AWT-Motif" (TID:0x40e7add8, sys_thread_t:0x826b198, state:R, native ID:0x1807) prio=5 at sun.awt.motif.MToolkit.run(Native Method) at java.lang.Thread.run(Thread.java, Compiled Code) "SunToolkit.PostEventQueue-0" (TID:0x40e7b218, sys_thread_t:0x8253520, state:CW, native ID:0x1406) prio=5 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java, Compiled Code) at sun.awt.PostEventQueue.run(SunToolkit.java, Compiled Code) "AWT-EventQueue-0" (TID:0x40e7b1e8, sys_thread_t:0x8247a30, state:R, native ID:0x1005) prio=6 at sun.awt.motif.MComponentPeer.pDispose(Native Method) at sun.awt.motif.MComponentPeer.disposeImpl(MComponentPeer.java, Compiled Code) at sun.awt.motif.MComponentPeer.dispose(MComponentPeer.java, Compiled Code) at java.awt.Component.removeNotify(Component.java, Compiled Code) at java.awt.Container.removeNotify(Container.java, Compiled Code) at java.awt.Container.removeNotify(Container.java, Compiled Code) at java.awt.Container.removeNotify(Container.java, Compiled Code) at java.awt.Window$1$DisposeAction.run(Window.java, Compiled Code) at java.awt.Window.dispose(Window.java, Compiled Code) at java.awt.Dialog.dispose(Dialog.java, Compiled Code) at ScheduleFrame.actionPerformed(ScheduleFrame.java, Compiled Code) at java.awt.AWTEventMulticaster.actionPerformed(AWTEventMulticaster.java, Compiled Code) at java.awt.Button.processActionEvent(Button.java, Compiled Code) at java.awt.Button.processEvent(Button.java, Compiled Code) at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code) at java.awt.Component.dispatchEvent(Component.java, Compiled Code) at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code) at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java, Compiled Code) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java, Compiled Code) at java.awt.Dialog.show(Dialog.java, Compiled Code) at java.awt.Component.show(Component.java, Compiled Code) at java.awt.Component.setVisible(Component.java, Compiled Code) at ScheduleFrame.checkReservation(ScheduleFrame.java, Compiled Code) at ReservationFrame.actionPerformed(ScheduleFrame.java, Compiled Code) at java.awt.Button.processActionEvent(Button.java, Compiled Code) at java.awt.Button.processEvent(Button.java, Compiled Code) at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code) at java.awt.Component.dispatchEvent(Component.java, Compiled Code) at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code) at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java, Compiled Code) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java, Compiled Code) at java.awt.Dialog.show(Dialog.java, Compiled Code) at java.awt.Component.show(Component.java, Compiled Code) at java.awt.Component.setVisible(Component.java, Compiled Code) at ScheduleFrame.actionPerformed(ScheduleFrame.java, Compiled Code) at java.awt.Button.processActionEvent(Button.java, Compiled Code) at java.awt.Button.processEvent(Button.java, Compiled Code) at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code) at java.awt.Component.dispatchEvent(Component.java, Compiled Code) at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code) at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java, Compiled Code) at java.awt.EventDispatchThread.pumpEvents(EventDispatch
Re: regarding blackened menu item
kamesh jayachandran wrote: > I have developed a gui in java, It works fine on windows but shows blackened > menu item when it is run under linux.I am not able to see whatever I typed in > the textfield ,it gets cluster of blackcharacters as one types in the > textfield.I have posted the same problem to the list before but got no > replies.I have searched the mail archives for any clue to this problem ,I got > no replies to my bad luck.I would be happy if anyone here help me in this. > I have stock install of RHL6.1.Sun JDK1.2.2 . > Thanks in advance > kamesh jayachandran > Seem like you are setting background and foreground colors for your GUI. My experience with these two operating system was similar. Windows seem to force background as white and linux don't. I think you have background and text both with same color or fairly close color. Try to set suitable colors for background and foreground so that you would see text in different color then background. Hope this helps. -Raj > > > kamesh jayachandran > Software Engineer > MicroLand limited > Bangalore > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
