when I try to use file appender, I encountered an exception thrown by the
the stack trace is as follows:
Exception in thread "main" java.lang.ClassCastException: com.sun.cdc.io.j2me.file.Protocol cannot be cast to javax.microedition.io.file.FileConnection
please , is there anyone got an idea to fix it ?
Microlog is designed for CLDC in mind. I have not tried it on the CDC platform.
But it should be possible to fix. However I do not have access to a CDC based device.
AFAIK CDC should be compatible with CLDC, but I do not know if this goes for JSR-75 (FileConnection). But CDC also has support for writing to a file using the Java SE APIs. Thus it would be rather simple to write a FileAppender that works for CDC.
Log in to post a comment.