Skip to content

Instantly share code, notes, and snippets.

@tagrudev
Created September 11, 2012 12:35
Show Gist options
  • Save tagrudev/3698101 to your computer and use it in GitHub Desktop.
Save tagrudev/3698101 to your computer and use it in GitHub Desktop.
socket.io
tagrudev:socket.io-java-client/ (master) $ sudo ant jar [15:33:26]
Buildfile: /home/tagrudev/Code/socket.io-java-client/build.xml
init:
build-project:
[echo] socket.io-java-client: /home/tagrudev/Code/socket.io-java-client/build.xml
[javac] /home/tagrudev/Code/socket.io-java-client/build.xml:40: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 9 source files to /home/tagrudev/Code/socket.io-java-client/bin
[javac] /home/tagrudev/Code/socket.io-java-client/src/io/socket/WebsocketTransport.java:11: package org.java_websocket.client does not exist
[javac] import org.java_websocket.client.DefaultSSLWebSocketClientFactory;
[javac] ^
[javac] /home/tagrudev/Code/socket.io-java-client/src/io/socket/WebsocketTransport.java:12: package org.java_websocket.client does not exist
[javac] import org.java_websocket.client.WebSocketClient;
[javac] ^
[javac] /home/tagrudev/Code/socket.io-java-client/src/io/socket/WebsocketTransport.java:13: package org.java_websocket.handshake does not exist
[javac] import org.java_websocket.handshake.ServerHandshake;
[javac] ^
[javac] /home/tagrudev/Code/socket.io-java-client/src/io/socket/WebsocketTransport.java:15: cannot find symbol
[javac] symbol: class WebSocketClient
[javac] class WebsocketTransport extends WebSocketClient implements IOTransport {
[javac] ^
[javac] /home/tagrudev/Code/socket.io-java-client/src/io/socket/WebsocketTransport.java:86: cannot find symbol
[javac] symbol : class ServerHandshake
[javac] location: class io.socket.WebsocketTransport
[javac] public void onOpen(ServerHandshake handshakedata) {
[javac] ^
[javac] /home/tagrudev/Code/socket.io-java-client/src/io/socket/WebsocketTransport.java:15: io.socket.WebsocketTransport is not abstract and does not override abstract method send(java.lang.String) in io.socket.IOTransport
[javac] class WebsocketTransport extends WebSocketClient implements IOTransport {
[javac] ^
[javac] /home/tagrudev/Code/socket.io-java-client/src/io/socket/WebsocketTransport.java:25: incompatible types
[javac] found : io.socket.WebsocketTransport
[javac] required: io.socket.IOTransport
[javac] return new WebsocketTransport(uri, connection);
[javac] ^
[javac] /home/tagrudev/Code/socket.io-java-client/src/io/socket/WebsocketTransport.java:33: cannot find symbol
[javac] symbol : class DefaultSSLWebSocketClientFactory
[javac] location: class io.socket.WebsocketTransport
[javac] this.setWebSocketFactory(new DefaultSSLWebSocketClientFactory(context));
[javac] ^
[javac] /home/tagrudev/Code/socket.io-java-client/src/io/socket/WebsocketTransport.java:43: cannot find symbol
[javac] symbol : method close()
[javac] location: class io.socket.WebsocketTransport
[javac] this.close();
[javac] ^
[javac] /home/tagrudev/Code/socket.io-java-client/src/io/socket/WebsocketTransport.java:73: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] /home/tagrudev/Code/socket.io-java-client/src/io/socket/WebsocketTransport.java:79: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] /home/tagrudev/Code/socket.io-java-client/src/io/socket/WebsocketTransport.java:85: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] /home/tagrudev/Code/socket.io-java-client/src/io/socket/WebsocketTransport.java:96: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] 13 errors
BUILD FAILED
/home/tagrudev/Code/socket.io-java-client/build.xml:40: Compile failed; see the compiler error output for details.
Total time: 1 second
@mvecchio
Copy link

Hi,
it seems an issue with build.xml.
Try the following:

@mvecchio
Copy link

diff --git a/build.xml b/build.xml
index 6eba5c8..afa2eb6 100644
--- a/build.xml
+++ b/build.xml
@@ -18,7 +18,7 @@


  •    <pathelement location="libs/weberknecht-0.1.1.jar"/>
    
  •    <pathelement location="libs/WebSocket.jar"/>
     <path refid="JUnit 4.libraryclasspath"/>
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment