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 9151773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:53:03+00:00 2026-06-17T11:53:03+00:00

I am creating a Jetty project, as a learning experience. I’m 15 and just

  • 0

I am creating a Jetty project, as a learning experience. I’m 15 and just exploring the programming world and looking to find something I like, and taking in as much information as I can along the way.

I have just started creating my Jetty server following this tutorial, http://wiki.eclipse.org/Jetty/Tutorial/Jetty_HelloWorld

I have reached the final step and am trying to start my server with

java -cp jetty-all.jar:servlet-api-2.5.jar HelloWorld

I am trying to run it on a Mac and this is my error message

Error: Could not find or load main class HelloWorld

Does anyone know what could be causing this? I have already compiled the HelloWorld.java file and used

javac -cp servlet-api-2.5.jar:jetty-all.jar HelloWorld.java

Can anyone help with this issue?

Thanks in advance. I just need to be pointed in the right direction here. 🙂

-Henry Harris

  • 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-06-17T11:53:05+00:00Added an answer on June 17, 2026 at 11:53 am

    If you did the javac command as the tutorial, try this command line…

    java -cp jetty-all.jar:servlet-api-2.5.jar:. HelloWorld
    

    Notice the extra :. piece, that will also use the current directory to find the HelloWorld.class file.

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

Sidebar

Related Questions

I am creating a simple Jetty server and am wondering how to print something
Creating a C# install package and I'd like on completed install for the Program
Creating a login system for something and am getting: Warning: mysql_result(): supplied argument is
I am creating a web service with spring + jetty + cxf using the
Creating an iOS app in Flash Builder 4.5 which is a small Hello World
I'm creating a java web application which should run on multiple application servers (jetty,
creating a small web application to be deployed on Heroku, where we would like
Creating a default ASP.NET MVC project in Visual Studio sets up a basic project
Creating a relatively simple data entry form, and just want to separate certain sections
I can't start eclipse 3.6 helios on ubuntu 10.10 after creating dynamic web project

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.