I have the following import code in eclipse java class:
package test.mycode;
import java.net.URI;
import javax.websocket.ClientEndpoint;
import javax.websocket.CloseReason;
import javax.websocket.ContainerProvider;
import javax.websocket.OnClose;
import javax.websocket.OnMessage;
import javax.websocket.OnOpen;
import javax.websocket.Session;
import javax.websocket.WebSocketContainer;
public class WebsocketClientEndpoint {
}
I have the following external dependencies added to the project:
javax.websocket-api-1.1.jar
javax-websocket-client-api-1,1,jar
Eclipse gives error for all javax import statements with the message "The package javax.websocket is not accessible". How do I resolve this issue?
Thanks
question from:
https://stackoverflow.com/questions/65906630/unable-to-import-dependencies-in-eclipse-java-project 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…