MC Modding
Please register and join the community!

[Answered] Could not find or load main class Start

MC Modding :: Help :: Help

View previous topic View next topic Go down

[Answered] Could not find or load main class Start

Post by mastereric on Thu Oct 27, 2011 1:25 am

When I run startclient.bat I get this error:

P.S. I know this is a repeat topic but the one that already exists does not give how the guy found his solution.


Last edited by mastereric on Fri Oct 28, 2011 2:06 am; edited 1 time in total
avatar
mastereric
Member

Posts : 30
Join date : 2011-10-26

View user profile

Back to top Go down

Re: [Answered] Could not find or load main class Start

Post by lcass on Thu Oct 27, 2011 7:32 pm

copy out your classes and put them in a folder do clean up and then decompile a new jar and copy in your .javas and then try it again

lcass
Member

Posts : 145
Join date : 2011-10-24
Location : england

View user profile http://www.youtube.com/user/thealcasgroup

Back to top Go down

Re: [Answered] Could not find or load main class Start

Post by mastereric on Fri Oct 28, 2011 12:04 am

Weird!
I copied the classes out, ran cleanup.bat, and then decompiled again. I saw Start.class under MCP_dirtytools\bin\minecraft . However, then I added my classes, recompiled. Had these error messages:

Then I run startclient and it has that error again! Where did start.class go? Does it have something to do with my code errors?
P.S. If you want to see my code you can.
avatar
mastereric
Member

Posts : 30
Join date : 2011-10-26

View user profile

Back to top Go down

Re: [Answered] Could not find or load main class Start

Post by lcass on Fri Oct 28, 2011 12:09 am

its your mod in the file mod_DirtyTools read the errors and go and fix them

lcass
Member

Posts : 145
Join date : 2011-10-24
Location : england

View user profile http://www.youtube.com/user/thealcasgroup

Back to top Go down

Re: [Answered] Could not find or load main class Start

Post by mastereric on Fri Oct 28, 2011 12:40 am

According to the errors, Line 15 is causing 2 of the 3 errors, but I see no problem! Here is my code?
Code:
package net.minecraft.src;

public class mod_DirtyTools extends BaseMod
{
  public static final Item dirtyingot = new Item(30000).setItemName("dirtyingot");

public mod_DirtyTools()
{
  dirtyingot.iconIndex = ModLoader.addOverride("/gui/items.png", "/dirtytools/dirtyingot.png");
  ModLoader.AddName(dirtyingot, "Dirty Ingot");
  ModLoader.AddRecipe(new ItemStack(dirtyingot, 1), new Object[] {
     "SSS", "DDD", "SSS", Character.valueOf('S'), Block.sand, Character.valueOf('D'), Block.dirt
     });

public String Version();
{
  return "1.8.1";
}
 
}
What is wrong?
avatar
mastereric
Member

Posts : 30
Join date : 2011-10-26

View user profile

Back to top Go down

Re: [Answered] Could not find or load main class Start

Post by lcass on Fri Oct 28, 2011 12:41 am

try recoding it see if it gets fixed

lcass
Member

Posts : 145
Join date : 2011-10-24
Location : england

View user profile http://www.youtube.com/user/thealcasgroup

Back to top Go down

Re: [Answered] Could not find or load main class Start

Post by mastereric on Fri Oct 28, 2011 1:02 am

I copied Fresh from [url=http://mcmodding.4umer.com/t7-181-item] this thread, then changed the item where needed and got this error:

EDIT: I thought 'Wait a minute... these all mention modloader!'
So I checked and i forgot to install modloader in the new bin folder! Embarassed
BRB While I try again
EDIT2: Here's what happened:
After installing modloader, fixing a misplaced capital letter, and adding a forgotten texture file, it worked perfectly! cheers cheers cheers
EDIT3: Forgot to mark as answered. I marked it as answered now.
avatar
mastereric
Member

Posts : 30
Join date : 2011-10-26

View user profile

Back to top Go down

Re: [Answered] Could not find or load main class Start

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


MC Modding :: Help :: Help

 
Permissions in this forum:
You cannot reply to topics in this forum