Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 985231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:08:05+00:00 2026-05-16T05:08:05+00:00

My knowledge of Java is rather rusty, but I’ve been forced to use it

  • 0

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,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T05:08:06+00:00Added an answer on May 16, 2026 at 5:08 am

    After a quick look at jWebSocket, the problem might just be case sensitivity in your package name.

    Try import org.jwebsocket.*;

    That should get your code to compile. Getting it to do something useful, on the other hand… 🙂 try the JavaDocs on the website (the Java/JS Docs link on the jWebSocket website)


    Update: There’s nothing actually in the package org.jwebsocket. There is a class in org.jwebsocket.console, so try import org.jwebsocket.console.*;

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying to freshen up on my Java knowledge and I've been building
My knowledge of xml and php is somewhat basic but have been able to
I have no working knowledge of Java script and am trying to get into
Please forgive my pitiful knowledge of Java EJBs but, when an EJB is deployed
This question probably reveals my total lack of knowledge in Java. But let me
With C++ and C# experience and some little Java knowledge I'm now starting a
First off, I don't have any knowledge about java/jquery/ajax or such, but I think
I have just started studying Android, I have limited java knowledge but am semi
I don't have much knowledge on Java EE but am currently learning it. I've
Hi i've been trying to install the library on Thinking in Java book 4th

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.