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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:23:53+00:00 2026-05-25T10:23:53+00:00

I successfully compiled my source using this command: javac -classpath ..\lwjgl-2.7.1\jar\lwjgl.jar Game.java However, when

  • 0

I successfully compiled my source using this command:

javac -classpath "..\lwjgl-2.7.1\jar\lwjgl.jar" Game.java

However, when I try to run it using:

java -classpath "..\lwjgl-2.7.1\jar\lwjgl.jar" Game

, it gives me an error:

Error: Could not find or load main class Game

What have I done wrong!? 🙁

I am certain that there are no syntactical errors and class labeling anomalies.

EDIT: I’ve also tried running the program using this command, but still nothing. T.T

java -cp "..\lwjgl-2.7.1\jar\lwjgl.jar" -Djava.library.path="..\lwjgl-2.7.1\native\windows" Game
  • 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-25T10:23:54+00:00Added an answer on May 25, 2026 at 10:23 am

    Here is the answer, after endless hours of sitting on my toilet…

    java -cp "..\lwjgl-2.7.1\jar\lwjgl.jar"; -Djava.library.path="..\lwjgl-2.7.1\native\windows" Game
    

    Note the semi-colon after the -cp. The SEMI-COLON. That was all that I was lacking. A FRIGGIN’ SEMI-COLON.

    I hope nobody commits the mistake I did.

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

Sidebar

Related Questions

I have been using UIBinder on SmartGWT widgets rather successfully. However, I have to
I've successfully built SDL from source using bcc 5.5.1 but any SDL test application
I've successfully compiled and used FOP 1.0 with IKVM 0.44.5 in .NET, however I
I am using open source C++ library DCMTK from http://dicom.offis.de/dcmtk.php.en . I have successfully
In a Java project, I am using an ojdbc6 jar <dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc6</artifactId> <version>11.2.0.1.0</version>
I had download and compiled the source code from GIT, and also successfully runs
Can iPhone applications compiled against 2.1 be successfully installed via iTunes on a 2.0
Has anyone successfully implemented a Java based solution that uses Microsoft SQL Server 2005
I can successfully connect to MySQL from a DOS prompt, but when I try
I have downloaded pdcurses source and was able to successfully include curses.h in my

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.