Eclipse, Java, os.arch and os.name

From: Lloyd Kamara <l.kamara_at_ic.ac.uk>
Date: Tue 12 Feb 2002 08:30:54 PM GMT
Message-ID: <20020212.20305400.460232281@oracee.ee.ic.ac.uk>
Hello - this isn't really a bug s such, but...
I have notice that when eclipse checks to see
whether the Eclipse-Java interface is supported
on the current platform, it is quite strict.
It wants os.arch to be i386.  This causes it to
refuse to run when (say) the IBM SDK is used under
Linux (System properties are "Linux" for "os.name"
and "x86" for "os.arch").  At the moment, I use
the following code to circumvent this:

if ( (System.getProperty( "os.name" ).equals("Linux") ) ) {
  if ( (System.getProperty( "os.arch" ).equals("x86") ) ) {
        System.setProperty("os.arch", "i386");
     }
}

I was wondering whether the test for os.arch might be relaxed
somewhat, although I can imagine why it might not (only the
"official" SDK is tested and supported, for instance).

Regards,
	Lloyd Kamara
Received on Tue Feb 12 20:33:30 2002

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:08:13 PM GMT GMT