Results 1 to 5 of 5
  1. #1
    egbert95 is offline Member
    Join Date
    Jul 2010
    Posts
    9
    Rep Power
    0

    Exclamation Could not find main class: Jframe. Program will exit.

    I have a huge problem, which i cant solve.

    When i try to open a .bat file, with this code:

    @echo off
    title WE NEED TO BE #1 AGAIN SO PLEASE VOTE!
    javaw -Xmx300m Jframe 10 0 highmem members 32
    exit

    An error pops up and says Could not find main class: Jframe. Program will exit.


    Now, i already checked if maybe Jframe.class was missing, but this wasnt the case.

    it looks like my computer just cant detect this file. I've got windows Vista.

    - PLease help me?

    Ask anything you want to, i will reply as fast as i can.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,518
    Rep Power
    25

    Default

    Try using java vs javaw and see if you get a different error message.

    Add "MORE" to the end of the batch file to keep the window open.

  3. #3
    egbert95 is offline Member
    Join Date
    Jul 2010
    Posts
    9
    Rep Power
    0

    Exclamation

    :mad:I removed the W from javaw, but now not an error pops up, but i just get the command prompt and it says something like:

    Exception in thread "Main" java.lang.noclassdeffounderror: Jframe
    blablablablablablablablablablablablablablablablabl ablablablablablablablablablabla
    Could not find the main class: Jframe. Program will exit

    and before i had the command prompt blank, with a line flashing in the left corner, and a message box came to tell be the bad news.
    Last edited by egbert95; 07-29-2010 at 12:00 PM.

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,518
    Rep Power
    25

    Default

    says something like:

    Exception in thread "Main" java.lang.noclassdeffounderror: Jframe
    blablablablablablablablablablablablablablablablabl ablablablablablablablablablabla
    Could not find the main class: Jframe. Program will exit
    Please copy the exact text of the message, don't type from memory.

    Open a command prompt in the folder with the class files and enter:dir to show the files in the folder.
    Then run the java command.
    Copy the contents of the screen here:
    Click on Icon in upper left corner
    Select Edit
    Select 'Select All' - The selection will show
    Click in upper left again
    Select Edit and click 'Copy'

    Paste here.

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,518
    Rep Power
    25

Similar Threads

  1. Replies: 2
    Last Post: 09-22-2011, 09:48 PM
  2. 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
  3. Could not find the main class. Program will exit.
    By XSROSSITER in forum New To Java
    Replies: 0
    Last Post: 01-30-2010, 04:17 AM
  4. Replies: 1
    Last Post: 07-03-2009, 08:41 PM
  5. Could not find the main class. Program will exit.
    By Carrier in forum New To Java
    Replies: 1
    Last Post: 04-22-2009, 02:27 AM

Tags for this Thread

Posting Permissions

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