Solaris x64

From EggeWiki

Jump to: navigation, search

Solaris 10 supports both 32 bit and 64 bit architectures. I installed a version of Solaris 10, using VMWare on a Windows XP 32 bit machine. Everything worked fine, except for Visibroker 7.0, which is compiled only for 64 bit. You can use isainfo to determine the kind of applications the machine can execute.

32 bit:

$ isainfo -v    
32-bit i386 applications
        sse3 sse2 sse fxsr mmx cmov sep cx8 tsc fpu

64 bit:

$ isainfo -v
64-bit amd64 applications
        cx16 sse3 sse2 sse fxsr amd_3dnowx amd_3dnow amd_mmx mmx cmov amd_sysc 
        cx8 tsc fpu 
32-bit i386 applications
        cx16 sse3 sse2 sse fxsr amd_3dnowx amd_3dnow amd_mmx mmx cmov amd_sysc 
        cx8 tsc fpu

Another way of checking for 64 bit support is using Java to do so. The default version of Java can run in either 32 bit or 64 bit modes.

32 bit:

$ java -d32 HelloWorld
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
$ java -d64 HelloWorld
execve(): Exec format error
Error trying to exec /usr/jdk/instances/jdk1.5.0/bin/amd64/java.
Check if file exists and permissions are set correctly.
Failed to start a 64-bit JVM process from a 32-bit JVM.
Either 64-bit processes are not supported by this platform
or the 64-bit components have not been installed.


64 bit:

$ java -d32 HelloWorld
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
$ java -d64 HelloWorld
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
Personal tools
Travelling Salesman

Get the app!