From mvfranz at gmail.com Wed Dec 2 21:14:53 2009 From: mvfranz at gmail.com (Michael Franz) Date: Thu, 3 Dec 2009 00:14:53 -0500 Subject: IcedTea 1.12 On OS X Tiger PPC Message-ID: Hi, I have been able to get to a certain point building on OS X Tiger. I am getting the following errors. I am not sure if they are related to ppc or Tiger. /Users/mfranz/developer/icedtea-1.12/openjdk-boot/hotspot/src/os_cpu/bsd_zero/vm/atomic_bsd_zero.inline.hpp: In function 'unsigned int atomic_add_int_nv(volatile unsigned int*, int)': /Users/mfranz/developer/icedtea-1.12/openjdk-boot/hotspot/src/os_cpu/bsd_zero/vm/atomic_bsd_zero.inline.hpp:390: error: invalid conversion from 'volatile int32_t*' to 'int32_t*' /Users/mfranz/developer/icedtea-1.12/openjdk-boot/hotspot/src/os_cpu/bsd_zero/vm/atomic_bsd_zero.inline.hpp:390: error: initializing argument 2 of 'int32_t OSAtomicAdd32Barrier(int32_t, int32_t*)' /Users/mfranz/developer/icedtea-1.12/openjdk-boot/hotspot/src/os_cpu/bsd_zero/vm/atomic_bsd_zero.inline.hpp: In function 'void* atomic_add_ptr_nv(volatile void*, ssize_t)': /Users/mfranz/developer/icedtea-1.12/openjdk-boot/hotspot/src/os_cpu/bsd_zero/vm/atomic_bsd_zero.inline.hpp:399: error: invalid conversion from 'volatile int32_t*' to 'int32_t*' /Users/mfranz/developer/icedtea-1.12/openjdk-boot/hotspot/src/os_cpu/bsd_zero/vm/atomic_bsd_zero.inline.hpp:399: error: initializing argument 2 of 'int32_t OSAtomicAdd32Barrier(int32_t, int32_t*)' /Users/mfranz/developer/icedtea-1.12/openjdk-boot/hotspot/src/os_cpu/bsd_zero/vm/atomic_bsd_zero.inline.hpp: In function 'unsigned int atomic_swap_uint(volatile unsigned int*, unsigned int)': /Users/mfranz/developer/icedtea-1.12/openjdk-boot/hotspot/src/os_cpu/bsd_zero/vm/atomic_bsd_zero.inline.hpp:412: error: 'OSAtomicCompareAndSwapIntBarrier' was not declared in this scope /Users/mfranz/developer/icedtea-1.12/openjdk-boot/hotspot/src/os_cpu/bsd_zero/vm/atomic_bsd_zero.inline.hpp: In function 'void* atomic_swap_ptr(volatile void*, void*)': /Users/mfranz/developer/icedtea-1.12/openjdk-boot/hotspot/src/os_cpu/bsd_zero/vm/atomic_bsd_zero.inline.hpp:425: error: 'OSAtomicCompareAndSwapPtrBarrier' was not declared in this scope /Users/mfranz/developer/icedtea-1.12/openjdk-boot/hotspot/src/os_cpu/bsd_zero/vm/atomic_bsd_zero.inline.hpp: In function 'unsigned int atomic_cas_uint(volatile unsigned int*, unsigned int, unsigned int)': /Users/mfranz/developer/icedtea-1.12/openjdk-boot/hotspot/src/os_cpu/bsd_zero/vm/atomic_bsd_zero.inline.hpp:436: error: 'OSAtomicCompareAndSwapIntBarrier' was not declared in this scope /Users/mfranz/developer/icedtea-1.12/openjdk-boot/hotspot/src/os_cpu/bsd_zero/vm/atomic_bsd_zero.inline.hpp: In function 'long unsigned int atomic_cas_ulong(volatile long unsigned int*, long unsigned int, long unsigned int)': /Users/mfranz/developer/icedtea-1.12/openjdk-boot/hotspot/src/os_cpu/bsd_zero/vm/atomic_bsd_zero.inline.hpp:446: error: 'OSAtomicCompareAndSwapLongBarrier' was not declared in this scope /Users/mfranz/developer/icedtea-1.12/openjdk-boot/hotspot/src/os_cpu/bsd_zero/vm/atomic_bsd_zero.inline.hpp: In function 'void* atomic_cas_ptr(volatile void*, void*, void*)': /Users/mfranz/developer/icedtea-1.12/openjdk-boot/hotspot/src/os_cpu/bsd_zero/vm/atomic_bsd_zero.inline.hpp:455: error: 'OSAtomicCompareAndSwapPtrBarrier' was not declared in this scope Also, is there an easy way to force the bootstrap jdk to be compiled as Java 5? It seem to compile some of the classes as Java 7 and some based on BOOT_SOURCE_LANGUAGE_VERSION BOOT_TARGET_CLASS_VERSION. I had to define TARGET_CLASS_VERSION, SOURCE_LANGUAGE_VERSION and SOURCE_CLASS_VERSION to force the version to java 5. Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20091203/7138a060/attachment.html From landonf at plausible.coop Wed Dec 2 21:30:56 2009 From: landonf at plausible.coop (Landon Fuller) Date: Wed, 2 Dec 2009 21:30:56 -0800 Subject: Extra Zero/Shark patches for review In-Reply-To: <20091130163852.GA57509@misty.eyesbeyond.com> References: <20091120030846.GA14602@misty.eyesbeyond.com> <20091120032208.A852D5654E@rebar.astron.com> <20091120162750.GA22059@misty.eyesbeyond.com> <4B0B5698.3020706@intricatesoftware.com> <20091125072208.GA16783@misty.eyesbeyond.com> <20091126022912.GA40138@misty.eyesbeyond.com> <2B3DED3E-4E60-4A42-BA34-E342A91D67EE@plausible.coop> <061B8A47-6453-46B1-A69F-67FCCA62A1FC@plausible.coop> <20091130163852.GA57509@misty.eyesbeyond.com> Message-ID: On Nov 30, 2009, at 8:38 AM, Greg Lewis wrote: > That's pretty much what I did for sparc64. There were a couple of issues. > > 1. You need an extra script to do ant since the openjdk7 build uses that. > I don't recall the jdk16 build needing it. That's trivial to add. > > 2. Parts of the build where it generated source didn't always seem to work > (produced files that were truncating or the like). I suspect this has > something to do with the redirection it uses. I ended up using a lot of > generated source from a build on a different machine. > > FWIW. > > I suspect you can hack away on this and get ppc up and running though :). With some munging I was able to get a semi-functional bootstrap VM built using Havard's scripts, and then use that to build a proper second stage bootstrap. The second stage built openjdk natively just fine, and the result seems to work in my very limited testing: landonf at onefish:~/openjdk-ppc/bsd-port> ./build/bsd-ppc/j2sdk-image/bin/java -version openjdk version "1.7.0-internal" OpenJDK Runtime Environment (build 1.7.0-internal-landonf_2009_12_02_14_21-b00) OpenJDK Zero VM (build 17.0-b05, interpreted mode) Once I have some more free time (probably this weekend) I have a few minor PPC fixes I'll be committing, and I'll plan on posting binaries and instructions to make bootstrapping a bit easier. -landonf From landonf at plausible.coop Wed Dec 2 21:56:08 2009 From: landonf at plausible.coop (Landon Fuller) Date: Wed, 2 Dec 2009 21:56:08 -0800 Subject: IcedTea 1.12 On OS X Tiger PPC In-Reply-To: References: Message-ID: <8052D142-CA16-4AF1-8B07-E5D0DA2059E8@plausible.coop> On Dec 2, 2009, at 9:14 PM, Michael Franz wrote: > Hi, > > I have been able to get to a certain point building on OS X Tiger. I am getting the following errors. I am not sure if they are related to ppc or Tiger. > /Users/mfranz/developer/icedtea-1.12/openjdk-boot/hotspot/src/os_cpu/bsd_zero/vm/atomic_bsd_zero.inline.hpp: In function 'unsigned int atomic_add_int_nv(volatile unsigned int*, int)': > /Users/mfranz/developer/icedtea-1.12/openjdk-boot/hotspot/src/os_cpu/bsd_zero/vm/atomic_bsd_zero.inline.hpp:390: error: invalid conversion from 'volatile int32_t*' to 'int32_t*' > /Users/mfranz/developer/icedtea-1.12/openjdk-boot/hotspot/src/os_cpu/bsd_zero/vm/atomic_bsd_zero.inline.hpp:390: error: initializing argument 2 of 'int32_t OSAtomicAdd32Barrier(int32_t, int32_t*)' It looks like the prototypes changed between Tiger and Leopard: 10.4.11-ppc: http://www.opensource.apple.com/source/Libc/Libc-391.2.10/include/libkern/OSAtomic.h 10.5: http://www.opensource.apple.com/source/Libc/Libc-498.1.7/include/libkern/OSAtomic.h -landonf From gnu_andrew at member.fsf.org Thu Dec 3 02:16:22 2009 From: gnu_andrew at member.fsf.org (Andrew John Hughes) Date: Thu, 3 Dec 2009 10:16:22 +0000 Subject: IcedTea 1.12 On OS X Tiger PPC In-Reply-To: References: Message-ID: <17c6771e0912030216w37dbe147l2deadc2066fc4401@mail.gmail.com> > > Also, is there an easy way to force the bootstrap jdk to be compiled as Java > 5?? It seem to compile some of the classes as Java 7 and some based on > BOOT_SOURCE_LANGUAGE_VERSION BOOT_TARGET_CLASS_VERSION.? I had to define > TARGET_CLASS_VERSION, SOURCE_LANGUAGE_VERSION and > SOURCE_CLASS_VERSION to force the version to java 5. > > Michael > > > > > Bootstrap classes are compiled to 6 and others to 7. 5 is not supported as a bootstrap JDK for 7. -- Andrew :-) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) Support Free Java! Contribute to GNU Classpath and the OpenJDK http://www.gnu.org/software/classpath http://openjdk.java.net PGP Key: 94EFD9D8 (http://subkeys.pgp.net) Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8 From mvfranz at gmail.com Thu Dec 3 04:13:59 2009 From: mvfranz at gmail.com (Michael Franz) Date: Thu, 3 Dec 2009 07:13:59 -0500 Subject: IcedTea 1.12 On OS X Tiger PPC In-Reply-To: <17c6771e0912030216w37dbe147l2deadc2066fc4401@mail.gmail.com> References: <17c6771e0912030216w37dbe147l2deadc2066fc4401@mail.gmail.com> Message-ID: On Thu, Dec 3, 2009 at 5:16 AM, Andrew John Hughes < gnu_andrew at member.fsf.org> wrote: > > > > Also, is there an easy way to force the bootstrap jdk to be compiled as > Java > > 5? It seem to compile some of the classes as Java 7 and some based on > > BOOT_SOURCE_LANGUAGE_VERSION BOOT_TARGET_CLASS_VERSION. I had to define > > TARGET_CLASS_VERSION, SOURCE_LANGUAGE_VERSION and > > SOURCE_CLASS_VERSION to force the version to java 5. > > > > Michael > > > > Bootstrap classes are compiled to 6 and others to 7. 5 is not > supported as a bootstrap JDK for 7. > Is gcj equivalent to 6, or does it not care about the class version? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20091203/3e90651f/attachment.html From landonf at bikemonkey.org Sat Dec 5 15:43:11 2009 From: landonf at bikemonkey.org (landonf at bikemonkey.org) Date: Sat, 05 Dec 2009 23:43:11 +0000 Subject: hg: bsd-port/bsd-port/corba: Make the following ARCH and ARCH_DATA_MODEL changes for BSD: Message-ID: <20091205234314.B445041478@hg.openjdk.java.net> Changeset: 76c434515fcd Author: Landon Fuller Date: 2009-12-05 15:37 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/corba/rev/76c434515fcd Make the following ARCH and ARCH_DATA_MODEL changes for BSD: If the machine architecture is "Power Macintosh", set ARCH to ppc. If the ARCH is ppc, set ARCH_DATA_MODEL to 32. ! make/common/shared/Platform.gmk From landonf at bikemonkey.org Sat Dec 5 15:43:30 2009 From: landonf at bikemonkey.org (landonf at bikemonkey.org) Date: Sat, 05 Dec 2009 23:43:30 +0000 Subject: hg: bsd-port/bsd-port/jdk: Make the following ARCH and ARCH_DATA_MODEL changes for BSD: Message-ID: <20091205234355.304434147A@hg.openjdk.java.net> Changeset: 979a4a748014 Author: Landon Fuller Date: 2009-12-05 15:38 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/jdk/rev/979a4a748014 Make the following ARCH and ARCH_DATA_MODEL changes for BSD: If the machine architecture is "Power Macintosh", set ARCH to ppc. If the ARCH is ppc, set ARCH_DATA_MODEL to 32. ! make/common/shared/Platform.gmk From glewis at eyesbeyond.com Sun Dec 6 12:46:33 2009 From: glewis at eyesbeyond.com (glewis at eyesbeyond.com) Date: Sun, 06 Dec 2009 20:46:33 +0000 Subject: hg: bsd-port/bsd-port/hotspot: . Fix NetBSD detection. Message-ID: <20091206204640.1ED384160A@hg.openjdk.java.net> Changeset: db03d49dce25 Author: glewis at sol.eyesbeyond.com Date: 2009-12-06 12:45 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/hotspot/rev/db03d49dce25 . Fix NetBSD detection. Submitted by: Christos Zoulas ! make/bsd/makefiles/zeroshark.make From ray at ganymede.org Thu Dec 10 09:01:32 2009 From: ray at ganymede.org (Ray Kiddy) Date: Thu, 10 Dec 2009 09:01:32 -0800 Subject: building (or not) OpenJDK 7 on Mac OS X Message-ID: I just wanted to update build people on this issue. There are pages on the wiki for building on Mac OS X 10.5.8 and on Snow Leopard. See the "Building from source" section of http://wikis.sun.com/display/OpenJDK/BSDPort . I have updated http://wikis.sun.com/display/OpenJDK/Darwin9Build with information from an external post of Landon Fuller's. (FYI, I checked with him about the copying and he was ok with it.) Since I am not using Snow Leopard, I am leaving that page to someone else. If anyone _can_ build OpenJDK 1.7 on a 10.5 system, please share information about how they this is accomplished. I particularly like the way Landon structured his page. For each separate requirement, the page says "you need this", then "do this (or this or this)", and then "if that worked, you will/should see this." I have been working with other build system, such as for Mozilla, and the doc often leaves out that last step. So, if someone can build, can they report what they do and what they then see? I am willing to share my build logs (http://www.wykiwyk.com/openjdk/buildLogs/ ), but at this point I can only demonstrate how not to succeed. Unfortunately, it is easy to find info from people like me, who cannot build. Is it just that the people who can build are silent? It would be great if, one day, we could go to http://openjdk.java.net/install/ and see Mac OS X binaries to install from there, in addition to the Solaris and Linux binaries. Making the BSD-Port more generally buildable will probably help that. As the largest installed base of Unix systems on the planet, Mac OS X can help the OpenJDK effort if there is some support. Please post or update the wiki with any suggestions or questions. cheers - ray refs: http://wikis.sun.com/display/OpenJDK/BSDPort http://wikis.sun.com/display/OpenJDK/Darwin9Build http://confluence.concord.org/display/CCTR/Build+OpenJDK+Java+1.7.0+on+Mac+OS+X+10.5 http://www.javarants.com/2009/11/01/building-openjdk-1-7-0-for-mac-os-x-10-6-snow-leopard/ http://openjdk.java.net/install/ FYI, my particular build error is this. I suspect I am missing some minor little environment variable, but it is not obvious which. -rrk /bin/mkdir -p /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/ java/java.lang/java/obj rm -f /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/java/ java.lang/java/obj/.class.headers.i586 # Running javah: /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-i586/bin/javah - bootclasspath /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/ classes -d /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/ java/java.lang/java/CClassHeaders/ \ java.lang.Object java.lang.Class java.lang.Compiler java.lang.String java.lang.Thread java.lang.ThreadGroup java.lang.StrictMath java.lang.Number java.lang.Byte java.lang.Short java.lang.Integer java.lang.Long java.lang.Float java.lang.Double java.lang.Boolean java.lang.Character java.lang.System java.lang.ClassLoader java.lang.Runtime java.lang.SecurityManager java.lang.Shutdown java.lang.Package java.lang.ref.Finalizer java.lang.reflect.AccessibleObject java.lang.reflect.Field java.lang.reflect.Method java.lang.reflect.Constructor java.lang.reflect.InvocationTargetException java.lang.reflect.Array java.lang.reflect.Proxy java.security.AccessController java.util.Date java.util.TimeZone java.util.ResourceBundle java.util.concurrent.atomic.AtomicLong java.util.prefs.FileSystemPreferences java.io.Console java.io.FileDescriptor java.io.InputStream java.io.FileInputStream java.io.FileOutputStream java.io.PrintStream java.io.RandomAccessFile java.io.DataInputStream java.io.DataOutputStream java.io.File java.io.FileSystem java.io.UnixFileSystem java.io.ObjectInputStream java.io.ObjectOutputStream java.io.ObjectStreamClass java.lang.Throwable java.lang.NoClassDefFoundError java.lang.StringIndexOutOfBoundsException java.lang.OutOfMemoryError sun.misc.Version sun.misc.VM sun.misc.VMSupport sun.misc.Signal sun.misc.MessageUtils sun.misc.NativeSignalHandler sun.misc.GC sun.reflect.ConstantPool sun.reflect.NativeConstructorAccessorImpl sun.reflect.NativeMethodAccessorImpl sun.reflect.Reflection java.lang.ClassLoader\$NativeLibrary make[4]: /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-i586/bin/ javah: Command not found make[4]: *** [/Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/ java/java.lang/java/obj/.class.headers.i586] Error 127 make[3]: *** [all] Error 1 make[2]: *** [all] Error 1 make[1]: *** [jdk-build] Error 2 make: *** [build_product_image] Error 2 From gnu_andrew at member.fsf.org Thu Dec 10 09:05:30 2009 From: gnu_andrew at member.fsf.org (Andrew John Hughes) Date: Thu, 10 Dec 2009 17:05:30 +0000 Subject: building (or not) OpenJDK 7 on Mac OS X In-Reply-To: References: Message-ID: <17c6771e0912100905v433ad49ch413d571764427ec0@mail.gmail.com> 2009/12/10 Ray Kiddy : > > I just wanted to update build people on this issue. There are pages on the > wiki for building on Mac OS X 10.5.8 and on Snow Leopard. See the "Building > from source" section of http://wikis.sun.com/display/OpenJDK/BSDPort. I have > updated http://wikis.sun.com/display/OpenJDK/Darwin9Build with information > from an external post of Landon Fuller's. (FYI, I checked with him about the > copying and he was ok with it.) Since I am not using Snow Leopard, I am > leaving that page to someone else. > > If anyone _can_ build OpenJDK 1.7 on a 10.5 system, please share information > about how they this is accomplished. I particularly like the way Landon > structured his page. For each separate requirement, the page says "you need > this", then "do this (or this or this)", and then "if that worked, you > will/should see this." I have been working with other build system, such as > for Mozilla, and the doc often leaves out that last step. So, if someone can > build, can they report what they do and what they then see? I am willing to > share my build logs (http://www.wykiwyk.com/openjdk/buildLogs/), but at this > point I can only demonstrate how not to succeed. Unfortunately, it is easy > to find info from people like me, who cannot build. Is it just that the > people who can build are silent? > > It would be great if, one day, we could go to > http://openjdk.java.net/install/?and see Mac OS X binaries to install from > there, in addition to the Solaris and Linux binaries. Making the BSD-Port > more generally buildable will probably help that. As the largest installed > base of Unix systems on the planet, Mac OS X can help the OpenJDK effort if > there is some support. > > Please post or update the wiki with any suggestions or questions. > > cheers - ray > > ? ? ? ?refs: > > ? ? ? ?http://wikis.sun.com/display/OpenJDK/BSDPort > ? ? ? ?http://wikis.sun.com/display/OpenJDK/Darwin9Build > > ?http://confluence.concord.org/display/CCTR/Build+OpenJDK+Java+1.7.0+on+Mac+OS+X+10.5 > > ?http://www.javarants.com/2009/11/01/building-openjdk-1-7-0-for-mac-os-x-10-6-snow-leopard/ > ? ? ? ?http://openjdk.java.net/install/ > > ? ? ? ?FYI, my particular build error is this. I suspect I am missing some > minor little environment variable, but it is not obvious which. -rrk > > /bin/mkdir -p > /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/java/java.lang/java/obj > rm -f > /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/java/java.lang/java/obj/.class.headers.i586 > # Running javah: > /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-i586/bin/javah > -bootclasspath /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/classes > -d > /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/java/java.lang/java/CClassHeaders/ > \ > ? ? ? ? ? ? ? ?java.lang.Object java.lang.Class java.lang.Compiler > java.lang.String java.lang.Thread java.lang.ThreadGroup java.lang.StrictMath > java.lang.Number java.lang.Byte java.lang.Short java.lang.Integer > java.lang.Long java.lang.Float java.lang.Double java.lang.Boolean > java.lang.Character java.lang.System java.lang.ClassLoader java.lang.Runtime > java.lang.SecurityManager java.lang.Shutdown java.lang.Package > java.lang.ref.Finalizer java.lang.reflect.AccessibleObject > java.lang.reflect.Field java.lang.reflect.Method > java.lang.reflect.Constructor java.lang.reflect.InvocationTargetException > java.lang.reflect.Array java.lang.reflect.Proxy > java.security.AccessController java.util.Date java.util.TimeZone > java.util.ResourceBundle java.util.concurrent.atomic.AtomicLong > java.util.prefs.FileSystemPreferences java.io.Console java.io.FileDescriptor > java.io.InputStream java.io.FileInputStream java.io.FileOutputStream > java.io.PrintStream java.io.RandomAccessFile java.io.DataInputStream > java.io.DataOutputStream java.io.File java.io.FileSystem > java.io.UnixFileSystem java.io.ObjectInputStream java.io.ObjectOutputStream > java.io.ObjectStreamClass java.lang.Throwable java.lang.NoClassDefFoundError > java.lang.StringIndexOutOfBoundsException java.lang.OutOfMemoryError > sun.misc.Version sun.misc.VM sun.misc.VMSupport sun.misc.Signal > sun.misc.MessageUtils sun.misc.NativeSignalHandler sun.misc.GC > sun.reflect.ConstantPool sun.reflect.NativeConstructorAccessorImpl > sun.reflect.NativeMethodAccessorImpl sun.reflect.Reflection > java.lang.ClassLoader\$NativeLibrary > make[4]: /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-i586/bin/javah: > Command not found > make[4]: *** > [/Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/java/java.lang/java/obj/.class.headers.i586] > Error 127 > make[3]: *** [all] Error 1 > make[2]: *** [all] Error 1 > make[1]: *** [jdk-build] Error 2 > make: *** [build_product_image] Error 2 > > Sounds like a bug from b74. Is your bsd-port tree up-to-date? You can work around it by setting ALT_JDK_IMPORT_PATH to the same as ALT_BOOTDIR but you shouldn't need to do so generally. -- Andrew :-) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) Support Free Java! Contribute to GNU Classpath and the OpenJDK http://www.gnu.org/software/classpath http://openjdk.java.net PGP Key: 94EFD9D8 (http://subkeys.pgp.net) Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8 From ray at ganymede.org Sun Dec 13 16:04:09 2009 From: ray at ganymede.org (Ray Kiddy) Date: Sun, 13 Dec 2009 16:04:09 -0800 Subject: install locations for OpenJDK 7... Message-ID: After I moved (and added to) Landon's instructions for building OpenJDK 7 on Mac OS X 10.5 (http://wikis.sun.com/display/OpenJDK/Darwin9Build ), I moved the "install this version as current" info to another page. Right now, this is at http://wikis.sun.com/display/OpenJDK/Switching+Java+Versions+on+Mac+OS+X . Is there any interest in packaging the OpenJDK 7 binaries into a real Mac OS X-compatible location? One can put them somewhere under /usr and make sure that /usr/bin/java points to the right version and this is good for server-ish things, but there may be reasons to install the OpenJDK 7 binaries under /System/Library/Frameworks/JavaVM.framework/ Versions/. There is a whole other kind of directory structure under there. I believe that if we want to have regular Cocoa applications that use java to use the OpenJDK 7 VM, it would have to be installed in the JavaVM.framework.... Or do we care? Or has this been slated to be done at some future time? Now that I got past my build issues, I looked at the info about running tests. I can see what might be needed to run jtreg. Ha ha. Yeah. Like anyone would want to sign up for that.... Perhaps there are bsdport-specific tools for invoking whatever tests can be run? Yes? No? Well, anyway, now I have the JDK built. I can experiment with my server-based frameworks. But if there is any kind of path to assist testing on Mac OS X, I would be interested in hearing about it. And I would not be surprised if there is some info that can go to the wiki. cheers - ray From landonf at plausible.coop Sun Dec 13 16:15:58 2009 From: landonf at plausible.coop (Landon Fuller) Date: Sun, 13 Dec 2009 16:15:58 -0800 Subject: install locations for OpenJDK 7... In-Reply-To: References: Message-ID: On Dec 13, 2009, at 4:04 PM, Ray Kiddy wrote: > Is there any interest in packaging the OpenJDK 7 binaries into a real > Mac OS X-compatible location? One can put them somewhere under /usr > and make sure that /usr/bin/java points to the right version and this > is good for server-ish things, but there may be reasons to install the > OpenJDK 7 binaries under /System/Library/Frameworks/JavaVM.framework/ > Versions/. There is a whole other kind of directory structure under > there. I believe that if we want to have regular Cocoa applications > that use java to use the OpenJDK 7 VM, it would have to be installed > in the JavaVM.framework.... It's possible to register a standard VM (installed at any location) with the Mac OS X Java tools such that you can select it as a preferred VM. I'm not sure if this is documented anywhere -- that's something Mike Swingler (CC'd) probably has more information on. -landonf From swingler at apple.com Sun Dec 13 17:12:16 2009 From: swingler at apple.com (Mike Swingler) Date: Sun, 13 Dec 2009 17:12:16 -0800 Subject: install locations for OpenJDK 7... In-Reply-To: References: Message-ID: <0C870EE2-A714-443A-A7B3-59B402EF62E7@apple.com> On Dec 13, 2009, at 4:15 PM, Landon Fuller wrote: > On Dec 13, 2009, at 4:04 PM, Ray Kiddy wrote: > >> Is there any interest in packaging the OpenJDK 7 binaries into a real >> Mac OS X-compatible location? One can put them somewhere under /usr >> and make sure that /usr/bin/java points to the right version and this >> is good for server-ish things, but there may be reasons to install the >> OpenJDK 7 binaries under /System/Library/Frameworks/JavaVM.framework/ >> Versions/. There is a whole other kind of directory structure under >> there. I believe that if we want to have regular Cocoa applications >> that use java to use the OpenJDK 7 VM, it would have to be installed >> in the JavaVM.framework.... > > It's possible to register a standard VM (installed at any location) with the Mac OS X Java tools such that you can select it as a preferred VM. > > I'm not sure if this is documented anywhere -- that's something Mike Swingler (CC'd) probably has more information on. There is primitive support in Mac OS X 10.6 and Java for Mac OS X 10.5 Update 6 to detect 3rd party JVMs installed in ~/Library/Java/JavaVirtualMachines, and /Library/Java/JavaVirtualMachines. The JVM has to be a bundle, with a Contents/Home/bin directory, a primary executable (usually a symlink to libjava.jnilib or libjava.dylib). It also requires an Info.plist similar to the Apple-provided JVMs, but the current OpenJDK should only advertise itself as being able to run command-line, since Applets, Web Start, and double-clickable apps will not work correctly right now. If you could provide me with a link to built OpenJDK 7 you are using as a reference, I could provide a set of steps to assemble it into a JDK bundle that would be recognized by Java Preferences and the /usr/libexec/java_home machinery. Cheers, Mike Swingler Java Runtime Engineer Apple Inc. From dgreen99 at gmail.com Sun Dec 13 17:24:55 2009 From: dgreen99 at gmail.com (David Green) Date: Sun, 13 Dec 2009 17:24:55 -0800 Subject: install locations for OpenJDK 7... In-Reply-To: References: Message-ID: <535803b00912131724j4b709266rf5c675a70167bd1e@mail.gmail.com> It would be great to be able to run Eclipse with JDK 7. Currently Eclipse can run on JDK 7 however the eclipse launcher executable can only launch it with a Java that has the Apple framework layout. David On Sunday, December 13, 2009, Ray Kiddy wrote: > > After I moved (and added to) Landon's instructions for building > OpenJDK 7 on Mac OS X 10.5 (http://wikis.sun.com/display/OpenJDK/Darwin9Build > ), I moved the "install this version as current" info to another page. > Right now, this is at http://wikis.sun.com/display/OpenJDK/Switching+Java+Versions+on+Mac+OS+X > . > > Is there any interest in packaging the OpenJDK 7 binaries into a real > Mac OS X-compatible location? One can put them somewhere under /usr > and make sure that /usr/bin/java points to the right version and this > is good for server-ish things, but there may be reasons to install the > OpenJDK 7 binaries under /System/Library/Frameworks/JavaVM.framework/ > Versions/. There is a whole other kind of directory structure under > there. I believe that if we want to have regular Cocoa applications > that use java to use the OpenJDK 7 VM, it would have to be installed > in the JavaVM.framework.... > > Or do we care? Or has this been slated to be done at some future time? > > Now that I got past my build issues, I looked at the info about > running tests. I can see what might be needed to run jtreg. Ha ha. > Yeah. Like anyone would want to sign up for that.... > > Perhaps there are bsdport-specific tools for invoking whatever tests > can be run? Yes? No? > > Well, anyway, now I have the JDK built. I can experiment with my > server-based frameworks. But if there is any kind of path to assist > testing on Mac OS X, I would be interested in hearing about it. And I > would not be surprised if there is some info that can go to the wiki. > > cheers - ray > > > From swingler at apple.com Sun Dec 13 17:31:30 2009 From: swingler at apple.com (Mike Swingler) Date: Sun, 13 Dec 2009 17:31:30 -0800 Subject: install locations for OpenJDK 7... In-Reply-To: <535803b00912131724j4b709266rf5c675a70167bd1e@mail.gmail.com> References: <535803b00912131724j4b709266rf5c675a70167bd1e@mail.gmail.com> Message-ID: Even if JDK 7 can be introduced into the Mac OS X Java version system, Eclipse will still have to modify their launcher to use it. Last I recall, they were still hard coding paths into /System/Library/Frameworks/JavaVM.framework/... I can't say it enough - to get the "best" $JAVA_HOME on the Mac, use: % /usr/libexec/java_home It takes version and architecture requirements as command line parameters - check it out. Best regards, Mike Swingler Java Runtime Engineer Apple Inc. On Dec 13, 2009, at 5:24 PM, David Green wrote: > It would be great to be able to run Eclipse with JDK 7. Currently > Eclipse can run on JDK 7 however the eclipse launcher executable can > only launch it with a Java that has the Apple framework layout. > > David > > On Sunday, December 13, 2009, Ray Kiddy wrote: >> >> After I moved (and added to) Landon's instructions for building >> OpenJDK 7 on Mac OS X 10.5 (http://wikis.sun.com/display/OpenJDK/Darwin9Build >> ), I moved the "install this version as current" info to another page. >> Right now, this is at http://wikis.sun.com/display/OpenJDK/Switching+Java+Versions+on+Mac+OS+X >> . >> >> Is there any interest in packaging the OpenJDK 7 binaries into a real >> Mac OS X-compatible location? One can put them somewhere under /usr >> and make sure that /usr/bin/java points to the right version and this >> is good for server-ish things, but there may be reasons to install the >> OpenJDK 7 binaries under /System/Library/Frameworks/JavaVM.framework/ >> Versions/. There is a whole other kind of directory structure under >> there. I believe that if we want to have regular Cocoa applications >> that use java to use the OpenJDK 7 VM, it would have to be installed >> in the JavaVM.framework.... >> >> Or do we care? Or has this been slated to be done at some future time? >> >> Now that I got past my build issues, I looked at the info about >> running tests. I can see what might be needed to run jtreg. Ha ha. >> Yeah. Like anyone would want to sign up for that.... >> >> Perhaps there are bsdport-specific tools for invoking whatever tests >> can be run? Yes? No? >> >> Well, anyway, now I have the JDK built. I can experiment with my >> server-based frameworks. But if there is any kind of path to assist >> testing on Mac OS X, I would be interested in hearing about it. And I >> would not be surprised if there is some info that can go to the wiki. >> >> cheers - ray >> >> >> > From ray at ganymede.org Mon Dec 14 08:07:58 2009 From: ray at ganymede.org (Ray Kiddy) Date: Mon, 14 Dec 2009 08:07:58 -0800 Subject: install locations for OpenJDK 7... In-Reply-To: <0C870EE2-A714-443A-A7B3-59B402EF62E7@apple.com> References: <0C870EE2-A714-443A-A7B3-59B402EF62E7@apple.com> Message-ID: <19C17206-6BB7-4CC0-8F73-D8FCE2E8B261@ganymede.org> On Dec 13, 2009, at 5:12 PM, Mike Swingler wrote: > On Dec 13, 2009, at 4:15 PM, Landon Fuller wrote: > >> On Dec 13, 2009, at 4:04 PM, Ray Kiddy wrote: >> >>> Is there any interest in packaging the OpenJDK 7 binaries into a >>> real >>> Mac OS X-compatible location? One can put them somewhere under /usr >>> and make sure that /usr/bin/java points to the right version and >>> this >>> is good for server-ish things, but there may be reasons to install >>> the >>> OpenJDK 7 binaries under /System/Library/Frameworks/ >>> JavaVM.framework/ >>> Versions/. There is a whole other kind of directory structure under >>> there. I believe that if we want to have regular Cocoa applications >>> that use java to use the OpenJDK 7 VM, it would have to be installed >>> in the JavaVM.framework.... >> >> It's possible to register a standard VM (installed at any location) >> with the Mac OS X Java tools such that you can select it as a >> preferred VM. >> >> I'm not sure if this is documented anywhere -- that's something >> Mike Swingler (CC'd) probably has more information on. > > There is primitive support in Mac OS X 10.6 and Java for Mac OS X > 10.5 Update 6 to detect 3rd party JVMs installed in ~/Library/Java/ > JavaVirtualMachines, and /Library/Java/JavaVirtualMachines. The JVM > has to be a bundle, with a Contents/Home/bin directory, a primary > executable (usually a symlink to libjava.jnilib or libjava.dylib). > It also requires an Info.plist similar to the Apple-provided JVMs, > but the current OpenJDK should only advertise itself as being able > to run command-line, since Applets, Web Start, and double-clickable > apps will not work correctly right now. > > If you could provide me with a link to built OpenJDK 7 you are using > as a reference, I could provide a set of steps to assemble it into a > JDK bundle that would be recognized by Java Preferences and the /usr/ > libexec/java_home machinery. > > Cheers, > Mike Swingler > Java Runtime Engineer > Apple Inc. Hey Mike - Good to hear from you. Thanks for the offer to help. Tell Francois and the guys I said hey. So, there are recently updated instructions for building OpenJDK 7 on 10.5 on a wiki page. See: http://wikis.sun.com/display/OpenJDK/Darwin9Build If you go to the BSDPort wiki page, there is a link (external to the wiki) to instructions for building this on Snow Leopard. I have not done the build on 10.6, so I cannot speak to it. But nobody has complained on the mailing list. http://wikis.sun.com/display/OpenJDK/BSDPort I noticed that, in my installed build products, the OpenJDK bin directory does not contain everything, for example, that is in /System/ Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands, so there will be some mis-matches to deal with. If you want to see what is produced by the build of OpenJDK 7 on 10.5 at this time, I did a "find -ls" in the products directory and that is at http://www.wykiwyk.com/openjdk/openjdk7_ToC.txt. cheers - ray From landonf at bikemonkey.org Mon Dec 14 14:31:59 2009 From: landonf at bikemonkey.org (landonf at bikemonkey.org) Date: Mon, 14 Dec 2009 22:31:59 +0000 Subject: hg: bsd-port/bsd-port/jdk: On Mac OS X, use DYLD_LIBRARY_PATH instead of DYLD_FALLBACK_LIBRARY_PATH. Message-ID: <20091214223222.DBCA041F8D@hg.openjdk.java.net> Changeset: f66c8cc87047 Author: Landon Fuller Date: 2009-12-14 13:28 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/jdk/rev/f66c8cc87047 On Mac OS X, use DYLD_LIBRARY_PATH instead of DYLD_FALLBACK_LIBRARY_PATH. This matches Soylatte's implementation and fixes 'gamma' when using OpenJDK as a bootstrap VM when building openjdk on Mac OS X. This will result in OpenJDK's libraries taking precedence; however, this issue already occured in reverse with DYLD_FALLBACK_LIBRARY_PATH in that Apple's libJPEG.dylib was preferred over the JDK libjpeg.dylib. The library search path mechanism will need to be revisited in the future, and the use of rpath or similar explored. ! src/solaris/bin/java_md.c From glewis at eyesbeyond.com Mon Dec 14 23:39:13 2009 From: glewis at eyesbeyond.com (Greg Lewis) Date: Mon, 14 Dec 2009 23:39:13 -0800 Subject: FreeBSD/sparc64 port Message-ID: <20091215073913.GA45006@misty.eyesbeyond.com> FWIW, I did eventually get the sparc64 port going on FreeBSD using Zero. I still think there are problems on SMP (I ended up compiling a UP kernel) but its good enough on a UP system to bootstrap the build with at least (albeit slowly). Tarball at http://people.freebsd.org/~glewis/openjdk7-freebsd-8.0-sparc64.tar.gz I'm now keen to fire up my ia64, although I think Christos might have tried it under ia64 already? Maybe my alpha... -- Greg Lewis Email : glewis at eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis at FreeBSD.org From christos at zoulas.com Tue Dec 15 05:52:43 2009 From: christos at zoulas.com (Christos Zoulas) Date: Tue, 15 Dec 2009 08:52:43 -0500 Subject: FreeBSD/sparc64 port In-Reply-To: <20091215073913.GA45006@misty.eyesbeyond.com> from Greg Lewis (Dec 14, 11:39pm) Message-ID: <20091215135243.DF87C5654E@rebar.astron.com> On Dec 14, 11:39pm, glewis at eyesbeyond.com (Greg Lewis) wrote: -- Subject: FreeBSD/sparc64 port | FWIW, I did eventually get the sparc64 port going on FreeBSD using Zero. | | I still think there are problems on SMP (I ended up compiling a UP kernel) | but its good enough on a UP system to bootstrap the build with at least | (albeit slowly). | | Tarball at | | http://people.freebsd.org/~glewis/openjdk7-freebsd-8.0-sparc64.tar.gz | | I'm now keen to fire up my ia64, although I think Christos might have | tried it under ia64 already? Maybe my alpha... No, I have done zero (sorry for the pun) work on this. I am behind in too many other projects :-( christos From stephen.bannasch at deanbrook.org Tue Dec 15 06:47:21 2009 From: stephen.bannasch at deanbrook.org (Stephen Bannasch) Date: Tue, 15 Dec 2009 09:47:21 -0500 Subject: building (or not) OpenJDK 7 on Mac OS X In-Reply-To: <17c6771e0912100905v433ad49ch413d571764427ec0@mail.gmail.com> References: <17c6771e0912100905v433ad49ch413d571764427ec0@mail.gmail.com> Message-ID: At 5:05 PM +0000 12/10/09, Andrew John Hughes wrote: >2009/12/10 Ray Kiddy : >> >> I just wanted to update build people on this issue. There are pages on the >> wiki for building on Mac OS X 10.5.8 and on Snow Leopard. See the "Building >> from source" section of http://wikis.sun.com/display/OpenJDK/BSDPort. I have >> updated http://wikis.sun.com/display/OpenJDK/Darwin9Build with information >> from an external post of Landon Fuller's. (FYI, I checked with him about the >> copying and he was ok with it.) Since I am not using Snow Leopard, I am >> leaving that page to someone else. >> >> If anyone _can_ build OpenJDK 1.7 on a 10.5 system, please share information > > about how they this is accomplished. Here's a wiki page I wrote a while ago about how to build openjdk on mac os 10.5: https://confluence.concord.org/display/CCTR/Build+OpenJDK+Java+1.7.0+on+Mac+OS+X+10.5 This is how I am building openjdk and the mlvm patches now: http://gist.github.com/243072 From ray at ganymede.org Tue Dec 15 09:39:29 2009 From: ray at ganymede.org (Ray Kiddy) Date: Tue, 15 Dec 2009 09:39:29 -0800 Subject: building (or not) OpenJDK 7 on Mac OS X In-Reply-To: References: <17c6771e0912100905v433ad49ch413d571764427ec0@mail.gmail.com> Message-ID: <4B75B6F4-9832-483B-8196-DE926C87E90B@ganymede.org> On Dec 15, 2009, at 6:47 AM, Stephen Bannasch wrote: > At 5:05 PM +0000 12/10/09, Andrew John Hughes wrote: >> 2009/12/10 Ray Kiddy : >>> >>> I just wanted to update build people on this issue. There are >>> pages on the >>> wiki for building on Mac OS X 10.5.8 and on Snow Leopard. See the >>> "Building >>> from source" section of http://wikis.sun.com/display/OpenJDK/ >>> BSDPort. I have >>> updated http://wikis.sun.com/display/OpenJDK/Darwin9Build with >>> information >>> from an external post of Landon Fuller's. (FYI, I checked with him >>> about the >>> copying and he was ok with it.) Since I am not using Snow Leopard, >>> I am >>> leaving that page to someone else. >>> >>> If anyone _can_ build OpenJDK 1.7 on a 10.5 system, please share >>> information >>> about how they this is accomplished. > > Here's a wiki page I wrote a while ago about how to build openjdk on > mac os 10.5: > > https://confluence.concord.org/display/CCTR/Build+OpenJDK+Java+1.7.0+on+Mac+OS+X+10.5 > > This is how I am building openjdk and the mlvm patches now: > > http://gist.github.com/243072 > Thanks. I have gotten the build to work. One of my issues is that I have removed X11 from my system a while back. I updated the wiki page (http://wikis.sun.com/display/OpenJDK/Darwin9Build ) with the information, adding a few more things to do to recover from errors. It is nice having this all in one script, as in your second link. Perhaps there is a way to parameterize your script and make it more general. And if you want to add to the wiki, as well, that would probably be helpful. I'm on to using the VM at this point. If you have any info you want to share on how some testing can be accomplished on Mac OS X, I would be interested in hearing about it. cheers - ray From landonf at plausible.coop Wed Dec 16 17:41:45 2009 From: landonf at plausible.coop (Landon Fuller) Date: Wed, 16 Dec 2009 17:41:45 -0800 Subject: Darwin/PPC [was Re: FreeBSD/sparc64 port] In-Reply-To: <20091215073913.GA45006@misty.eyesbeyond.com> References: <20091215073913.GA45006@misty.eyesbeyond.com> Message-ID: On Dec 14, 2009, at 11:39 PM, Greg Lewis wrote: > FWIW, I did eventually get the sparc64 port going on FreeBSD using Zero. > > I still think there are problems on SMP (I ended up compiling a UP kernel) > but its good enough on a UP system to bootstrap the build with at least > (albeit slowly). > > Tarball at > > http://people.freebsd.org/~glewis/openjdk7-freebsd-8.0-sparc64.tar.gz On that note, here is my 10.5/PPC build: http://hg.bikemonkey.org/archive/openjdk7_darwin/openjdk7-macppc-2009-12-16-b4.tar.bz2 The extent of my testing is 'Hello, World' and verifying that the JDK successfully bootstraps. -landonf From ekrichardson at gmail.com Thu Dec 17 12:05:59 2009 From: ekrichardson at gmail.com (Eric Richardson) Date: Thu, 17 Dec 2009 12:05:59 -0800 Subject: Darwin/PPC [was Re: FreeBSD/sparc64 port] In-Reply-To: References: <20091215073913.GA45006@misty.eyesbeyond.com> Message-ID: <860cb0120912171205t5060866cqbe5b2bb7e2b90f5c@mail.gmail.com> Landon, Thanks, I'll give it some testing once I feel better - I'm under the weather now. new-host:bin eric$ ./java -version openjdk version "1.7.0-internal" OpenJDK Runtime Environment (build 1.7.0-internal-landonf_2009_12_16_12_54-b00) OpenJDK Zero VM (build 17.0-b05, interpreted mode) Eric On Wed, Dec 16, 2009 at 5:41 PM, Landon Fuller wrote: > > On Dec 14, 2009, at 11:39 PM, Greg Lewis wrote: > > > FWIW, I did eventually get the sparc64 port going on FreeBSD using Zero. > > > > I still think there are problems on SMP (I ended up compiling a UP > kernel) > > but its good enough on a UP system to bootstrap the build with at least > > (albeit slowly). > > > > Tarball at > > > > http://people.freebsd.org/~glewis/openjdk7-freebsd-8.0-sparc64.tar.gz > > On that note, here is my 10.5/PPC build: > > http://hg.bikemonkey.org/archive/openjdk7_darwin/openjdk7-macppc-2009-12-16-b4.tar.bz2 > > The extent of my testing is 'Hello, World' and verifying that the JDK > successfully bootstraps. > > -landonf > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20091217/2066b44d/attachment.html From swingler at apple.com Thu Dec 17 12:56:06 2009 From: swingler at apple.com (Mike Swingler) Date: Thu, 17 Dec 2009 12:56:06 -0800 Subject: install locations for OpenJDK 7... In-Reply-To: <19C17206-6BB7-4CC0-8F73-D8FCE2E8B261@ganymede.org> References: <0C870EE2-A714-443A-A7B3-59B402EF62E7@apple.com> <19C17206-6BB7-4CC0-8F73-D8FCE2E8B261@ganymede.org> Message-ID: On Dec 14, 2009, at 8:07 AM, Ray Kiddy wrote: > On Dec 13, 2009, at 5:12 PM, Mike Swingler wrote: > >> On Dec 13, 2009, at 4:15 PM, Landon Fuller wrote: >> >>> On Dec 13, 2009, at 4:04 PM, Ray Kiddy wrote: >>> >>>> Is there any interest in packaging the OpenJDK 7 binaries into a real >>>> Mac OS X-compatible location? One can put them somewhere under /usr >>>> and make sure that /usr/bin/java points to the right version and this >>>> is good for server-ish things, but there may be reasons to install the >>>> OpenJDK 7 binaries under /System/Library/Frameworks/JavaVM.framework/ >>>> Versions/. There is a whole other kind of directory structure under >>>> there. I believe that if we want to have regular Cocoa applications >>>> that use java to use the OpenJDK 7 VM, it would have to be installed >>>> in the JavaVM.framework.... >>> >>> It's possible to register a standard VM (installed at any location) with the Mac OS X Java tools such that you can select it as a preferred VM. >>> >>> I'm not sure if this is documented anywhere -- that's something Mike Swingler (CC'd) probably has more information on. >> >> There is primitive support in Mac OS X 10.6 and Java for Mac OS X 10.5 Update 6 to detect 3rd party JVMs installed in ~/Library/Java/JavaVirtualMachines, and /Library/Java/JavaVirtualMachines. The JVM has to be a bundle, with a Contents/Home/bin directory, a primary executable (usually a symlink to libjava.jnilib or libjava.dylib). It also requires an Info.plist similar to the Apple-provided JVMs, but the current OpenJDK should only advertise itself as being able to run command-line, since Applets, Web Start, and double-clickable apps will not work correctly right now. >> >> If you could provide me with a link to built OpenJDK 7 you are using as a reference, I could provide a set of steps to assemble it into a JDK bundle that would be recognized by Java Preferences and the /usr/libexec/java_home machinery. > > Hey Mike - > > Good to hear from you. Thanks for the offer to help. Tell Francois and the guys I said hey. > > So, there are recently updated instructions for building OpenJDK 7 on 10.5 on a wiki page. See: > > http://wikis.sun.com/display/OpenJDK/Darwin9Build > > If you go to the BSDPort wiki page, there is a link (external to the wiki) to instructions for building this on Snow Leopard. I have not done the build on 10.6, so I cannot speak to it. But nobody has complained on the mailing list. > > http://wikis.sun.com/display/OpenJDK/BSDPort > > I noticed that, in my installed build products, the OpenJDK bin directory does not contain everything, for example, that is in /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands, so there will be some mis-matches to deal with. > > If you want to see what is produced by the build of OpenJDK 7 on 10.5 at this time, I did a "find -ls" in the products directory and that is at http://www.wykiwyk.com/openjdk/openjdk7_ToC.txt. So I've finally put together some ad-hoc instructions for creating and OpenJDK bundle that will be detectable by the /usr/bin and /usr/libexec/java_home commands: If you create the following directory: ~/Library/Java/JavaVirtualMachines/ and then create a new bundle directory structure of the form: OpenJDK 7.jdk/ Contents/ Info.plist MacOS/ libjava.dylib -> ../Home/jre/lib/i386/libjava.dylib Home/ with the following Info.plist: CFBundleDevelopmentRegion English CFBundleIdentifier com.example.OpenJDK CFBundleExecutable libjava.dylib CFBundleInfoDictionaryVersion 6.0 CFBundleName OpenJDK 1.7.0 CFBundlePackageType BNDL CFBundleShortVersionString 1.0.0 CFBundleSignature ??? CFBundleVersion 1.0.0 JavaVM JVMCapabilities CommandLine JVMPlatformVersion 1.7 JVMVersion 1.7.0_00 You can then run: % `/usr/libexec/java_home -v 1.7`/bin/java -version And it will execute the new "1.7" version of Java. Cheers, Mike Swingler Java Runtime Engineer Apple Inc. From ekrichardson at gmail.com Sat Dec 19 12:55:55 2009 From: ekrichardson at gmail.com (Eric Richardson) Date: Sat, 19 Dec 2009 12:55:55 -0800 Subject: Darwin/PPC [was Re: FreeBSD/sparc64 port] In-Reply-To: <860cb0120912171205t5060866cqbe5b2bb7e2b90f5c@mail.gmail.com> References: <20091215073913.GA45006@misty.eyesbeyond.com> <860cb0120912171205t5060866cqbe5b2bb7e2b90f5c@mail.gmail.com> Message-ID: <860cb0120912191255p55768086te7038e63ea1a1168@mail.gmail.com> Landon, I tried to start glassfish-v2. I don't know if this is a bit too aggressive but ... Attached is the log which contains the start command with the VM args and other info. Let me know if I can do a more structured test. Eric On Thu, Dec 17, 2009 at 12:05 PM, Eric Richardson wrote: > Landon, > > Thanks, I'll give it some testing once I feel better - I'm under the > weather now. > > new-host:bin eric$ ./java -version > openjdk version "1.7.0-internal" > OpenJDK Runtime Environment (build > 1.7.0-internal-landonf_2009_12_16_12_54-b00) > OpenJDK Zero VM (build 17.0-b05, interpreted mode) > > Eric > > > > On Wed, Dec 16, 2009 at 5:41 PM, Landon Fuller wrote: > >> >> On Dec 14, 2009, at 11:39 PM, Greg Lewis wrote: >> >> > FWIW, I did eventually get the sparc64 port going on FreeBSD using Zero. >> > >> > I still think there are problems on SMP (I ended up compiling a UP >> kernel) >> > but its good enough on a UP system to bootstrap the build with at least >> > (albeit slowly). >> > >> > Tarball at >> > >> > http://people.freebsd.org/~glewis/openjdk7-freebsd-8.0-sparc64.tar.gz >> >> On that note, here is my 10.5/PPC build: >> >> http://hg.bikemonkey.org/archive/openjdk7_darwin/openjdk7-macppc-2009-12-16-b4.tar.bz2 >> >> The extent of my testing is 'Hello, World' and verifying that the JDK >> successfully bootstraps. >> >> -landonf >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20091219/6b09e195/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid247.log Type: application/octet-stream Size: 10127 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20091219/6b09e195/hs_err_pid247.log From ekrichardson at gmail.com Sat Dec 19 14:02:21 2009 From: ekrichardson at gmail.com (Eric Richardson) Date: Sat, 19 Dec 2009 14:02:21 -0800 Subject: Darwin/PPC [was Re: FreeBSD/sparc64 port] In-Reply-To: References: <20091215073913.GA45006@misty.eyesbeyond.com> Message-ID: <860cb0120912191402g74eb2538m1480913e0dd14bf1@mail.gmail.com> I also find that I can't get a simple swing app to work. Any ideas? new-host:eclipsehello eric$ java OrderDetailFrame Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/eric/openjdk/openjdk7-macppc-2009-12-16-b4/jre/lib/ppc/libfontmanager.dylib: dlopen(/Users/eric/openjdk/openjdk7-macppc-2009-12-16-b4/jre/lib/ppc/libfontmanager.dylib, 1): Library not loaded: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO Reason: Incompatible library version: ImageIO requires version 1.0.0 or later, but libJPEG.dylib provides version 0.0.0 at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1931) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1849) at java.lang.Runtime.loadLibrary0(Runtime.java:840) at java.lang.System.loadLibrary(System.java:1064) at sun.font.FontManagerNativeLibrary$1.run(FontManagerNativeLibrary.java:61) at java.security.AccessController.doPrivileged(Native Method) at sun.font.FontManagerNativeLibrary.(FontManagerNativeLibrary.java:32) at sun.font.SunFontManager$1.run(SunFontManager.java:330) at java.security.AccessController.doPrivileged(Native Method) at sun.font.SunFontManager.(SunFontManager.java:326) at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:264) at sun.swing.SwingUtilities2.getFontMetrics(SwingUtilities2.java:1001) at javax.swing.JComponent.getFontMetrics(JComponent.java:1614) at sun.awt.X11.XTextFieldPeer.getMinimumSize(XTextFieldPeer.java:346) at sun.awt.X11.XTextFieldPeer.getPreferredSize(XTextFieldPeer.java:339) at java.awt.TextField.preferredSize(TextField.java:378) at java.awt.TextField.preferredSize(TextField.java:401) at java.awt.TextField.getPreferredSize(TextField.java:391) at java.awt.FlowLayout.layoutContainer(FlowLayout.java:609) at java.awt.Container.layout(Container.java:1490) at java.awt.Container.doLayout(Container.java:1479) at java.awt.Container.validateTree(Container.java:1585) at java.awt.Container.validateTree(Container.java:1591) at java.awt.Container.validate(Container.java:1557) at java.awt.Window.show(Window.java:946) at java.awt.Component.show(Component.java:1564) at java.awt.Component.setVisible(Component.java:1516) at java.awt.Window.setVisible(Window.java:927) at OrderDetailFrame.initialize(OrderDetailFrame.java:35) at OrderDetailFrame.(OrderDetailFrame.java:14) at OrderDetailFrame.main(OrderDetailFrame.java:40) On Wed, Dec 16, 2009 at 5:41 PM, Landon Fuller wrote: > > On Dec 14, 2009, at 11:39 PM, Greg Lewis wrote: > > > FWIW, I did eventually get the sparc64 port going on FreeBSD using Zero. > > > > I still think there are problems on SMP (I ended up compiling a UP > kernel) > > but its good enough on a UP system to bootstrap the build with at least > > (albeit slowly). > > > > Tarball at > > > > http://people.freebsd.org/~glewis/openjdk7-freebsd-8.0-sparc64.tar.gz > > On that note, here is my 10.5/PPC build: > > http://hg.bikemonkey.org/archive/openjdk7_darwin/openjdk7-macppc-2009-12-16-b4.tar.bz2 > > The extent of my testing is 'Hello, World' and verifying that the JDK > successfully bootstraps. > > -landonf > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20091219/7071d836/attachment.html From landonf at plausible.coop Sat Dec 19 14:10:55 2009 From: landonf at plausible.coop (Landon Fuller) Date: Sat, 19 Dec 2009 14:10:55 -0800 Subject: Darwin/PPC [was Re: FreeBSD/sparc64 port] In-Reply-To: <860cb0120912191402g74eb2538m1480913e0dd14bf1@mail.gmail.com> References: <20091215073913.GA45006@misty.eyesbeyond.com> <860cb0120912191402g74eb2538m1480913e0dd14bf1@mail.gmail.com> Message-ID: <6458611A-0A24-4B55-8B33-18931A999306@plausible.coop> On Dec 19, 2009, at 2:02 PM, Eric Richardson wrote: > I also find that I can't get a simple swing app to work. Any ideas? It looks like I introduced a regression in fixing the OpenJDK-based bootstrap; using DYLD_LIBRARY_PATH/DYLD_FALLBACK_LIBRARY_PATH is not going to work on Darwin for both bootstrap and non-bootstrap use. I'll take a look into using @rpath/@executable_path as a possible alternative. -landonf From swingler at apple.com Sat Dec 19 18:38:01 2009 From: swingler at apple.com (Mike Swingler) Date: Sat, 19 Dec 2009 18:38:01 -0800 Subject: Darwin/PPC [was Re: FreeBSD/sparc64 port] In-Reply-To: <6458611A-0A24-4B55-8B33-18931A999306@plausible.coop> References: <20091215073913.GA45006@misty.eyesbeyond.com> <860cb0120912191402g74eb2538m1480913e0dd14bf1@mail.gmail.com> <6458611A-0A24-4B55-8B33-18931A999306@plausible.coop> Message-ID: <610B6C81-AAC6-43AE-B89A-590CFB404C52@apple.com> On Dec 19, 2009, at 2:10 PM, Landon Fuller wrote: > On Dec 19, 2009, at 2:02 PM, Eric Richardson wrote: > >> I also find that I can't get a simple swing app to work. Any ideas? > > It looks like I introduced a regression in fixing the OpenJDK-based bootstrap; using DYLD_LIBRARY_PATH/DYLD_FALLBACK_LIBRARY_PATH is not going to work on Darwin for both bootstrap and non-bootstrap use. > > I'll take a look into using @rpath/@executable_path as a possible alternative. FYI: there is a bug in dyld that will cause different libraries with the same install_name to be loaded if they start with @rpath. I was bit by this when linking various jnilibs against libclient, but then running with libserver (who's install_name was @rpath/libclient.dylib). You might also want to consider using @loader_path instead of @executable_path, which is supported on 10.4 and higher. Cheers, Mike Swingler Java Runtime Engineer Apple Inc. From glewis at eyesbeyond.com Mon Dec 21 05:42:00 2009 From: glewis at eyesbeyond.com (glewis at eyesbeyond.com) Date: Mon, 21 Dec 2009 13:42:00 +0000 Subject: hg: bsd-port/bsd-port: 8 new changesets Message-ID: <20091221134200.89D5F429FA@hg.openjdk.java.net> Changeset: 721c1696c124 Author: mikejwre Date: 2009-12-03 12:52 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/rev/721c1696c124 Added tag jdk7-b77 for changeset 1f17ca8353ba ! .hgtags Changeset: 382219a27386 Author: ohair Date: 2009-11-18 16:41 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/rev/382219a27386 6727046: Add message when docs are skipped in control build 6864011: typo? in top level Makefile: DAYE_STAMP Reviewed-by: jjg ! Makefile ! make/Defs-internal.gmk ! make/jdk-rules.gmk ! make/sanity-rules.gmk Changeset: 08f13b9af1b2 Author: tbell Date: 2009-11-23 19:55 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/rev/08f13b9af1b2 Merge Changeset: 80161484b6b1 Author: tbell Date: 2009-12-08 09:14 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/rev/80161484b6b1 Merge Changeset: ea77a8b9b028 Author: ohair Date: 2009-12-16 12:51 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/rev/ea77a8b9b028 6909462: Fix nbproject/private references in .hgignore Summary: See bugzilla issue 100097 Reviewed-by: tbell Contributed-by: Jesse Glick ! .hgignore Changeset: ab4ae8f45146 Author: mikejwre Date: 2009-12-16 23:38 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/rev/ab4ae8f45146 Merge Changeset: 20aeeb517139 Author: mikejwre Date: 2009-12-17 14:10 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/rev/20aeeb517139 Added tag jdk7-b78 for changeset ab4ae8f45146 ! .hgtags Changeset: 53a9c234890a Author: Greg Lewis Date: 2009-12-20 19:49 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/rev/53a9c234890a Merge from main OpenJDK repository From glewis at eyesbeyond.com Mon Dec 21 05:42:07 2009 From: glewis at eyesbeyond.com (glewis at eyesbeyond.com) Date: Mon, 21 Dec 2009 13:42:07 +0000 Subject: hg: bsd-port/bsd-port/corba: 6 new changesets Message-ID: <20091221134213.01A8C429FB@hg.openjdk.java.net> Changeset: 28b983e5bb5f Author: gbenson Date: 2009-11-23 10:04 +0000 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/corba/rev/28b983e5bb5f 6903453: Zero build on ARM and IA-64 Summary: Correctly set uname on ARM, and correctly build fdlibm on IA-64 Reviewed-by: ohair ! make/common/shared/Platform.gmk Changeset: 6881f0383f62 Author: ohair Date: 2009-11-25 11:05 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/corba/rev/6881f0383f62 Merge Changeset: 6977ccc8827e Author: mikejwre Date: 2009-12-03 12:52 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/corba/rev/6977ccc8827e Added tag jdk7-b77 for changeset 6881f0383f62 ! .hgtags Changeset: a7f7276b48cd Author: ohair Date: 2009-12-16 12:51 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/corba/rev/a7f7276b48cd 6909462: Fix nbproject/private references in .hgignore Summary: See bugzilla issue 100097 Reviewed-by: tbell Contributed-by: Jesse Glick ! .hgignore Changeset: ec0421b5703b Author: mikejwre Date: 2009-12-17 14:10 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/corba/rev/ec0421b5703b Added tag jdk7-b78 for changeset a7f7276b48cd ! .hgtags Changeset: b84fc2f85e13 Author: Greg Lewis Date: 2009-12-20 19:49 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/corba/rev/b84fc2f85e13 Merge from main OpenJDK repository ! make/common/shared/Platform.gmk From glewis at eyesbeyond.com Mon Dec 21 05:42:19 2009 From: glewis at eyesbeyond.com (glewis at eyesbeyond.com) Date: Mon, 21 Dec 2009 13:42:19 +0000 Subject: hg: bsd-port/bsd-port/hotspot: 4 new changesets Message-ID: <20091221134232.DFA7F429FC@hg.openjdk.java.net> Changeset: 7589c1b72907 Author: mikejwre Date: 2009-12-03 12:52 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/hotspot/rev/7589c1b72907 Added tag jdk7-b77 for changeset 455105fc81d9 ! .hgtags Changeset: e703499b4b51 Author: ohair Date: 2009-12-16 12:51 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/hotspot/rev/e703499b4b51 6909462: Fix nbproject/private references in .hgignore Summary: See bugzilla issue 100097 Reviewed-by: tbell Contributed-by: Jesse Glick ! .hgignore Changeset: 1cf572922ff1 Author: mikejwre Date: 2009-12-17 14:10 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/hotspot/rev/1cf572922ff1 Added tag jdk7-b78 for changeset e703499b4b51 ! .hgtags Changeset: 23aa5f344171 Author: Greg Lewis Date: 2009-12-20 19:49 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/hotspot/rev/23aa5f344171 Merge from main OpenJDK repository From glewis at eyesbeyond.com Mon Dec 21 05:42:39 2009 From: glewis at eyesbeyond.com (glewis at eyesbeyond.com) Date: Mon, 21 Dec 2009 13:42:39 +0000 Subject: hg: bsd-port/bsd-port/jaxp: 6 new changesets Message-ID: <20091221134239.6FD00429FD@hg.openjdk.java.net> Changeset: cc17d7ea1b76 Author: ohair Date: 2009-11-11 11:17 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/jaxp/rev/cc17d7ea1b76 6900341: jaxp/jaxws ant scripts using ant runtime in classpath, needs to be explicit Reviewed-by: tbell ! build.properties ! build.xml ! make/Makefile Changeset: bfadab8c7b1b Author: tbell Date: 2009-11-17 10:23 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/jaxp/rev/bfadab8c7b1b Merge Changeset: 90bbdc1a6258 Author: mikejwre Date: 2009-12-03 12:52 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/jaxp/rev/90bbdc1a6258 Added tag jdk7-b77 for changeset bfadab8c7b1b ! .hgtags Changeset: 7a12d3789e1b Author: ohair Date: 2009-12-16 12:52 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/jaxp/rev/7a12d3789e1b 6909462: Fix nbproject/private references in .hgignore Summary: See bugzilla issue 100097 Reviewed-by: tbell Contributed-by: Jesse Glick ! .hgignore Changeset: b1005c504358 Author: mikejwre Date: 2009-12-17 14:10 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/jaxp/rev/b1005c504358 Added tag jdk7-b78 for changeset 7a12d3789e1b ! .hgtags Changeset: 5ac1c2dd7687 Author: Greg Lewis Date: 2009-12-20 19:50 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/jaxp/rev/5ac1c2dd7687 Merge from main OpenJDK repository From glewis at eyesbeyond.com Mon Dec 21 05:42:43 2009 From: glewis at eyesbeyond.com (glewis at eyesbeyond.com) Date: Mon, 21 Dec 2009 13:42:43 +0000 Subject: hg: bsd-port/bsd-port/jaxws: 6 new changesets Message-ID: <20091221134244.165EB429FE@hg.openjdk.java.net> Changeset: 4023edcd8433 Author: ohair Date: 2009-11-11 11:19 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/jaxws/rev/4023edcd8433 6900341: jaxp/jaxws ant scripts using ant runtime in classpath, needs to be explicit Reviewed-by: tbell ! build.properties ! build.xml ! make/Makefile Changeset: 5b4968c11047 Author: tbell Date: 2009-11-17 10:23 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/jaxws/rev/5b4968c11047 Merge Changeset: 96e510caa8e7 Author: mikejwre Date: 2009-12-03 12:52 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/jaxws/rev/96e510caa8e7 Added tag jdk7-b77 for changeset 5b4968c11047 ! .hgtags Changeset: fc1c72d1dfbb Author: ohair Date: 2009-12-16 12:52 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/jaxws/rev/fc1c72d1dfbb 6909462: Fix nbproject/private references in .hgignore Summary: See bugzilla issue 100097 Reviewed-by: tbell Contributed-by: Jesse Glick ! .hgignore Changeset: c08894f5b6e5 Author: mikejwre Date: 2009-12-17 14:10 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/jaxws/rev/c08894f5b6e5 Added tag jdk7-b78 for changeset fc1c72d1dfbb ! .hgtags Changeset: f1a7bd97137a Author: Greg Lewis Date: 2009-12-20 19:50 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/jaxws/rev/f1a7bd97137a Merge from main OpenJDK repository From glewis at eyesbeyond.com Mon Dec 21 07:53:37 2009 From: glewis at eyesbeyond.com (glewis at eyesbeyond.com) Date: Mon, 21 Dec 2009 15:53:37 +0000 Subject: hg: bsd-port/bsd-port/langtools: 18 new changesets Message-ID: <20091221155410.01CC142A22@hg.openjdk.java.net> Changeset: a491ad1bb624 Author: jjg Date: 2009-10-20 10:59 -0700 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/langtools/rev/a491ad1bb624 6893062: remove support for obsolete attributes Reviewed-by: ksrini ! src/share/classes/com/sun/tools/classfile/Attribute.java ! src/share/classes/com/sun/tools/classfile/ClassWriter.java - src/share/classes/com/sun/tools/classfile/ModuleExportTable_attribute.java - src/share/classes/com/sun/tools/classfile/ModuleMemberTable_attribute.java - src/share/classes/com/sun/tools/classfile/Module_attribute.java ! src/share/classes/com/sun/tools/javap/AttributeWriter.java ! src/share/classes/com/sun/tools/javap/JavapTask.java ! src/share/classes/com/sun/tools/javap/Options.java Changeset: 82f6e78efcf5 Author: tbell Date: 2009-11-06 17:29 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/langtools/rev/82f6e78efcf5 Merge - src/share/classes/com/sun/tools/classfile/ModuleExportTable_attribute.java - src/share/classes/com/sun/tools/classfile/ModuleMemberTable_attribute.java - src/share/classes/com/sun/tools/classfile/Module_attribute.java Changeset: 0398ae15b90a Author: tbell Date: 2009-11-17 10:35 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/langtools/rev/0398ae15b90a Merge - src/share/classes/com/sun/tools/classfile/ModuleExportTable_attribute.java - src/share/classes/com/sun/tools/classfile/ModuleMemberTable_attribute.java - src/share/classes/com/sun/tools/classfile/Module_attribute.java Changeset: 45bd41dcb614 Author: mikejwre Date: 2009-12-03 12:53 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/langtools/rev/45bd41dcb614 Added tag jdk7-b77 for changeset 0398ae15b90a ! .hgtags Changeset: cff85998bf4d Author: jjg Date: 2009-11-17 16:45 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/langtools/rev/cff85998bf4d 6898585: restructure langtools build.xml to facilitate more options for macro Reviewed-by: ohair ! make/build.xml Changeset: a509a22f9845 Author: jjg Date: 2009-11-19 11:38 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/langtools/rev/a509a22f9845 6902264: fix indentation of tableswitch and lookupswitch Reviewed-by: ksrini ! src/share/classes/com/sun/tools/classfile/Instruction.java ! src/share/classes/com/sun/tools/javap/CodeWriter.java Changeset: 2ebae181a4ab Author: jjg Date: 2009-11-19 11:43 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/langtools/rev/2ebae181a4ab 6900511: javac command line help broken Reviewed-by: ksrini ! src/share/classes/com/sun/tools/javac/main/JavacOption.java Changeset: b1bb8164a9bd Author: jjg Date: 2009-11-19 11:49 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/langtools/rev/b1bb8164a9bd 6902720: javac pretty printer does not handle enums correctly Reviewed-by: mcimadamore ! src/share/classes/com/sun/tools/javac/tree/Pretty.java + test/tools/javac/6902720/E1.java + test/tools/javac/6902720/E2.java + test/tools/javac/6902720/Test.java Changeset: 243d0be1ba99 Author: jjg Date: 2009-11-20 10:15 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/langtools/rev/243d0be1ba99 6903456: 6898585 drops javadoc doclet.xml from JDK Reviewed-by: ohair ! make/build.xml Changeset: 4325b440eb3e Author: jjg Date: 2009-11-20 11:18 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/langtools/rev/4325b440eb3e 6902337: fix langtools build to allow forward refs into jdk/ repo Reviewed-by: ohair, mcimadamore ! make/Makefile ! make/build.properties ! make/build.xml + make/tools/GenStubs/GenStubs.java Changeset: b1508b6affd8 Author: tbell Date: 2009-11-23 19:58 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/langtools/rev/b1508b6affd8 Merge Changeset: 121e0ebf1658 Author: darcy Date: 2009-12-03 14:03 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/langtools/rev/121e0ebf1658 6906748: Project Coin: Minor strings in switch cleanup Reviewed-by: jjg ! src/share/classes/com/sun/tools/javac/code/Source.java ! src/share/classes/com/sun/tools/javac/comp/Lower.java Changeset: ea89c5d4af08 Author: jjg Date: 2009-12-07 14:35 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/langtools/rev/ea89c5d4af08 6907660: stupid typo in ZipFileIndex guarantees NPE Reviewed-by: darcy ! src/share/classes/com/sun/tools/javac/file/ZipFileIndex.java Changeset: ceb2857fce7d Author: tbell Date: 2009-12-08 09:16 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/langtools/rev/ceb2857fce7d Merge Changeset: 381399872958 Author: ohair Date: 2009-12-16 12:52 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/langtools/rev/381399872958 6909462: Fix nbproject/private references in .hgignore Summary: See bugzilla issue 100097 Reviewed-by: tbell Contributed-by: Jesse Glick ! .hgignore Changeset: acc1e40a5874 Author: mikejwre Date: 2009-12-16 23:39 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/langtools/rev/acc1e40a5874 Merge Changeset: 44022ba69c2f Author: mikejwre Date: 2009-12-17 14:10 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/langtools/rev/44022ba69c2f Added tag jdk7-b78 for changeset acc1e40a5874 ! .hgtags Changeset: 85366eef94ea Author: Greg Lewis Date: 2009-12-20 19:51 -0800 URL: http://hg.openjdk.java.net/bsd-port/bsd-port/langtools/rev/85366eef94ea Merge from main OpenJDK repository - src/share/classes/com/sun/tools/classfile/ModuleExportTable_attribute.java - src/share/classes/com/sun/tools/classfile/ModuleMemberTable_attribute.java - src/share/classes/com/sun/tools/classfile/Module_attribute.java From ray at ganymede.org Thu Dec 24 16:12:18 2009 From: ray at ganymede.org (Ray Kiddy) Date: Thu, 24 Dec 2009 16:12:18 -0800 Subject: identifying test suites? Message-ID: I am trying to see how to run some of the tests on the bsd-port of jdk. 7. There is something which may seem too obvious for words to someone immersed in the platform, but I do not see it. I have seen several documents on running the JavaTest harness. For example, see: http://openjdk.java.net/groups/conformance/docs/JCK6bUsersGuide/html/p13.html There is always a step skipped, the one where one selets a test suite. How is a test suite identified? Seeing http://java.sun.com/developer/technicalArticles/JCPtools2/CtorTests.java , I guessed that it would override javasoft.sqe.javatest.lib.MultiTest. Nope. Does it include the word "Suite" in its source? Grepped for that and did not find much. Grepped for "Test" and found too much to read through. In the document referenced above, I see this: 1. Choose Start a new test run on the Welcome to the JavaTest Harness screen. Click Next 2. Choose Create a new configuration on the Configuration screen. Click Next. When I run 'java -jar javatest.jar' and select the 'File->Open Quick Start Wizard...' menu option, and select 'Start a new test run' and hit , I get a window that says "Which test suite do you want to use?" I guess this would be step 1 and 1/2. So, what test suite do I want to use? thanx - ray