MC Modding
Please register and join the community!


Join the forum, it's quick and easy

MC Modding
Please register and join the community!
MC Modding
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[Answered] Could not find or load main class Start

2 posters

MC Modding :: Help :: Help

Go down

[Answered] Could not find or load main class Start Empty [Answered] Could not find or load main class Start

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

When I run startclient.bat I get this error:
[Answered] Could not find or load main class Start JBDHA
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
mastereric
mastereric
Member

Posts : 30
Join date : 2011-10-26

Back to top Go down

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

Post by lcass 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

https://www.youtube.com/user/thealcasgroup

Back to top Go down

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

Post by mastereric 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:
[Answered] Could not find or load main class Start Iorfq
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.
mastereric
mastereric
Member

Posts : 30
Join date : 2011-10-26

Back to top Go down

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

Post by lcass 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

https://www.youtube.com/user/thealcasgroup

Back to top Go down

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

Post by mastereric 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?
mastereric
mastereric
Member

Posts : 30
Join date : 2011-10-26

Back to top Go down

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

Post by lcass 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

https://www.youtube.com/user/thealcasgroup

Back to top Go down

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

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

I copied Fresh from [url=https://mcmodding.4umer.com/t7-181-item] this thread, then changed the item where needed and got this error:
[Answered] Could not find or load main class Start B4liC
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.
mastereric
mastereric
Member

Posts : 30
Join date : 2011-10-26

Back to top Go down

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

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

MC Modding :: Help :: Help

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