[kaffe] System.getenv() ?

pancake sergipop at mx3.redestb.es
Sun Apr 4 16:38:03 PDT 2004


I'm glad to see that System.getenv() is not supported on GNU ClassPath and works perfectly under sun JDK...what's the reason?

take a look:

pancake at pl2:/tmp$ kaffe  pop
java.lang.Error: System.getenv no longer supported
   at java.lang.System.getenv (System.java:109)
   at pop.<clinit> (pop.java:4)
pancake at pl2:/tmp$ cat pop.java 
class pop
{
                static{
                                System.out.println("HOME"+System.getenv("HOME"));
                }
}
pancake at pl2:/tmp$ /root/j2sdk1.5.0/bin/java pop
HOME/home/pancake
Exception in thread "main" java.lang.NoSuchMethodError: main
pancake at pl2:/tmp$ 


-- 
Software is like violence. Is better if it's free.
--




More information about the kaffe mailing list