Jump to content

[1.14.4] Forge Libary not installing on eclipse


DarkAssassin

Recommended Posts

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
Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

29 minutes ago, 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:

 

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 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

11 minutes ago, 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:
 

 

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

6 minutes ago, 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.

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

8 hours ago, 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.

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
Link to comment
Share on other sites

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.