Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Execution Failed For Task ' :compilejava'


rastus2203
 Share

Recommended Posts

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

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Whoops! Sorry about that. I've updated the code and removed the reference. The errant line (DivineFavourTabGui.java:31) is currently commented out as well.
    • Take a look at the github https://github.com/lordofwizard/mcserver and the video in it if you want to try it out You can host your very own Java/Bedrock Minecraft Server using Google Cloud Shell. This works under Ubuntu/Debian based Linux operation system. This project requires NO CREDIT CARD and the whole project is entirely FREE! You can make a server without costing you anything. The following features are added into this project are:   Supports different type of Bedrock Servers Clean & Friendly Interface Supports Additional type of Java Server (eg. Sponge, Paper, Fabric etc) Added Server Management Easier functional scripts (eg. ./uninstall allows you to delete your server easily) Instant EULA script setup (Completly skipping this part which makes other people's life much easier to manage) Faster Server Installation (It would probably take you like approx 30 seconds to setup a server) Server Specs: OS: Debian GNU/Linux 10 (buster) x86_64 RAM: 8GB to 16GB Location: Based on your physical location. Storage: Approx 5GB CPU: AMD EPYC (2) 7B12 @ 2.249GHz or Intel Xeon (4) @ 2.199GHz You can view your exact specs by doing ./specinfo Keeping the Server Alive 24/7 There's only ONE way to keep your server online longer than 20 minutes: You must Keep your browser open to keep your server online. This so the shell doesn't get terminated when it's unused or the browser is closed. You can also use google cloud sdk if you don't want to keep you browser open (Don't worry, your device that is being used to host your server isn't affected from the intensity of your server.) If you have any method the would possibly keep the server alive 24/7, feel free to Fork this project and request a Pull to this project. Any help will be greatly appreciated. Limitation of this project Google Cloud Shell Quota While I was editing this project, I notice that Google has added a quota for each Cloud Shell uses and you can only host your server for the max of 50 hours per Week. Once you used all of the hours, you can't use it again until next week. No Dedicated IP Sadly you can't use the host IP into your dedicated IP as it won't let you join that server, you can only join your server by the generated dedicated IP provided by playit.gg. If you know how to reverse proxy the tunnel system, you can actually use the host IP to make a dedicated IP for your server but I highly doubt that would ever happen. Mixed Server Specs Each Cloud Shell session will have different specs of your server based on your physical location so you won't always get the best performance of your server but good news being that it's always the range between 8GB to 16GB so you won't have to worry about lag when playing in the server with high processing in your server. Even take a look at this:https://cloud.google.com/shell/docs/limitations Conclusion Now you can host your very own Minecraft Server for both Java & Bedrock fast and easy and it won't cost you a single penny to make a fast and strong server. Best of all, IT'S FOREVER! Feel free to leave any requests you would like me to add into the project. If you have any issues, go to the Issues tab and submit a issue there.
    • Take a look at the github https://github.com/lordofwizard/mcserver and the video in it if you want to try it out You can host your very own Java/Bedrock Minecraft Server using Google Cloud Shell. This works under Ubuntu/Debian based Linux operation system. This project requires NO CREDIT CARD and the whole project is entirely FREE! You can make a server without costing you anything. The following features are added into this project are:   Supports different type of Bedrock Servers Clean & Friendly Interface Supports Additional type of Java Server (eg. Sponge, Paper, Fabric etc) Added Server Management Easier functional scripts (eg. ./uninstall allows you to delete your server easily) Instant EULA script setup (Completly skipping this part which makes other people's life much easier to manage) Faster Server Installation (It would probably take you like approx 30 seconds to setup a server) Server Specs: OS: Debian GNU/Linux 10 (buster) x86_64 RAM: 8GB to 16GB Location: Based on your physical location. Storage: Approx 5GB CPU: AMD EPYC (2) 7B12 @ 2.249GHz or Intel Xeon (4) @ 2.199GHz You can view your exact specs by doing ./specinfo Keeping the Server Alive 24/7 There's only ONE way to keep your server online longer than 20 minutes: You must Keep your browser open to keep your server online. This so the shell doesn't get terminated when it's unused or the browser is closed. You can also use google cloud sdk if you don't want to keep you browser open (Don't worry, your device that is being used to host your server isn't affected from the intensity of your server.) If you have any method the would possibly keep the server alive 24/7, feel free to Fork this project and request a Pull to this project. Any help will be greatly appreciated. Limitation of this project Google Cloud Shell Quota While I was editing this project, I notice that Google has added a quota for each Cloud Shell uses and you can only host your server for the max of 50 hours per Week. Once you used all of the hours, you can't use it again until next week. No Dedicated IP Sadly you can't use the host IP into your dedicated IP as it won't let you join that server, you can only join your server by the generated dedicated IP provided by playit.gg. If you know how to reverse proxy the tunnel system, you can actually use the host IP to make a dedicated IP for your server but I highly doubt that would ever happen. Mixed Server Specs Each Cloud Shell session will have different specs of your server based on your physical location so you won't always get the best performance of your server but good news being that it's always the range between 8GB to 16GB so you won't have to worry about lag when playing in the server with high processing in your server. Even take a look at this:https://cloud.google.com/shell/docs/limitations Conclusion Now you can host your very own Minecraft Server for both Java & Bedrock fast and easy and it won't cost you a single penny to make a fast and strong server. Best of all, IT'S FOREVER! Feel free to leave any requests you would like me to add into the project. If you have any issues, go to the Issues tab and submit a issue there.
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.