build issue Solaris V9
Alan Bateman
Alan.Bateman at Sun.COM
Wed Jun 25 05:09:02 PDT 2008
Rajendra Gutupalli wrote:
> Hi Alan,
>
> I am trying the JSR-203 APIs with a Solaris SparcV9 build.
> > uname -a
> SunOS jit049 5.9 Generic_117171-07 sun4u sparc SUNW,Sun-Blade-100
>
> bash-2.05$ ./jdk1.7.0/bin/java TreeTest ./jdk1.7.0/src.zip
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at java.nio.file.FileSystems.getDefault(FileSystems.java:175)
> at java.nio.file.Path.get(Path.java:150)
> at TreeTest.main(TreeTest.java:11)
> Caused by: java.lang.RuntimeException: Need Solaris 10 or greater
>
"sparcv9" refers to the architecture so this is the 64-bit bundle rather
than something that runs on Solaris 9. As the build platform for jdk7 is
Solaris 10 it means there is no guarantee that the resulting binaries
will run on Solaris 8 or 9. As it happens they will run but there are a
couple of awkward to diagnose issues to track down if you do this. So
you need to run on Solaris 10 or newer. The 64-bit bundles installs over
the 32-bit bundle as normal (exactly the same for x64). That way you get
both, ie: "java" => 32-bit, "java -d64" => 64-bit.
-Alan.
More information about the nio-dev
mailing list