sorry, my answer was a bit to fast. I did not think about, that due the manipulation of the classpath, the compiler already loads the classes of Kvm, and those my be not just change behavior of Runtime.class. regards and Prost ----------------------------------------------------- J�rgen Yes, that's right, it works if you do %>javac -classpath .;c:\kjava\sddk\classes;c:\jdk1.1.7\lib\classes.zip MyPalmApp.java but not if you do %>set classpath=.;c:\kjava\sddk\classes;c:\jdk1.1.7\lib\classes.zip %>javac MyPalmApp.java which was what I tried to do at first. That actually should work, but due to a bug in the JDK 1.1 you get the following error message: Unable to initialize threads: (null) Prost (...?) Malin Hi, the other way is to change the classpath, so that first the path to the kvm classes and then the path for the "regular" java classes is searched during compile regards and Prost J�rgen mailto:[EMAIL PROTECTED] -------------------------------------------------- > > Hi everyone, > > Is there someone out there developing Palm apps using the KJava from Sun? > I'm trying, but I'm experiencing some troubles: > > If I use the KJava class java.lang.Runtime to for example get the current > date, > I can't get it to compile. The KJava class java.lang.Runtime is hidden by > the JDK class java.lang.Runtime. Unfortunately, you can't remove the JDK > Runtime class, 'cause the compiler needs it! > This is a real Moment 22 problem. > > Has anyone solved it? > > Have a nice day! > > /Malin >
