Mohan Build 22.5.03
Simon Rutishauser
simon.rutishauser@gmx.ch
Fri May 23 17:49:00 GMT 2003
Hi,
with the new build I still have the two major problems I've always been having
before:
1.) swt programs still display the ugly windows console in the background (not
even minimized). How can I get rid of it?
2.) gcj fails to list files on other hard disk partitions than C:
<testcode>
import java.io.*;
public class DriveC {
DriveC() {
File f = new File("d:");
System.out.println("Drive: "+f+"\t IsDir: "+f.isDirectory()+"\t IsFile:
"+f.isFile()+"\t Exists: "+f.exists());
File[] fs = f.listFiles();
for (int i = 0; i < fs.length; i++)
System.out.println(fs[i]);
}
public static void main(String[] args) {
new DriveC();
}
}
</testcode>
this returns:
<output>
Exception in thread "main" java.lang.NullPointerException
at __ZN6DriveCC1Ev (E:\Java\Entwicklung\GCJFileTest\DriveC.java)
at __ZN6DriveC4mainEP6JArrayIPN4java4lang6StringEE
(E:\Java\Entwicklung\GCJFileTest\DriveC.java)
at _main (C:\DOKUME~1\ADMINI~1\LOKALE~1\Temp\ccoVaaaa.i)
</output>(whereas E:\Java\.... is the Source file of the class shown above)
when ran on C: instead of D: it says correctly:
<output>
Drive: c: IsDir: true IsFile: false Exists: true
c:\.bash_history
c:\BOOTSECT.DOS
c:\RECYCLED
c:\AILog.txt
c:\PAGEFILE.SYS
c:\WINNT
...
</output>
both issues also exist in previvous mohan-builds
Peschmä
More information about the Java
mailing list