Results 1 to 8 of 8
  1. #1
    yetty4ever is offline Member
    Join Date
    Feb 2011
    Posts
    5
    Rep Power
    0

    Default Could not find main class

    i know next to nothing about java ,basically nothing. Im using windows 7 premium,no viruses,malware or anything. I play a game called minecraft wich uses java. I am trying to use this [JAR] TFCs Mod Manager [UPDATE 14.1] Check mods updates! - Minecraft Forums when i download it it downloads in a rar format,i then have it put on my desktop. Well the instructions say to run the program with javaw.exe , I figured out how to select the javaw.exe . So now the file is displayed as a page with the java logo instead of the stack of books . When i double click to run it i keep getting" could not find main class,its like this for every program i download. I have been on google searching high and low for a fix. Ive uninstalled ,reinstalled,rebooted,registry cleaner.etc..... NOTHING HAS WORKED.Java's website just says to reinstall.wich ive done 5 times today lol.

  2. #2
    milovan is offline Senior Member
    Join Date
    Jan 2011
    Location
    Belgrade, Serbia
    Posts
    292
    Rep Power
    4

    Default

    Can you give us a list of folders / files inside the rar archive?

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  4. #4
    yetty4ever is offline Member
    Join Date
    Feb 2011
    Posts
    5
    Rep Power
    0

    Default

    alrite,i did post in the forum itself,along with about 4 other people,from what ive gathered its a random issue,some people with windows 7 have the issue and some dont. Ive gone through my process of cleaning up my drive and registry and all that . Heres what is in the file. 2 FILES (META-INF) AND (Minecraftmodmanager) ok,then if i open the meta-inf it has
    MAINFEST.MF

    Minecrafmodmanager has

    59 files ranging from ColorRenderer.class to main$1.class
    main$20.class
    main.class etc....

  5. #5
    yetty4ever is offline Member
    Join Date
    Feb 2011
    Posts
    5
    Rep Power
    0

    Default

    also i went to cnet and found a program called java runner,tried to download it and it came up COULD NOT FIND MAIN CLASS lol,i cant even download a java program ?

  6. #6
    yetty4ever is offline Member
    Join Date
    Feb 2011
    Posts
    5
    Rep Power
    0

    Default

    ok so since i have next to NO computer knowledge it has been long and frustrating,BUT ,i found a program that will open my ,jar files ,its called executor ,it seems as though windows 7 sumtimes ( 50/50 % chance) will not create the proper stuff to run a jar threw java . So this program called executor on cnet simply has you drag and drop the .jar program onto it and creates it all for you. Wish there was another way though,have to admit that having to use another program just to run a program sucks.

  7. #7
    milovan is offline Senior Member
    Join Date
    Jan 2011
    Location
    Belgrade, Serbia
    Posts
    292
    Rep Power
    4

    Default

    So you find a solution for your program?
    But I am very curious about your problem. Can you open a MANIFEST file with notepad and see if there is an entry for Main-Class:. The name of a class with the main method should be there. Check if a class with that name exists in the other folder. If not than probably the jar is not ment to be executable or you have an isue with your system.

  8. #8
    yetty4ever is offline Member
    Join Date
    Feb 2011
    Posts
    5
    Rep Power
    0

    Default

    from what ive gathered (even with me having no java knowledge) is that "SOME" windows 7 users are finding that java is not creating the proper paths or something and that the only way around is either through a program like executor or a command prompt .Executor places a icon on your desktop and you take the file/program or w/e your wanting to run with java and drag and drop ontop of the icon,it then creates the proper paths etc.

Similar Threads

  1. Could Not Find Main Class (again)
    By illjavathat in forum New To Java
    Replies: 25
    Last Post: 11-23-2010, 09:49 AM
  2. Could Not Find Main Class (AGAIN!)
    By illjavathat in forum New To Java
    Replies: 54
    Last Post: 10-22-2010, 03:22 AM
  3. couldn't find main class
    By demonoid in forum New To Java
    Replies: 6
    Last Post: 10-10-2010, 02:44 AM
  4. could not find main class?
    By deathnote202 in forum New To Java
    Replies: 6
    Last Post: 05-10-2010, 08:57 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
  •