Hi,
My knowledge of Java is rather rusty, but I've been forced to use it and am having some terrible classpath troubles...
I'm trying to import a jwebserver class. It should be straightforward, but I don't know how!
Here is my server.java file:
import java.io.*;
import org.jWebSocket.*;
public class server
{
public static void main(String args[])
{
System.out.println("Hello World!");
}
}
And here is the error when I try to compile:
>>> javac -classpath ./libs/jWebSocketServer-0.9.5.jar server.java
server.java:2: package org.jWebSocket does not exist
import org.jWebSocket.*;
^
1 error
Here is an ls output:
>>> ls
bin conf libs logs server.java
and here is an ls ./libs output:
>>> ls ./libs
commons-lang-2.5.jar
javolution-5.5.1.jar
json-2-RELEASE65.jar
jWebSocketAdmin-0.9.5.jar
jWebSocketCluster-0.9.5.jar
jWebSocketCore-0.9.5.jar
jWebSocketCustomServer-0.9.5.jar
jWebSocketFactory-0.9.5.jar
jWebSocketNettyEngine-0.9.5.jar
jWebSocketPlugins-0.9.5.jar
jWebSocketSamples-0.9.5.jar
jWebSocketServer-0.9.5.jar
jWebSocketSharedObjects-0.9.5.jar
jWebSocketTCPEngine-0.9.5.jar
jWebSocketTokenServer-0.9.5.jar
jWebSocketToolkit-0.9.5.jar
log4j-1.2.15.jar
netty-3.2.0.BETA1.jar
servlet-api-2.5-6.1.14.jar
slf4j-api-1.5.10.jar
slf4j-jdk14-1.5.10.jar
I'm hoping someone can help me here.
Many thanks in advance,