WebSockets J2ME

111 views
Skip to first unread message

Gareth Murfin

unread,
May 3, 2016, 7:54:18 AM5/3/16
to CodenameOne Discussions
I know websockets are not supported all over, I was just wondering when J2ME will get support, if ever? No big deal I dont need J2ME but I just had a pang of nostalgia and thought I could get it going on old nokia see if it worked :)

Executing: /home/ec2-user/jdk1.8.0_45/bin/java -Dretrolambda.inputDir=/tmp/build2271483663004379583xxx/tmpclasses -Dretrolambda.classpath=/tmp/build2271483663004379583xxx/tmpclasses:/home/ec2-user/j2me/CodenameOne.jar3.3 -Dretrolambda.outputDir=/tmp/build2271483663004379583xxx/tmpclasses_retrolamda -Dretrolambda.bytecodeVersion=49 -Dretrolambda.defaultMethods=false -jar /tmp/temp249268913205757003.jar Retrolambda 2.0.3
Bytecode version: 49 (Java 5)
Default methods:  false
Input directory:  /tmp/build2271483663004379583xxx/tmpclasses
Output directory: /tmp/build2271483663004379583xxx/tmpclasses_retrolamda
Classpath:        /tmp/build2271483663004379583xxx/tmpclasses:/home/ec2-user/j2me/CodenameOne.jar3.3
Executing: javac -source 5 -target 1.5 -classpath /tmp/build2271483663004379583xxx/tmpclasses:/home/ec2-user/j2me/midpapis.jar -d /tmp/build2271483663004379583xxx/tmpclasses /tmp/build2271483663004379583xxx/tmpsrc/userclasses/nativeinterfaces/TextToSpeechImpl.java /tmp/build2271483663004379583xxx/tmpsrc/userclasses/nativeinterfaces/GoogleEnableAdvertisingIDCollectionInterfaceImpl.java /tmp/build2271483663004379583xxx/tmpsrc/userclasses/nativeinterfaces/NativeFacebookInstallTrackingInterfaceImpl.java /tmp/build2271483663004379583xxx/tmpsrc/userclasses/nativeinterfaces/AppsFlyerInterfaceImpl.java /tmp/build2271483663004379583xxx/tmpsrc/userclasses/nativeinterfaces/TextToSpeechStub.java /tmp/build2271483663004379583xxx/tmpsrc/userclasses/nativeinterfaces/AppsFlyerInterfaceStub.java /tmp/build2271483663004379583xxx/tmpsrc/userclasses/nativeinterfaces/NativeFacebookInstallTrackingInterfaceStub.java /tmp/build2271483663004379583xxx/tmpsrc/MyApplicationStub.java /tmp/build2271483663004379583xxx/tmpsrc/com/codename1/io/websocket/WebSocketNativeImplImpl.java /tmp/build2271483663004379583xxx/tmpsrc/com/codename1/io/websocket/WebSocketNativeImplStub.java /tmp/build2271483663004379583xxx/tmpsrc/com/rsl/aerservlib/MyNativeImpl.java /tmp/build2271483663004379583xxx/tmpsrc/com/rsl/aerservlib/MyNativeStub.java /tmp/build2271483663004379583xxx/tmpsrc/org/littlemonkey/connectivity/NativeConnectivityStub.java /tmp/build2271483663004379583xxx/tmpsrc/org/littlemonkey/connectivity/NativeConnectivityImpl.java warning: [options] bootstrap class path not set in conjunction with -source 1.5
/tmp/build2271483663004379583xxx/tmpsrc/com/codename1/io/websocket/WebSocketNativeImplStub.java:9: error: cannot find symbol
        impl.sendString(param0);
            ^
  symbol:   method sendString(String)
  location: variable impl of type WebSocketNativeImplImpl
/tmp/build2271483663004379583xxx/tmpsrc/com/codename1/io/websocket/WebSocketNativeImplStub.java:17: error: cannot find symbol
        return impl.getReadyState();
                   ^
  symbol:   method getReadyState()
  location: variable impl of type WebSocketNativeImplImpl
/tmp/build2271483663004379583xxx/tmpsrc/com/codename1/io/websocket/WebSocketNativeImplStub.java:21: error: cannot find symbol
        impl.sendBytes(param0);
            ^
  symbol:   method sendBytes(byte[])
  location: variable impl of type WebSocketNativeImplImpl
/tmp/build2271483663004379583xxx/tmpsrc/com/codename1/io/websocket/WebSocketNativeImplStub.java:25: error: cannot find symbol
        impl.setId(param0);
            ^
  symbol:   method setId(int)
  location: variable impl of type WebSocketNativeImplImpl
/tmp/build2271483663004379583xxx/tmpsrc/com/codename1/io/websocket/WebSocketNativeImplStub.java:29: error: cannot find symbol
        return impl.getId();
                   ^
  symbol:   method getId()
  location: variable impl of type WebSocketNativeImplImpl
/tmp/build2271483663004379583xxx/tmpsrc/com/codename1/io/websocket/WebSocketNativeImplStub.java:37: error: cannot find symbol
        impl.connect();
            ^
  symbol:   method connect()
  location: variable impl of type WebSocketNativeImplImpl
/tmp/build2271483663004379583xxx/tmpsrc/com/rsl/aerservlib/MyNativeStub.java:9: error: cannot find symbol
        impl.setPlc(param0);
            ^
  symbol:   method setPlc(String)
  location: variable impl of type MyNativeImpl
Note: /tmp/build2271483663004379583xxx/tmpsrc/MyApplicationStub.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
7 errors
1 warning

Steve Hannah

unread,
May 3, 2016, 2:45:26 PM5/3/16
to codenameone...@googlegroups.com
I don't think so.  But for the other platforms the library is just a thin layer over a native web sockets library.   If you can find a J2ME websockets library.  I can probably plug it into the cn1lib.  I am not aware of any, but all I did was one google search.

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/b875845b-1825-410d-a66e-5688da6371eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One
Reply all
Reply to author
Forward
0 new messages