Applet security restriction do not allow calls to System.getProperty(). You should use "Save for Web..." menu in main MicroEmulator application.
This is because you are compiling your code with J2SE java.io.
And DataInputStream and DataOutputStream are inherited from FilterInputStream in J2SE
The problem in close() function.
Solution is to use InputStream.close(). Consider this example:
Instead of:
This is because avetanaBluetooth.jar contains empty class javax.microedition.io.Connector that inherits from de.avetana.bluetooth.connection.Connector. This problem should be fixed in next avetana version 1.3.12.
Edit the configuration file $home/.microemulator/config2.xml.