Jump to content

Recommended Posts

Posted (edited)

im new to minecraft modding. I want to set up my first project. i followed the instructions on the website but the only libraries eclipse installs are the java libary and the gradle wrapper and now i cannot start on my mod.

Edited by DarkAssassin
typo
Posted

I set up a project today for 1.15.2, but it should be the same way:

.\gradlew eclipse

.\gradlew genEclipseRuns

 

then imported into eclipse workspace as existing project (not the existing gradle project).

 

When I run .\gradlew tasks the list includes:

  Quote

IDE tasks
---------
cleanEclipse - Cleans all Eclipse files.
eclipse - Generates all Eclipse files.

 

Fg_runs tasks
-------------
genEclipseRuns
genIntellijRuns
genVSCodeRuns
prepareRunClient
prepareRunData
prepareRuns
prepareRunServer
runClient
runData
runServer

Expand  

 

Posted
  On 4/8/2020 at 10:56 PM, Ugdhar said:

I set up a project today for 1.15.2, but it should be the same way:

.\gradlew eclipse

.\gradlew genEclipseRuns

 

then imported into eclipse workspace as existing project (not the existing gradle project).

 

When I run .\gradlew tasks the list includes:

 

Expand  

where exactly do i need to write that? console? Eclipse? a seperate gradle.build? console doesn´t work if i just type .\gradle tasks the only tasks shown are help tasks buildEnvironment, tasks, projects, ... and the two build setup tasks init and wrapper. it says only these are runnable from the root project. how do i change the root project? gradle in console is currently using my main computer account as a

root project 

Posted

You need to open the console in your project folder.
You can either do Shift+Right Click (once in your folder) and open the console from there or do the "CD <path>" command in the console to your project folder.

Note that gradlew isn't a Gradle command. It comes with the Forge zip file (the one you use for your project). That is why gradlew is unknown if you try to execute the command outside of your project folder.

Reminder of the steps:
 

  Quote

- Download the necessary Forge MDK and extract it; it will become your project folder
- Open the CMD console in your project
- Execute the following command: gradlew genEclipseRuns
- Execute the following command as well: gradlew Eclipse
- In Eclipse, import your project folder.

*The steps will be slightly different if you use IntelliJ instead of Eclipse
**If you wish to move your project, you'll need to do the gradlew commands again, at the new location

Expand  

 

Posted
  On 4/9/2020 at 12:16 AM, QcDiablo said:

You need to open the console in your project folder.
You can either do Shift+Right Click (once in your folder) and open the console from there or do the "CD <path>" command in the console to your project folder.

Note that gradlew isn't a Gradle command. It comes with the Forge zip file (the one you use for your project). That is why gradlew is unknown if you try to execute the command outside of your project folder.

Reminder of the steps:
 

 

Expand  

i was able to launch the daemon outside of the folder but now i get this reply:

 

FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.9/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Posted

Hmmm

Have you downloaded the right Java versions? Java 8 is needed, both JRE and JDK.
You'll also need to change some environment variables if you haven't already, for Java and for Gradle.

It is quite hard to help on this installation without knowing exactly which steps you did and which ones you didn't.
But first you should try running the command with --stacktrace and see what exactly is the problem you're encountering, it's often the best way to determine what you did wrong.

Posted
  On 4/9/2020 at 12:40 AM, QcDiablo said:

Hmmm

Have you downloaded the right Java versions? Java 8 is needed, both JRE and JDK.
You'll also need to change some environment variables if you haven't already, for Java and for Gradle.

It is quite hard to help on this installation without knowing exactly which steps you did and which ones you didn't.
But first you should try running the command with --stacktrace and see what exactly is the problem you're encountering, it's often the best way to determine what you did wrong.

Expand  

i already changed the environment variables but i think i have a higher java that works with playing minecraft mods

 

the output with stacktrace is this:

 

To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.9/userguide/gradle_daemon.html.
FAILURE: Build failed with an exception.
> Starting Daemon
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.9/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap


* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
org.gradle.api.GradleException: Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.9/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap

        at org.gradle.launcher.daemon.client.DaemonGreeter.parseDaemonOutput(DaemonGreeter.java:35)
        at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startProcess(DefaultDaemonStarter.java:160)
        at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startDaemon(DefaultDaemonStarter.java:136)
        at org.gradle.launcher.daemon.client.DefaultDaemonConnector.doStartDaemon(DefaultDaemonConnector.java:212)
        at org.gradle.launcher.daemon.client.DefaultDaemonConnector.startSingleUseDaemon(DefaultDaemonConnector.java:237)
        at org.gradle.launcher.daemon.client.SingleUseDaemonClient.execute(SingleUseDaemonClient.java:51)
        at org.gradle.launcher.daemon.client.SingleUseDaemonClient.execute(SingleUseDaemonClient.java:37)
        at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:52)
        at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:207)
        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:402)
        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:375)
        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:37)
        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:23)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:368)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:298)
        at org.gradle.launcher.Main.doAction(Main.java:36)
        at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:60)
        at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:37)
        at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:31)
        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:108)
        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

 

 

 

