Solaris x64: Difference between revisions

From EggeWiki
(New page: Solaris 10 supports both [http://en.wikipedia.org/wiki/X86-64 32 bit and 64 bit architectures]. I installed a version of Solaris 10, using VMWare on a Windows XP 32 bit machine. Everythi...)
 
mNo edit summary
 
Line 43: Line 43:
</geshi>
</geshi>


[[Category:Solaris]]
[[Category:Solaris|x64]]
[[Category:Java]]
[[Category:Java]]

Latest revision as of 08:32, 31 March 2008

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: <geshi lang="bash"> $ isainfo -v 32-bit i386 applications

       sse3 sse2 sse fxsr mmx cmov sep cx8 tsc fpu 

</geshi>

64 bit: <geshi lang="bash> $ 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 

</geshi>

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: <geshi lang="bash"> $ 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. </geshi>


64 bit: <geshi lang="bash"> $ java -d32 HelloWorld Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld $ java -d64 HelloWorld Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld </geshi>