Results 1 to 2 of 2
  1. #1
    Carrier is offline Member
    Join Date
    Apr 2009
    Location
    Niagara Falls, New York
    Posts
    2
    Rep Power
    0

    Default Could not find the main class. Program will exit.

    I am very new to Java, and have recently downloaded a Private Server for a JAVA Based game called RuneScape. I have the run.batch file with this code:
    [QUOTE][@ECHO OFF
    title RovaScape Client V6-2
    START javaw -Xmx500m -cp .;Theme.jar Gui
    exit /QUOTE]

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default

    The error message means that the Java runtime could not find the class called Gui.

    Either a file Gui.class should be present in the current directory when you run the batch file, or there should be an entry named Gui.class in the file Theme.jar (which should also be in the current directory). You can look at the contents of this jar file using WinZip or similar as it is a valid zip file.

    You mention that you are "new to Java", but recognise that this is a Java programming forum. If you are new to using Java you will find better help at some forum devoted to RuneScape or from whereever you downloaded the files. (Check that the download didn't come with installation and usage instructions first!)

Similar Threads

  1. Replies: 2
    Last Post: 09-22-2011, 09:48 PM
  2. Replies: 6
    Last Post: 05-18-2010, 05:11 PM
  3. Could not find the main class, program will exit.
    By aryubi in forum New To Java
    Replies: 39
    Last Post: 02-19-2010, 10:02 AM
  4. Could not find main class - JDK 1.6
    By Syranno in forum New To Java
    Replies: 1
    Last Post: 07-25-2008, 04:07 PM
  5. JVM Could not find main class
    By banduskank in forum Advanced Java
    Replies: 2
    Last Post: 06-24-2008, 08:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •