Re: System.getProperty("os.name") does not work (sablevm-1.1.7)
David Bélanger <[email protected]>
| Newsgroups | gmane.comp.java.vm.sablevm.general |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Dec 20, 2004 at 12:37:42PM +0000, Asutosh Gopinath wrote:
> Hi,
> sablevm does not recognize OS on Xscale linux
>
> public class os
> {
>
> public static void main(String[] args)
> {
> String OS=System.getProperty("os.name");
> System.out.println(OS);
> }
>
> }
>
> output:
> ?
> -------------
>
Hi,
It is currently unimplemented... I will look into implementing it
shortly. If it is urgent, you could always hard coded "Linux" for
"os.name" in file vm/reference/java/lang/VMRuntime.java in
sablevm-classpath. Or just wait for a patch.
David
---
David Bélanger
Web page: http://www.cs.mcgill.ca/~dbelan2/
Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt