Oracle Java 7 Developper Preview for OSX vs OpenJDK 7

Henri Gomez henri.gomez at gmail.com
Mon Apr 23 21:49:46 PDT 2012


easy to fix :

change in jre/lib/jvm.cfg

-client IGNORE

->

-client KNOWN



2012/4/24 Dr Heinz M. Kabutz <heinz at javaspecialists.eu>:
> Thanks Henri.
>
> In OpenJDK 7 for OSX, java -d32 -client now runs in 32-bit mode, but with
> the -server JVM.
>
> Is it possible to also enable the option to select the client JVM in 32-bit
> mode, same as we have with 1.6.0 at the moment?
>
> And would it be possible to do this for OpenJDK 8 also?
>
> Regards
>
> Heinz
> --
> Dr Heinz M. Kabutz (PhD CompSci)
> Author of "The Java(tm) Specialists' Newsletter"
> Sun Java Champion
> IEEE Certified Software Development Professional
> http://www.javaspecialists.eu
> Tel: +30 69 75 595 262
> Skype: kabutz
>
>
>
> On 4/24/12 1:01 AM, Henri Gomez wrote:
>
> I think you did the right thing with the name of the file and directory, but
> the content of jvm.cfg should be slightly different.
>
> For the Oracle Java 7 release this is correct because there's only a 64-bit
> JDK. For a universal JDK, I think -client and -server should both be valid
> choices.
>
>
> Oracle Java 7 release support both -d32 and -d64 in command line but
> still report a 64bits VM
>
> java -d32 -version
> java version "1.7.0_04-ea"
> Java(TM) SE Runtime Environment (build 1.7.0_04-ea-b225)
> Java HotSpot(TM) 64-Bit Server VM (build 23.0-b09, mixed mode)
>
> OpenJDK 7 64bits didn't support -d32 by default (ie: in non universal mode)
>
>
>
> # List of JVMs that can be used as an option to java, javac, etc.
> # Order is important -- first in this list is the default JVM.
> # NOTE that this both this file and its format are UNSUPPORTED and
> # WILL GO AWAY in a future release.
> -server KNOWN
> -client KNOWN
>
> -hotspot ERROR
> -classic WARN
> -native ERROR
> -green ERROR
>
>
>
>
>
> I apologize for just making random suggestions, but I'm not in a position to
> test it out right now.
>
>
> I updated jvm.cfg under jre/lib/jvm.cfg and switching from -client
> IGNORE to -client KNOWN but didn't see any changes
>
>


More information about the jdk7-dev mailing list