Results 1 to 3 of 3
  1. #1
    Stoyicker is offline Member
    Join Date
    Jan 2012
    Posts
    32
    Rep Power
    0

    Default Error: Could not find or load the main class build.jar

    Yes, I'm getting that error. I have main class, with its main method

    Java Code:
    public final class MainClass extends JFrame
    Java Code:
    public static void main(final String[] args)
    And the MANIFEST.MF file looks like this:


    Manifest-Version: 1.0
    Sealed: true
    Main-Class: tableApp.mt4j.MainClass

    So I don't understand why I'm getting that error...

    Anyone can help?

    Thanks.

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,438
    Blog Entries
    7
    Rep Power
    20

    Default Re: Error: Could not find or load the main class build.jar

    Were you trying to run the thing as:

    Java Code:
    java build.jar
    ? It doesn't work; you have to add the -jar flag ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    Stoyicker is offline Member
    Join Date
    Jan 2012
    Posts
    32
    Rep Power
    0

    Default Re: Error: Could not find or load the main class build.jar

    Ah of course, that was the error, thanks.

Similar Threads

  1. Replies: 29
    Last Post: 02-02-2012, 08:23 PM
  2. Replies: 7
    Last Post: 01-01-2012, 12:29 PM
  3. Replies: 3
    Last Post: 12-09-2011, 03:51 AM
  4. Error: Could not find or load main class Ops.java
    By Javasubbu in forum New To Java
    Replies: 4
    Last Post: 10-05-2011, 10:52 PM
  5. Error: Could not find or load main class
    By ITSlave in forum New To Java
    Replies: 4
    Last Post: 09-15-2011, 09:47 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
  •