Results 1 to 3 of 3
  1. #1
    Andyj is offline Member
    Join Date
    Oct 2009
    Posts
    10
    Rep Power
    0

    Default Could not find main class

    Hi there

    A friend of mine asked me to write him a program. It's pretty simple text based program and only has only one class called Party. It works fine in DOS.

    I'm trying to get it to work as an .exe in Windows so he can use it. I have created my executable JAR and set up the manifest which is below:

    Manifest-version: 1.0
    Created-By 1.6.0_01 (Sun Microsystems Inc.)
    Main-Class: Party

    I'm trying to get JSmooth to make it runnable in Widows, but no matter what I do (and I've been at this for hours!) I get the message "Could not find the main class: Party. Program will exit"

    Would be massively grateful for any advice.

    Thnks!

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Sounds like more of a JSmooth problem than a Java problem. Do they have a support site? If so, your best bet is to ask there. Much luck!

  3. #3
    Andyj is offline Member
    Join Date
    Oct 2009
    Posts
    10
    Rep Power
    0

    Default

    Thanks! will check it out & failing that willll try another program, I think there are a few others.

Similar Threads

  1. 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
  2. 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
  3. Cannot find Main class in Linux OS
    By msskiran in forum Eclipse
    Replies: 0
    Last Post: 04-10-2009, 02:04 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
  •