Jump to content

Recommended Posts

Posted

HELP! My Mod Works Fine When Running In Eclipse No Errors At All But When I Export It As A Java File Minecraft Wont Load It It Crashes Saying That this.setUnlocalizedName isn't a recognized string the so i removed it for that class file, just to see if it would work well i go to launch it again and it says that this.setTexturename isnt recognized so i delete that and try again then it says that this.setCreativeTab(CreativeTabs.tabMaterials) isnt recognized so i just deleted that too, THEN it said it had an error with one of the blocks i added material name Material.glass, so remember this is on 1.7.2 and im just starting to mod im using forge version 10.12.0.1034 and thats the same version i used in minecraft i also tried many other versions with no luck so if you need any other information tell me and i will gladly give it to you! Thanks!

Posted

I'm using eclipse Luna so i go up to file then in the drop down window i click export then it appears with ways to export i click java jar file then i select the folders i want to export (src/main/java and src/main/resources)and when its all done a jar file appears on my desktop, and inside is assets, com, META-INF, and mcmod-info.

Posted

I'm using eclipse Luna so i go up to file then in the drop down window i click export then it appears with ways to export i click java jar file then i select the folders i want to export (src/main/java and src/main/resources)and when its all done a jar file appears on my desktop, and inside is assets, com, META-INF, and mcmod-info.

 

There's your problem. Use Gradle to export, the same way you used it to create your sources. The command is "gradlew build". When it's finished your mod .jar will be in the build/libs/ folder.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.