Results 1 to 2 of 2
  1. #1
    dabbedoom is offline Member
    Join Date
    Aug 2011
    Rep Power

    Default Can't open .Jar file


    I have had problems to open jar files for a long time and decided first now to get some help with it. I am trying to assign more memory to a program called '' Spoutraft '', another version of Minecraft. But to even try to do that I need to open a jar file so I can start installing the launcher.

    I am trying ot open it by double-clicking and also tried the CMD. All it says is '' Could not find the main class: C:\Users\Daniel Schnell\Desktop\Spoutcraft.jar. Program will exit. ''

    Any suggestions how to fix this? I have tried to open with both javaw and java, nothing works.

    Thank you in advance!

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power


    If the jar file contains an application intended to run when you enter the command: java -jar <JARFILE>.jar
    then it will have a manifest file listing what class is to be executed first.
    If the jar contains an applet to be executed in a browser, it does not use the manifest file. The <APPLET tag has a CODE= attribute that specifies what the starting class is.

    What is in the jar file and how is it to be executed?

    Open the jar in a zip file utility and see if it has a manifest file and see what is in that file.

Similar Threads

  1. Open File xls
    By karno in forum NetBeans
    Replies: 4
    Last Post: 03-21-2010, 08:16 AM
  2. Replies: 0
    Last Post: 03-05-2010, 05:21 AM
  3. Different Files Open in File -> Open Workspace
    By mgm2010 in forum JCreator
    Replies: 0
    Last Post: 04-11-2009, 03:14 PM
  4. To open an image file such as Jpeg file using JAva Program
    By itmani2020 in forum Advanced Java
    Replies: 10
    Last Post: 07-11-2008, 10:57 AM
  5. Is it possible to open a txt file?
    By jason27131 in forum New To Java
    Replies: 20
    Last Post: 08-07-2007, 02:24 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