[kaffe] System.getenv() ?

pancake sergipop@mx3.redestb.es
Sun Apr 4 16:38:03 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@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@pl2:/tmp$ cat pop.java 
class pop
{
                static{
                                System.out.println("HOME"+System.getenv("HOME"));
                }
}
pancake@pl2:/tmp$ /root/j2sdk1.5.0/bin/java pop
HOME/home/pancake
Exception in thread "main" java.lang.NoSuchMethodError: main
pancake@pl2:/tmp$ 


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