已刷新cn1lib文件,但仍然存在相同的错误:“0”;ClassNotFoundException WebSocketNativeImplImpl";
我想在我的已刷新cn1lib文件,但仍然存在相同的错误:“0”;ClassNotFoundException WebSocketNativeImplImpl";,websocket,codenameone,Websocket,Codenameone,我想在我的Codename One项目中使用websockets。 到目前为止,我将cn1 websockets.cn1库复制到我的项目库中,刷新了cn1lib文件,我仍然得到: ClassNotFoundException WebSocketNativeImpl 我得到的是: D:\PIDEV\fixit-mobile\fixit-mobile\lib\impl\native\javase\com\codename1\io\websocket\WebSocketNativeImplImpl.j
Codename One
项目中使用websockets
。
到目前为止,我将cn1 websockets.cn1
库复制到我的项目库中,刷新了cn1lib
文件,我仍然得到:
ClassNotFoundException WebSocketNativeImpl
我得到的是:
D:\PIDEV\fixit-mobile\fixit-mobile\lib\impl\native\javase\com\codename1\io\websocket\WebSocketNativeImplImpl.java:41: error: cannot find symbol
public class WebSocketNativeImplImpl implements com.codename1.io.websocket.WebSocketNativeImpl {
symbol: class WebSocketNativeImpl
location: package com.codename1.io.websocket
D:\PIDEV\fixit-mobile\fixit-mobile\lib\impl\native\javase\com\codename1\io\websocket\WebSocketNativeImplImpl.java:107: error: cannot find symbol
WebSocket.openReceived(id);
symbol: variable WebSocket
同样适用于:
WebSocket.errorReceived(id, t.getMessage(), 0, t);
WebSocket.messageReceived(id, text);
WebSocket.errorReceived(id, t.getMessage(), 0, t);
WebSocket.messageReceived(id, binary);
WebSocket.errorReceived(id, t.getMessage(), 0, t);
很明显,它找不到websocket
类或类似的东西。
我将在cn1 websockets演示
项目中找到的websocket
类复制到我的项目中,但它仍然不起作用。
有什么帮助吗?非常感谢:)您使用的是哪种IDE?您是如何安装cn1lib的?尝试发送生成,它将触发项目的重建,这可能会解决问题。请确保删除您复制的类,因为它可能会中断此过程。嘿,我是通过将
Websocket
类显式复制到包codename1.io.Websocket
中来实现的,我仍然不明白为什么它不与cn1 websockets.cn1
一起提供,但是,我使用的是Netbeans,我用扩展工具安装了它,但是现在它可以工作了,谢谢。你有哪个版本的插件。刷新libs后控制台中的打印输出是什么?最新版本,打印输出是我在问题中包含的消息,这不是刷新libs后的完整打印输出