From David.Holmes at oracle.com Fri Aug 13 23:42:42 2010 From: David.Holmes at oracle.com (David Holmes) Date: Sat, 14 Aug 2010 09:42:42 +1000 Subject: Mailing list policies Message-ID: <4C65D872.9070509@oracle.com> Sorry if this is not quite the right list, but I'd like to know if we can have a policy change on the mailing lists so that it is okay for a member of a list to bcc that list. When people post to the wrong list you want to get that list off the reply-set but you also want other folks on that list to see that the issue has been referred elsewhere. The delays incurred waiting for approval can defeat the purpose of avoiding having many responses from the incorrect list. Thanks, David Holmes ------------- Your mail to 'hotspot-runtime-dev' with the subject Re: write barrier and card marking Is being held until the list moderator can review it for approval. The reason it is being held: Message has implicit destination Either the message will get posted to the list, or you will receive notification of the moderator's decision. If you would like to cancel this posting, please visit the following URL: From john.boyer at abilitiessoft.com Tue Aug 24 23:35:19 2010 From: john.boyer at abilitiessoft.com (John J. Boyer) Date: Tue, 24 Aug 2010 18:35:19 -0500 Subject: New Member with a Problem Message-ID: <20100824233519.GA30127@s15261680.onlinehome-server.com> I just subscribed to this list in the hope that someone may provide me with an answer to a problem. I installed openjdk from source on my centOS wystem a while ago. For the BrailleBlaster project on which I am working we need bindings to several C libraries. I have used JNI to make bindings to the liblouisutdml library. The C part of the bindings is compiled into the library for convenience. When I test the bindings with a simple program that just creates a new instance of their class, I get an unstaisfiedLink exception with the message "no liblouisutdml in java.librarry.path". I have tried everything in the JNI reference manual, but nothing works. Any suggestions will be greatly appreciated. John -- John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc. http://www.abilitiessoft.com Madison, Wisconsin USA Developing software for people with disabilities From dalibor.topic at oracle.com Wed Aug 25 07:59:55 2010 From: dalibor.topic at oracle.com (Dalibor Topic) Date: Wed, 25 Aug 2010 09:59:55 +0200 Subject: New Member with a Problem In-Reply-To: <20100824233519.GA30127@s15261680.onlinehome-server.com> References: <20100824233519.GA30127@s15261680.onlinehome-server.com> Message-ID: <4C74CD7B.6080505@oracle.com> On 8/25/10 1:35 AM, John J. Boyer wrote: > I have used JNI to make > bindings to the liblouisutdml library. The C part of the bindings is > compiled into the library for convenience. When I test the bindings with > a simple program that just creates a new instance of their class, I get > an unstaisfiedLink exception with the message "no liblouisutdml in > java.librarry.path". Hi John, you're probably using System.loadLibrary("liblouisutdml"), and your library is called liblouisutdml.so on disk. Since loadLibrary automagically maps the given cross-platform name of a library to a system-dependent native library name by adding the necessary (if any) prefix and suffix, you have to pass it the library name without a system-dependent prefix ("lib") or suffix (".so"), as those will be added to it. In other words, try System.loadLibrary("louisutdml") instead. ;) In general, a good forum for JNI questions is http://forums.sun.com/forum.jspa?forumID=52&start=0 cheers, dalibor topic -- Oracle Dalibor Topic | Java F/OSS Ambassador Phone: +494023646738 | | | Mobile: +491772664192 Oracle Java Platform Group ORACLE Deutschland B.V. & Co. KG | Nagelsweg 55 | 20097 Hamburg ORACLE Deutschland B.V. & Co. KG Hauptverwaltung: Riesstr. 25, D-80992 M?nchen Registergericht: Amtsgericht M?nchen, HRA 95603 Komplement?rin: ORACLE Deutschland Verwaltung B.V. Rijnzathe 6, 3454PV De Meern, Niederlande Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697 Gesch?ftsf?hrer: J?rgen Kunz, Marcel van de Molen, Alexander van der Ven Green Oracle Oracle is committed to developing practices and products that help protect the environment From fweimer at bfk.de Wed Aug 25 07:59:55 2010 From: fweimer at bfk.de (Florian Weimer) Date: Wed, 25 Aug 2010 07:59:55 +0000 Subject: New Member with a Problem In-Reply-To: <20100824233519.GA30127@s15261680.onlinehome-server.com> (John J. Boyer's message of "Tue\, 24 Aug 2010 18\:35\:19 -0500") References: <20100824233519.GA30127@s15261680.onlinehome-server.com> Message-ID: <82k4nfunpg.fsf@mid.bfk.de> * John J. Boyer: > a simple program that just creates a new instance of their class, I get > an unstaisfiedLink exception with the message "no liblouisutdml in > java.librarry.path". I have tried everything in the JNI reference > manual, but nothing works. What's the full name of the DSO, and what value of java.library.path do you use? Have you tried System.load(String)? I general, such topics are not welcome on the OpenJDK mailing lists. Back in the old days, Sun made a point of not hosting any mailing lists for general programming topics, and requested that the forums should be used instead. I don't know if Oracle offers such mailing lists. -- Florian Weimer BFK edv-consulting GmbH http://www.bfk.de/ Kriegsstra?e 100 tel: +49-721-96201-1 D-76133 Karlsruhe fax: +49-721-96201-99 From dalibor.topic at oracle.com Wed Aug 25 09:25:33 2010 From: dalibor.topic at oracle.com (Dalibor Topic) Date: Wed, 25 Aug 2010 11:25:33 +0200 Subject: New Member with a Problem In-Reply-To: <82k4nfunpg.fsf@mid.bfk.de> References: <20100824233519.GA30127@s15261680.onlinehome-server.com> <82k4nfunpg.fsf@mid.bfk.de> Message-ID: <4C74E18D.8010106@oracle.com> > Back in the old days, Sun made a point of not hosting any mailing > lists for general programming topics, and requested that the forums > should be used instead. The forums are located at http://forums.sun.com/index.jspa - they should be used for general Java programming questions. cheers, dalibor topic -- Oracle Dalibor Topic | Java F/OSS Ambassador Phone: +494023646738 | | | Mobile: +491772664192 Oracle Java Platform Group ORACLE Deutschland B.V. & Co. KG | Nagelsweg 55 | 20097 Hamburg ORACLE Deutschland B.V. & Co. KG Hauptverwaltung: Riesstr. 25, D-80992 M?nchen Registergericht: Amtsgericht M?nchen, HRA 95603 Komplement?rin: ORACLE Deutschland Verwaltung B.V. Rijnzathe 6, 3454PV De Meern, Niederlande Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697 Gesch?ftsf?hrer: J?rgen Kunz, Marcel van de Molen, Alexander van der Ven Green Oracle Oracle is committed to developing practices and products that help protect the environment From john.boyer at abilitiessoft.com Wed Aug 25 11:43:10 2010 From: john.boyer at abilitiessoft.com (John J. Boyer) Date: Wed, 25 Aug 2010 06:43:10 -0500 Subject: More Questions Message-ID: <20100825114309.GA28629@s15261680.onlinehome-server.com> I've been told that questions such as miine about JNI are not welcome on the openjdk discussion list. I'll look at the forums suggested, but I'm wondering just what topics are welcome. I've been advised to dump openjdk and install the Sun jdk instead. The claim was made that openjdk is buggy and that a lot of people have found that their problems disappeared when they switched to the Sun jdk. >From my own experience I have to say that either system.loadLibrary is broken or it is making some really weird modifications to the library name. I have trried everything suggested. The JNI reference manual has examples in which the C library was placed in the current directory. I tried placing a symbolic link in the current directory. No luck. Unless this problem can be solved, I think I will have to drop openjdk, though I am a big fan of Open Source. John -- John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc. http://www.abilitiessoft.com Madison, Wisconsin USA Developing software for people with disabilities From aph at redhat.com Wed Aug 25 11:51:50 2010 From: aph at redhat.com (Andrew Haley) Date: Wed, 25 Aug 2010 12:51:50 +0100 Subject: More Questions In-Reply-To: <20100825114309.GA28629@s15261680.onlinehome-server.com> References: <20100825114309.GA28629@s15261680.onlinehome-server.com> Message-ID: <4C7503D6.2040207@redhat.com> On 08/25/2010 12:43 PM, John J. Boyer wrote: > I've been told that questions such as miine about JNI are not welcome on > the openjdk discussion list. I'll look at the forums suggested, but I'm > wondering just what topics are welcome. > > I've been advised to dump openjdk and install the Sun jdk instead. The > claim was made that openjdk is buggy and that a lot of people have found > that their problems disappeared when they switched to the Sun jdk. With the exception of the web browser plugin, I've seen very little evidence of that. >>From my own experience I have to say that either system.loadLibrary is > broken or it is making some really weird modifications to the library > name. I have trried everything suggested. The JNI reference manual has > examples in which the C library was placed in the current directory. I > tried placing a symbolic link in the current directory. No luck. > > Unless this problem can be solved, I think I will have to drop openjdk, > though I am a big fan of Open Source. I am fairly sure that OpenJDK does not do system.loadLibrary differently from the Sun JDK. Is this Linux or Windows? Andrew. From David.Holmes at oracle.com Wed Aug 25 12:08:07 2010 From: David.Holmes at oracle.com (David Holmes) Date: Wed, 25 Aug 2010 22:08:07 +1000 Subject: More Questions In-Reply-To: <20100825114309.GA28629@s15261680.onlinehome-server.com> References: <20100825114309.GA28629@s15261680.onlinehome-server.com> Message-ID: <4C7507A7.6000005@oracle.com> Hi John, John J. Boyer said the following on 08/25/10 21:43: > I've been told that questions such as miine about JNI are not welcome on > the openjdk discussion list. I'll look at the forums suggested, but I'm > wondering just what topics are welcome. As per the OpenJDK site: http://openjdk.java.net/ -> "mailing lists" The Discuss list is for "General discussion about the OpenJDK Community". Cheers, David Holmes Java Platform Group Oracle > I've been advised to dump openjdk and install the Sun jdk instead. The > claim was made that openjdk is buggy and that a lot of people have found > that their problems disappeared when they switched to the Sun jdk. > >>From my own experience I have to say that either system.loadLibrary is > broken or it is making some really weird modifications to the library > name. I have trried everything suggested. The JNI reference manual has > examples in which the C library was placed in the current directory. I > tried placing a symbolic link in the current directory. No luck. > > Unless this problem can be solved, I think I will have to drop openjdk, > though I am a big fan of Open Source. > > John > From john.boyer at abilitiessoft.com Wed Aug 25 19:30:25 2010 From: john.boyer at abilitiessoft.com (John J. Boyer) Date: Wed, 25 Aug 2010 14:30:25 -0500 Subject: Just so you know, Problem solved, sort of Message-ID: <20100825193017.GA5858@s15261680.onlinehome-server.com> Thanks to Andrew Haley, who told me how to run a system trace. It turned out that system.loadLibrary was adding a "lib" prefix as well as a ".so" suffix. When I changed the name to louisutdml it found all libraries. Now it can't find the methods, but that's a more straightforward debugging problem. What do you guys usually talk about? Thanks, John -- John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc. http://www.abilitiessoft.com Madison, Wisconsin USA Developing software for people with disabilities