Jump to content

Recommended Posts

Posted

Hi,

I am unable to compile mod mods as the gradle thingy isn't working.

Here is my error report. (In the command window i typed gradlew build --stacktrace)

 

 

 

The assetDir is deprecated!  Use runDir instead! runDir set to eclipse/assets/..The assetDir is deprecated!  Use runDir instead! runDir set to eclipse/assets/..

 

****************************

Powered By MCP:           

http://mcp.ocean-labs.de/ 

Searge, ProfMobius, Fesh0r,

R4wk, ZeuX, IngisKahn     

MCP Data version : unknown

****************************

:compileApiJava UP-TO-DATE

:processApiResources UP-TO-DATE

:apiClasses UP-TO-DATE

:sourceMainJava

:compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.6

C:\Toms minecraft stuff\ModdingForge\build\sources\java\rastus22\moreCraftingRecipes\client\ClientProxy.java:4: error: package tutorial.generic does not exist

import tutorial.generic.CommonProxy;

                      ^

C:\Toms minecraft stuff\ModdingForge\build\sources\java\rastus22\moreCraftingRecipes\client\ClientProxy.java:6: error: cannot find symbol

public class ClientProxy extends CommonProxy {

                                ^

  symbol: class CommonProxy

C:\Toms minecraft stuff\ModdingForge\build\sources\java\rastus22\moreCraftingRecipes\MoreCraftingRecipes.java:38: error: cannot find symbol

                GameRegistry.addShapelessRecipe(new ItemStack(Items.flint, 64), new ItemStack(Blocks.fire));

                                                    ^

  symbol:  class ItemStack

  location: class MoreCraftingRecipes

C:\Toms minecraft stuff\ModdingForge\build\sources\java\rastus22\moreCraftingRecipes\MoreCraftingRecipes.java:38: error: cannot find symbol

                GameRegistry.addShapelessRecipe(new ItemStack(Items.flint, 64), new ItemStack(Blocks.fire));

                                                              ^

  symbol:  variable Items

  location: class MoreCraftingRecipes

C:\Toms minecraft stuff\ModdingForge\build\sources\java\rastus22\moreCraftingRecipes\MoreCraftingRecipes.java:38: error: cannot find symbol

                GameRegistry.addShapelessRecipe(new ItemStack(Items.flint, 64), new ItemStack(Blocks.fire));

                                                                                    ^

  symbol:  class ItemStack

  location: class MoreCraftingRecipes

C:\Toms minecraft stuff\ModdingForge\build\sources\java\rastus22\moreCraftingRecipes\MoreCraftingRecipes.java:38: error: cannot find symbol

                GameRegistry.addShapelessRecipe(new ItemStack(Items.flint, 64), new ItemStack(Blocks.fire));

                                                                                              ^

  symbol:  variable Blocks

  location: class MoreCraftingRecipes

C:\Toms minecraft stuff\ModdingForge\build\sources\java\rastus22\moreCraftingRecipes\MoreCraftingRecipes.java:38: error: cannot find symbol

                GameRegistry.addShapelessRecipe(new ItemStack(Items.flint, 64), new ItemStack(Blocks.fire));

                ^

  symbol:  variable GameRegistry

  location: class MoreCraftingRecipes

C:\Toms minecraft stuff\ModdingForge\build\sources\java\rastus22\moreCraftingRecipes\client\ClientProxy.java:8: error: method does not override or implement a method from a supertype

        @Override

        ^

8 errors

1 warning

FAILED

 

FAILURE: Build failed with an exception.

 

* What went wrong:

Execution failed for task ':compileJava'.

> Compilation failed; see the compiler error output for details.

 

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

 

BUILD FAILED

 

Total time: 14.73 secs

 

 

 

 

Also in other forums people ask for the gradlew build -v

so here it is

 

The assetDir is deprecated!  Use runDir instead! runDir set to eclipse/assets/..The assetDir is deprecated!  Use runDir instead! runDir set to eclipse/assets/..

 

****************************

Powered By MCP:           

http://mcp.ocean-labs.de/ 

Searge, ProfMobius, Fesh0r,

R4wk, ZeuX, IngisKahn     

MCP Data version : unknown

****************************

:help

 

Welcome to Gradle 1.12.

 

To run a build, run gradlew <task> ...

 

To see a list of available tasks, run gradlew tasks

 

To see a list of command-line options, run gradlew --help

 

BUILD SUCCESSFUL

 

Total time: 11.279 secs

 

Please help,

Rastus2203

 

P.S.

I have set my JAVA_HOME to the JDK folder

 

Posted

This is very basic java, your code does not compile, please learn the basic java.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I myself am quite new to the modding scene, I started modding in February but have been in development hell a lot and have struggled to focus on one mod though I have been developing the current mod I've been working on since September and have made a lot of progress; during this time I have found a lot of helpful resources and have learnt a lot of things.    1. You can, I have had no Java experience previously and since modding have managed to be quite knowledgeable in Java.   2. Modding does not require massive teams, I and many others work alone, though having a team is certainly helpful in the modding process to get things done in a quicker and more organised way.   3. I absolutely have to recommend ModdingByKaupenjoe, he makes loads of tutorials for Minecraft from 1.16.5 and above with support for Forge, Fabric, and as of his 1.21 tutorials, Neoforge. These tutorials are really well made, covering almost every modding topic, (such as items, blocks, mobs, worldgen, etc.) and are pretty easy to follow, and Kaupenjoe always leaves the link to his GitHub repositories where you can view the code of that tutorial at your own pace as well as linking textures in the description of his videos for you to use. These forums are also quite good if you need help, though I have found that it sometimes takes a little while for a response but it is always worth the wait; from my experience the people on these forums have always been kind and helpful. There are also user-submitted tutorials that may be helpful as well.  Using GitHub to search up a certain class that you are wanting to use in your mod is also quite helpful, the video I have linked goes into more detail. I would also recommend planning out your mod before you make it to have a clearer idea of how you want your mod to be, including sketches and annotations are also a good idea for this. It has helped me make progress a lot quicker when programming as I already know how I want things to look/act.   I hope all this information helps!
    • I don't know what I did differently, but the error code changed to "Invalid signature for profile public key" so I set "enforce-secure-profile" to false since only my friend will be allowed to join anyway and then everything worked properly. Here's the logs anyway, but I hope the problem doesn't come back. https://paste.ee/p/Ri44L
    • I tried to look for similar issues here on the forum already and couldn't find a fix. Just people who didn't read the rules properly.
  • Topics

×
×
  • Create New...

Important Information

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