i personally am not familliar with the daemon and see nothing wrong here

Posted

In your command prompt, check if the gradle -version command returns the version 4.9 of Gradle.
If it doesn't, then install that version instead, then check the version again and proceed to the gradlew genEclipseRuns etc. steps again.
If it does, try to reinstall Gradle 4.9 anyway. After a quick search, this apparently solved the issue for someone in the past.

If you are running a system with limited RAM, this could be the issue as well.

In any case, I don't think I'll be able to help more than that sadly.

Posted (edited)
  On 4/9/2020 at 12:58 AM, QcDiablo said:

In your command prompt, check if the gradle -version command returns the version 4.9 of Gradle.
If it doesn't, then install that version instead, then check the version again and proceed to the gradlew genEclipseRuns etc. steps again.
If it does, try to reinstall Gradle 4.9 anyway. After a quick search, this apparently solved the issue for someone in the past.

If you are running a system with limited RAM, this could be the issue as well.

In any case, I don't think I'll be able to help more than that sadly.

Expand  

the version i have is 6.3 . does that mean its too high?

 

Edit: i now have tried it with 4,9 and it is still not able to start the daemon.

i have more than enough RAM though

Edit2: i forgot to add the variable java options and now it works

 

Edit3: the minecraft libary is now installed but the forge one isnt.

Edited by DarkAssassin

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • And without soulsweapons?
    • In France, we deeply value financial security and independence. After my divorce, my life took a chaotic turn, and amidst all the turmoil, I misplaced the backup phrase for my Bitcoin wallet, which held a significant amount, $220,000. I was already grappling with emotional challenges, and the thought of losing my Bitcoin felt like the final blow. In moments like these, I couldn't help but think of the French saying, “Il ne faut jamais dire jamais,” which means “Never say never.” Little did I know that this would become a mantra for my recovery journey. I spent days searching for that elusive phrase, going through old documents and turning my apartment upside down, but it was as if the universe had conspired against me—the backup was simply gone. Feeling desperate and overwhelmed, I confided in a friend who works in the cryptocurrency space. He recommended Hack Buster Recovery, mentioning that they had helped many French investors in similar situations. Skeptical but out of options, I decided to reach out. From the moment I contacted Hack Buster Recovery, I was struck by their understanding of my situation. They were professional and compassionate, reassuring me that I wasn’t alone in this struggle. Their team quickly got to work, explaining the recovery process in a way that put my mind at ease. It was clear they had dealt with cases like mine before, WEBSITE: hackbusters.online
    • (LEEULTIMATEHACKER @ A O L . C O M)  telegram: LEEULTIMATE With LEE ULTIMATE HACKER, a team which specializes in recovering a wide range of digital assets including, Bitcoin, Etherium, stablecoins, non -fungible tokens (NFTs), and other various cryptocurrencies, In the ever evolving crypto world the need for effective recovery solutions is very critical. Their services are specifically tailored to assist clients dealing with fraud, LEE ULTIMATE HACKER's strength lies in its team of industry pioneers who have contributed to shaping the legal and regulatory frameworks around crypto assets, They also work closely with trusted insolvency practitioners, crypto custodians leading exchanges, and Insurance providers, LEE ULTIMATE HACKER and team works with a robust network allows them to delivery seamless end-to-end recovery service capable of handling even the most complex cases, services that are specifically tailored to assist clients dealing with fraud, Bitcoin scams and digital assets that are deliberately concealed or Misappropriated. LEE ULTIMATE HACKER strength lies in its team of industry pioneers who have contributed to shaping the legal and regulatory framework around crypto assets, from the moment assets go missing LEE ULTIMATE HACKER is dedicated to guiding clients through every step of the recovery process, they understand the urgency and emotional weight of such situations and leverage their expertise to maximize the chances of successful outcome, whether facing fraud, scams, or other crypto -related challenges, LEE ULTIMATE HACKER stands ready to help clients reclaim what is rightfully theirs.
    • I deleted wildbackport and now i get this https://mclo.gs/1Q7mHD1
    • Add the full crash-report or latest.log (logs-folder) with sites like https://mclo.gs/ and paste the link to it here
  • Topics

×
×
  • Create New...

Important Information

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