Dear MicroEJ,
While one of our software engineers has been trying to add some test code of DataOutputStream in your hello sample application, he met the errors as:
=============== [ Initialization Stage ] ===============
=============== [ Converting fonts ] ===============
=============== [ Converting images ] ===============
=============== [ Build Application ] ===============
1 : KERNEL/FEATURE ERROR [com.is2t.java.io.IFileSystem]
FAIL
Soar image generation aborted.
[M7] - Kernel type com.is2t.java.io.IFileSystem cannot access type [Ljava.io.File; (owned by Feature D:\Work\MicroEJ-Studio-4.1.5\com.microej.demo.hello\bin/hello.kf).
2 : KERNEL/FEATURE ERROR [com.is2t.java.io.IFileSystem]
[M7] - Kernel type com.is2t.java.io.IFileSystem cannot access type java.io.File (owned by Feature D:\Work\MicroEJ-Studio-4.1.5\com.microej.demo.hello\bin/hello.kf).
3 : KERNEL/FEATURE ERROR [com.is2t.java.io.IFileSystem]
[M7] - Kernel type com.is2t.java.io.IFileSystem cannot access type java.io.File (owned by Feature D:\Work\MicroEJ-Studio-4.1.5\com.microej.demo.hello\bin/hello.kf).
4 : KERNEL/FEATURE ERROR [com.is2t.java.io.IFileSystem]
[M7] - Kernel type com.is2t.java.io.IFileSystem cannot access type java.io.File (owned by Feature D:\Work\MicroEJ-Studio-4.1.5\com.microej.demo.hello\bin/hello.kf).
5 : KERNEL/FEATURE ERROR [com.is2t.java.io.IFileSystem]
[M7] - Kernel type com.is2t.java.io.IFileSystem cannot access type java.io.File (owned by Feature D:\Work\MicroEJ-Studio-4.1.5\com.microej.demo.hello\bin/hello.kf).
6 : KERNEL/FEATURE ERROR [com.is2t.java.io.IFileSystem]
[M7] - Kernel type com.is2t.java.io.IFileSystem cannot access type java.io.File (owned by Feature D:\Work\MicroEJ-Studio-4.1.5\com.microej.demo.hello\bin/hello.kf).
7 : KERNEL/FEATURE ERROR [com.is2t.java.io.IFileSystem]
[M7] - Kernel type com.is2t.java.io.IFileSystem cannot access type java.io.File (owned by Feature D:\Work\MicroEJ-Studio-4.1.5\com.microej.demo.hello\bin/hello.kf).
8 : KERNEL/FEATURE ERROR [com.is2t.java.io.IFileChannel$OpenMode]
[M7] - Kernel type com.is2t.java.io.IFileChannel$OpenMode cannot access type [Lcom.is2t.java.io.IFileChannel$OpenMode; (owned by Feature D:\Work\MicroEJ-Studio-4.1.5\com.microej.demo.hello\bin/hello.kf).
9 : KERNEL/FEATURE ERROR [com.is2t.java.io.IFileChannel$OpenMode]
[M7] - Kernel type com.is2t.java.io.IFileChannel$OpenMode cannot access type [Lcom.is2t.java.io.IFileChannel$OpenMode; (owned by Feature D:\Work\MicroEJ-Studio-4.1.5\com.microej.demo.hello\bin/hello.kf).
10 : KERNEL/FEATURE ERROR [com.is2t.java.io.IFileChannel$OpenMode]
[M7] - Kernel type com.is2t.java.io.IFileChannel$OpenMode cannot access type [Lcom.is2t.java.io.IFileChannel$OpenMode; (owned by Feature D:\Work\MicroEJ-Studio-4.1.5\com.microej.demo.hello\bin/hello.kf).
11 : KERNEL/FEATURE ERROR [java.io.FileOutputStream]
[M18] - Type java.io.FileOutputStream (owned by Feature D:\Work\MicroEJ-Studio-4.1.5\com.microej.demo.hello\bin/hello.kf) cannot access Kernel type com.is2t.java.io.IFileSystem (not an API). Found 54 occurrence(s).
12 : KERNEL/FEATURE ERROR [java.io.FileOutputStream]
[M18] - Type java.io.FileOutputStream (owned by Feature D:\Work\MicroEJ-Studio-4.1.5\com.microej.demo.hello\bin/hello.kf) cannot access Kernel type com.is2t.java.io.IFileChannel$OpenMode (not an API). Found 3 occurrence(s).
13 : KERNEL/FEATURE ERROR [java.io.FileOutputStream]
[M18] - Type java.io.FileOutputStream (owned by Feature D:\Work\MicroEJ-Studio-4.1.5\com.microej.demo.hello\bin/hello.kf) cannot access Kernel type com.is2t.java.io.IFileChannel (not an API). Found 5 occurrence(s).
The test code he added was as:
public void writeFile() {
DataOutputStream dos = null;
try {
File file = new File("./hello");
String contents = "test!!";
dos = new DataOutputStream(new FileOutputStream(file));
dos.write(contents.getBytes());
} catch (Exception ex) {
ex.printStackTrace();
} finally {
try {
if (dos != null) {
dos.close();
}
} catch (Exception ex) {
}
}
}
Could you please advise me about where he has some of misunderstanding here?
Thanks much in advance.
Regards
YH Kwon