From xiaoqiangnk at gmail.com Wed Jan 5 12:06:02 2011 From: xiaoqiangnk at gmail.com (Yongqiang Yang) Date: Wed, 5 Jan 2011 20:06:02 +0800 Subject: How to apply for JCK? Message-ID: Hi, We are porting hotspot to processor with MIPS architecture. Now, we need JCK to test the ported jvm. I however don't know how to apply for JCK. Is this the right mailing list? Could anyone give me some help about it? -- Best Wishes Yongqiang Yang From aph at redhat.com Wed Jan 5 12:13:09 2011 From: aph at redhat.com (Andrew Haley) Date: Wed, 05 Jan 2011 12:13:09 +0000 Subject: How to apply for JCK? In-Reply-To: References: Message-ID: <4D246055.5080906@redhat.com> On 01/05/2011 12:06 PM, Yongqiang Yang wrote: > We are porting hotspot to processor with MIPS architecture. > Now, we need JCK to test the ported jvm. I however don't know > how to apply for JCK. > > Is this the right mailing list? > > Could anyone give me some help about it? openjdk.java.net/legal/openjdk-tck-license.pdf Andrew. From paul.rank at oracle.com Wed Jan 5 19:06:48 2011 From: paul.rank at oracle.com (Paul Rank) Date: Wed, 05 Jan 2011 11:06:48 -0800 Subject: How to apply for JCK? In-Reply-To: <4D246055.5080906@redhat.com> References: <4D246055.5080906@redhat.com> Message-ID: <4D24C148.7000309@oracle.com> Hi, Please follow the process outlined at http://openjdk.java.net/groups/conformance/JckAccess/index.html I'm happy to help if you find any of the process confusing. Thanks, Paul On 1/5/2011 4:13 AM, Andrew Haley wrote: > On 01/05/2011 12:06 PM, Yongqiang Yang wrote: > >> We are porting hotspot to processor with MIPS architecture. >> Now, we need JCK to test the ported jvm. I however don't know >> how to apply for JCK. >> >> Is this the right mailing list? >> >> Could anyone give me some help about it? > > openjdk.java.net/legal/openjdk-tck-license.pdf > > Andrew. From mark at klomp.org Mon Jan 17 09:44:47 2011 From: mark at klomp.org (Mark Wielaard) Date: Mon, 17 Jan 2011 10:44:47 +0100 Subject: Free Java @ FOSDEM 2011 - Talk Schedule In-Reply-To: <4CD87D29.9040001@info9.net> References: <4CD87D29.9040001@info9.net> Message-ID: <1295257487.2998.14.camel@springer.wildebeest.org> Mark your calendars! Free Java @ Fosdem will be in less than 3 weeks. Saturday 5, Sunday 6 February 2011, Fosdem, Brussels, Belgium. Room AW1.125. We got a very good selection of very diverse talks, all around core java implementation issues, integration, community and the future of Free Java as platform. Full program, talk abstract and speakers bios at: http://wiki.debian.org/Java/DevJam/2011/Fosdem/TalkSchedule Saturday 13:00 - 13:10 Welcome to Java Sans Fronti?res Tom Marble 13:10 - 14:00 State of OpenJDK Mark Reinhold, Joe Darcy 14:00 - 14:30 IcedRobot, the GNUlization of Android David Fu, Mario Torre 14:30 - 15:00 break + group picture 15:00 - 15:20 Why Linux distributions hate Java Thierry Carrez 15:20 - 15:40 The Java Packaging Nightmare Torsten Werner 15:40 - 16:00 Guide to packaging for developers Stanislav Ochotnicky 16:00 - 16:25 break 16:25 - 16:30 What makes IcedTea tick? Mark Wielaard 16:30 - 17:00 What in the world is this 'IcedTea-Web' project? Deepak Bhole 17:00 - 17:30 The Free javaws Implementation in IcedTea Omair Majid 17:30 - 18:00 break 18:00 - 18:30 Lessons open sourcing Java taught me Simon Phipps 18:30 - 19:00 The Rise and Fall and Rise of Java Steve O'Grady evening LibreDinner Sunday 09:30 - 10:00 The Free Java Jigsaw Puzzle Tom Marble 10:00 - 10:30 The Modular Java Platform Mark Reinhold 10:30 - 11:15 Project Coin - Language Evolution in the Open Joe Darcy 11:15 - 11:30 break 11:30 - 12:00 Observing HotSpot with SystemTap Mark Wielaard 12:00 - 12:30 JamVM Gets a New Flavour: Porting JamVM to OpenJDK Robert Lougher 12:30 - 13:00 IndyDroid - JSR 292 on Android R?mi Forax 13:00 - 14:00 lunch and keysigning 14:00 - 14:30 Free Java - Reasons to be cheerful! Ben Evans, Martijn Verburg 14:30 - 15:00 PHP.reboot a dynamic language as fast as Java (almost!) R?mi Forax 15:00 - 15:30 Rhino and RingoJS - server-side JavaScript on the JVM Hannes Walln?fer 15:30 - 16:00 break 16:00 - 16:30 AltosUI - Rocket Telemetry Ground Station Bdale Garbee 16:30 - 16:55 Low latency in Gervill and JavaSound Karl Helgason 16:55 - 17:00 Garbage Collection (wrap-up) Tom Marble Please join the freejava-devroom at lists.fosdem.org list for general discussion about the event. http://lists.fosdem.org/mailman/listinfo/freejava-devroom Hoping to see you all there, Andrew Haley GCJ Maintainer, GNU Classpath, IcedTea & OpenJDK Developer. Andrew John Hughes IcedTea Maintainer, GNU Classpath Maintainer, OpenJDK & GCJ Developer Christian Thalinger OpenJDK developer, former CACAO Maintainer Mark Wielaard GNU Classpath Maintainer, GCJ, IcedTea & OpenJDK contributor. Tom Marble Java Libre hacker, Former OpenJDK Ambassador From john.boyer at abilitiessoft.com Wed Jan 26 04:28:04 2011 From: john.boyer at abilitiessoft.com (John J. Boyer) Date: Tue, 25 Jan 2011 22:28:04 -0600 Subject: How does the JVM find Native functions? Message-ID: <20110126042804.GA26012@s15261680.onlinehome-server.com> I have created bindings for a C library. The Java program seems to load the library, but when I try to use a method which is declared native I always get UnsatisfiedLinkError. I used javah to create the headings, then derived the program from the headings. It looks to me like the methods have to be registered in some way. How do I go about this? How does the JVM find the native function corresponding to a native method? Thanks, John -- John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc. http://www.abilitiessoft.com Madison, Wisconsin USA Developing software for people with disabilities From hwadechandler-openjdk at yahoo.com Wed Jan 26 16:03:01 2011 From: hwadechandler-openjdk at yahoo.com (hwadechandler-openjdk at yahoo.com) Date: Wed, 26 Jan 2011 08:03:01 -0800 (PST) Subject: How does the JVM find Native functions? In-Reply-To: <20110126042804.GA26012@s15261680.onlinehome-server.com> References: <20110126042804.GA26012@s15261680.onlinehome-server.com> Message-ID: <822141.68232.qm@web33807.mail.mud.yahoo.com> http://java.sun.com/docs/books/jni/html/objtypes.html#24512 Is a good simple start. But, if you used javah, then it should have defined the functions needed to be implemented. Are you sure it is loading your library? How do you know for sure? Do you have a static section using System.loadLibrary and there is no exception raised there? If it is throwing an exception there, then it most likely isn't finding the library, and definitely isn't loading it. It may be it is finding your library, but is failing to load some other dependency as well. You can hook up a debugger in your C environment and set a break point in what ever entry point you have in the DLL/SO to know if it is loading that at least. If the actual file is being hooked into the JVM and loaded and the entry point called, then it may be a naming issue. Did you change your function names to something other than what javah output in your headers? See the overall book from above: http://java.sun.com/docs/books/jni/html/jniTOC.html Is a good way to go. Too, if your classes with the native methods are in packages, then notice the Java_my_package_myFunction naming scheme. That is all that is needed as long as you are outputting a C library. If you are using C++ then you will have to use extern "C" to make sure name mangling doesn't occur. If you don't know about name mangling, then just google it, and you'll find what you need. Hope something helps, Wade ================== Wade Chandler Software Engineer and Developer NetBeans Dream Team Member and Contributor http://wiki.netbeans.org/wiki/view/NetBeansDreamTeam http://www.netbeans.org ----- Original Message ---- > From: John J. Boyer > To: discuss at openjdk.java.net > Sent: Tue, January 25, 2011 11:28:04 PM > Subject: How does the JVM find Native functions? > > I have created bindings for a C library. The Java program seems to load > the library, but when I try to use a method which is declared native I > always get UnsatisfiedLinkError. I used javah to create the headings, > then derived the program from the headings. It looks to me like the > methods have to be registered in some way. How do I go about this? How > does the JVM find the native function corresponding to a native method? > > Thanks, > John > > -- > John J. Boyer; President, Chief Software Developer > Abilitiessoft, Inc. > http://www.abilitiessoft.com > Madison, Wisconsin USA > Developing software for people with disabilities > > From neugens at limasoftware.net Wed Jan 26 07:21:05 2011 From: neugens at limasoftware.net (Mario Torre) Date: Wed, 26 Jan 2011 08:21:05 +0100 Subject: How does the JVM find Native functions? In-Reply-To: <20110126042804.GA26012@s15261680.onlinehome-server.com> References: <20110126042804.GA26012@s15261680.onlinehome-server.com> Message-ID: <1296026465.10313.9.camel@galactica> Il giorno mar, 25/01/2011 alle 22.28 -0600, John J. Boyer ha scritto: > I have created bindings for a C library. The Java program seems to load > the library, but when I try to use a method which is declared native I > always get UnsatisfiedLinkError. I used javah to create the headings, > then derived the program from the headings. It looks to me like the > methods have to be registered in some way. How do I go about this? How > does the JVM find the native function corresponding to a native method? > > Thanks, > John > Hi John, Try passing -Djava.library.path=/path/to/your/library.so Then use System.loadlibrary or System.load in a static initlialiser where your code is used to register the library. Cheers, Mario -- pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 40CF Proud GNU Classpath developer: http://www.classpath.org/ Read About us at: http://planet.classpath.org OpenJDK: http://openjdk.java.net/projects/caciocavallo/ Please, support open standards: http://endsoftpatents.org/ From stephane.jeanjean at orange-ftgroup.com Mon Jan 31 16:19:59 2011 From: stephane.jeanjean at orange-ftgroup.com (stephane.jeanjean at orange-ftgroup.com) Date: Mon, 31 Jan 2011 17:19:59 +0100 Subject: OpenJDK JRE & Embedded Devices Message-ID: <2CAE5634D52E194BA393187E0568E1AC059AD8EC@ftrdmel1> Hello, Is it possible to distribute a device with an embedded royalty free OpenJDK JRE ? Regards, St?phane From mark at klomp.org Mon Jan 31 16:31:50 2011 From: mark at klomp.org (Mark Wielaard) Date: Mon, 31 Jan 2011 17:31:50 +0100 Subject: OpenJDK JRE & Embedded Devices In-Reply-To: <2CAE5634D52E194BA393187E0568E1AC059AD8EC@ftrdmel1> References: <2CAE5634D52E194BA393187E0568E1AC059AD8EC@ftrdmel1> Message-ID: <1296491510.3246.52.camel@springer.wildebeest.org> On Mon, 2011-01-31 at 17:19 +0100, stephane.jeanjean at orange-ftgroup.com wrote: > Is it possible to distribute a device with an embedded royalty free OpenJDK JRE ? Sure! That is the whole point of OpenJDK to provide a fully free java implementation that anybody can use for whatever they want without any restrictions. As long as you obey the share-and-share alike of the GPL. In fact you can already buy several of such devices right now. See for example the bug labs work: http://community.buglabs.net/kgilmer/posts/45-BUG-OpenJDK I even bought a netbook with IcedTea preinstalled several years back: http://gnu.wildebeest.org/blog/mjw/2008/09/24/free-java-for-your-netbook-aspire-one-with-icedtea/ Cheers, Mark From aph at redhat.com Mon Jan 31 16:33:37 2011 From: aph at redhat.com (Andrew Haley) Date: Mon, 31 Jan 2011 16:33:37 +0000 Subject: OpenJDK JRE & Embedded Devices In-Reply-To: <2CAE5634D52E194BA393187E0568E1AC059AD8EC@ftrdmel1> References: <2CAE5634D52E194BA393187E0568E1AC059AD8EC@ftrdmel1> Message-ID: <4D46E461.4060502@redhat.com> On 01/31/2011 04:19 PM, stephane.jeanjean at orange-ftgroup.com wrote: > > Is it possible to distribute a device with an embedded royalty free OpenJDK JRE ? You should consult your lawyer. Having said that, I am not a lawyer but I can't seen anything in the licence that would stop you. The only thing that gives you permission is the licence, which you should read to determine if you agree to its terms and if it gives you the permissions you need. Andrew. From henri.gomez at gmail.com Mon Jan 31 19:52:07 2011 From: henri.gomez at gmail.com (Henri Gomez) Date: Mon, 31 Jan 2011 20:52:07 +0100 Subject: OpenJDK JRE & Embedded Devices In-Reply-To: <4D46E461.4060502@redhat.com> References: <2CAE5634D52E194BA393187E0568E1AC059AD8EC@ftrdmel1> <4D46E461.4060502@redhat.com> Message-ID: >> Is it possible to distribute a device with an embedded royalty free >> OpenJDK JRE ? Good question. Could we have OpenJDK VM on phone, ie: to replace Dalvik on Android devices ? From mark at klomp.org Mon Jan 31 20:04:07 2011 From: mark at klomp.org (Mark Wielaard) Date: Mon, 31 Jan 2011 21:04:07 +0100 Subject: OpenJDK JRE & Embedded Devices In-Reply-To: References: <2CAE5634D52E194BA393187E0568E1AC059AD8EC@ftrdmel1> <4D46E461.4060502@redhat.com> Message-ID: <1296504247.25442.6.camel@springer.wildebeest.org> On Mon, 2011-01-31 at 20:52 +0100, Henri Gomez wrote: > >> Is it possible to distribute a device with an embedded royalty free > >> OpenJDK JRE ? > > Good question. > > Could we have OpenJDK VM on phone, That has already been done on OpenMoko: http://wiki.openmoko.org/wiki/Java http://rschuster.blogs.evolvis.org/tag/openmoko/ > ie: to replace Dalvik on Android devices ? There will be a talk about that topic next weekend at the Fosdem Free Java devroom event: http://wiki.debian.org/Java/DevJam/2011/Fosdem/JavaSpeakers#IcedRobot Cheers, Mark From fcassia at gmail.com Mon Jan 31 20:07:27 2011 From: fcassia at gmail.com (Fernando Cassia) Date: Mon, 31 Jan 2011 17:07:27 -0300 Subject: OpenJDK JRE & Embedded Devices In-Reply-To: References: <2CAE5634D52E194BA393187E0568E1AC059AD8EC@ftrdmel1> <4D46E461.4060502@redhat.com> Message-ID: On Mon, Jan 31, 2011 at 4:52 PM, Henri Gomez wrote: >>> Is it possible to distribute a device with an embedded royalty free >>> OpenJDK JRE ? > > Good question. > > Could we have OpenJDK VM on phone, ie: to replace Dalvik on Android devices ? Why not? it?s GPL software. The question is as silly as asking "could we have Linux on a phone?". ;-) OpenJDK already runs on the Nokia N900 and N8xx internet tablets http://wiki.maemo.org/OpenJDK_6.0_0_(Cambridge_Software_Labs)_on_N900 FC From henri.gomez at gmail.com Mon Jan 31 20:11:23 2011 From: henri.gomez at gmail.com (Henri Gomez) Date: Mon, 31 Jan 2011 21:11:23 +0100 Subject: OpenJDK JRE & Embedded Devices In-Reply-To: References: <2CAE5634D52E194BA393187E0568E1AC059AD8EC@ftrdmel1> <4D46E461.4060502@redhat.com> Message-ID: > Why not? it?s GPL software. The question is as silly as asking "could > we have Linux on a phone?". ;-) Apache Harmony is under ASF licence and couldn't be used on devices due to Field Of Usage, so my question is not so silly. > OpenJDK already runs on the Nokia N900 and N8xx internet tablets > > http://wiki.maemo.org/OpenJDK_6.0_0_(Cambridge_Software_Labs)_on_N900 > FC Good to see nothing prevent it to be used on embedded devices, ie no FOU.