Applet
CompilationApplet security restriction do not allow calls to System.getProperty(). You should use "Save for Web..." menu in main MicroEmulator application.
| [top] |
This is beacuse 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:
DataInputStream din = new DataInputStream(..);
din.close();
DataInputStream din = new DataInputStream(..);
((InputStream)din).close();
// or even better...
silentClose(din);
private void silentClose(InputStream is) {
if (is == null) {
return;
}
try {
is.close();
} catch (IOException ignore) {
}
}
| [top] |
java -cp microemulator.jar;avetanaBluetooth.jar;YourApp.jar org.microemu.app.Main com.yourcompany.YourMidlet or java -cp microemulator.jar;bluecove-1.2.3.jar;YourApp.jar org.microemu.app.Main com.yourcompany.YourMidlet
| [top] |
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.
| [top] |
Edit the configuration file $home/.microemulator/config2.xml.
<config>
...
<system-properties>
<system-property name="http.proxyHost" value="webcache.mydomain.com"></system-property>
<system-property name="http.proxyPort" value="8080"></system-property>
<system-property name="http.nonProxyHosts" value="localhost"></system-property>
</system-properties>
...
</config>
| [top] |