WebSocketJLink.nb (1.03 MB)
– you have earned Featured Contributor Badge ![]()
Your exceptional post has been selected for our editorial columns Staff Picks http://wolfr.am/StaffPicks and Publication Materials https://wolfr.am/PubMat and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!
I’m getting the following exception when calling WebSocketConnect["wss://stream.binance.com:9443/ws/btcusdt@miniTicker"] :
Java::excptn: A Java exception occurred: java.lang.ClassNotFoundException: websocketjlink.WebSocketJLinkClient
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:398).
I’m using Mathematica 13.1 on MacOS and Java version 11.0.15
LoadJavaClass["websocketjlink.WebSocketJLinkClient"] doesn’t work, but LoadJavaClass["java.net.URL"] // Methods
works fine.
ExternalEvaluate["Java", "System.getProperty(\"java.version\")"] returns 11.0.15
Is there a workaround?
Hey! I’ll see what the problem might be soon. Can you write me in telegram/email? I want to clarify the details.
Yes, thank you so much, after your update to 1.0.1 it works perfectly on my Mac!
Thank you so much Kirill! I was in dire need of a solution for Secure Web Sockets like this one.
