WebSocketServer in PhpStorm plugin
已回答
Hello
Developing plugin for PhpStorm. I need to create WebSocketServer. Trying to use org.java_websocket.server.WebSocketServer. It works in development environment (IntelliJ IDEA Community Edition -> run plugin). But when I'm trying to install/use this plugin in PhpStorm in other pc - it throws the error "Caused by: java.lang.NoClassDefFoundError: org/java_websocket/server/WebSocketServer"
How can I fix NoClassDefFoundError? Or does exist any other way to implement WebSocketServer in plugin for PhpStorm?
By the way I notice that IntelliJ IDEA use phpstorm pack -withSources. Is it possible to import sources with plugin or any other way?
Thank
请先登录再写评论。
The library is not bundled with all IDEs, so your plugin will need to bundle it in its distribution.
You can check available libraries from here: https://plugins.jetbrains.com/docs/intellij/api-changes-list.html#library-updates
> By the way I notice that IntelliJ IDEA use phpstorm pack -withSources. Is it possible to import sources with plugin or any other way?
Sorry, what exactly do you mean?