Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build it from sources? #22

Open
bvn13 opened this issue Mar 23, 2019 · 3 comments
Open

How to build it from sources? #22

bvn13 opened this issue Mar 23, 2019 · 3 comments

Comments

@bvn13
Copy link

bvn13 commented Mar 23, 2019

OS: Fedora 29
JAVA: 1.8 | 11 - both

issue with JAVA 1.8:

JAVA_HOME=/usr/java/latest ./gradlew build                                                                                         
> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'.

* 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 0s
1 actionable task: 1 executed

issue with JAVA 11:

JAVA_HOME=/usr/java/jdk-11.0.2 ./gradlew build --info                                                                              
Initialized native services in: /home/bvn13/.gradle/native
Found daemon DaemonInfo{pid=5758, address=[b82b6024-c8ec-4436-a205-444355f67431 port:38887, addresses:[/0:0:0:0:0:0:0:1, /127.0.0.1]], state=Idle, lastBusy=1553359295367, context=DefaultDaemonContext[uid=d2ed7581-de73-4df7-9ff6-933d2268b518,javaHome=/usr/java/jdk1.8.0_201-amd64,daemonRegistryDir=/home/bvn13/.gradle/daemon,pid=5758,idleTimeout=10800000,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]} however its context does not match the desired criteria.
Java home is different.
Wanted: DefaultDaemonContext[uid=null,javaHome=/usr/java/jdk-11.0.2,daemonRegistryDir=/home/bvn13/.gradle/daemon,pid=16386,idleTimeout=null,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]
Actual: DefaultDaemonContext[uid=d2ed7581-de73-4df7-9ff6-933d2268b518,javaHome=/usr/java/jdk1.8.0_201-amd64,daemonRegistryDir=/home/bvn13/.gradle/daemon,pid=5758,idleTimeout=10800000,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]

  Looking for a different daemon...
The client will now receive all logging from the daemon (pid: 6001). The daemon log file: /home/bvn13/.gradle/daemon/4.7/daemon-6001.out.log
Starting 5th build in daemon [uptime: 2 hrs 12 mins 59.528 secs, performance: 92%]
Using 4 worker leases.

FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
> Could not create service of type PluginResolutionStrategyInternal using BuildScopeServices.createPluginResolutionStrategy().

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

* Get more help at https://help.gradle.org

BUILD FAILED in 0s
@fba-rio
Copy link

fba-rio commented Mar 27, 2019

I could not build it on Ubuntu 18.10 either.
OpenJDK 11 + OpenJFX.

$ ./gradlew build --info
Initialized native services in: /home/fba/.gradle/native
The client will now receive all logging from the daemon (pid: 20924). The daemon log file: /home/fba/.gradle/daemon/4.7/daemon-20924.out.log
Starting 4th build in daemon [uptime: 1 hrs 56 mins 3.712 secs, performance: 96%]
Using 8 worker leases.
Invalidating in-memory cache of /tmp/jmonkeybuilder/.gradle/4.7/fileHashes/fileHashes.bin

FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
> Could not create service of type PluginResolutionStrategyInternal using BuildScopeServices.createPluginResolutionStrategy().

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

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

@pateman
Copy link

pateman commented Apr 24, 2019

I can't seem to build it either.
Windows 10 Pro, Oracle Java 11.0.1

$ ./gradlew.bat build -Dorg.gradle.java.home="c:/program files/java/jdk-11.0.1"

FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
> Could not create service of type PluginResolutionStrategyInternal using BuildScopeServices.createPluginResolutionStrategy().

* 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

@JavaSaBr
Copy link
Owner

for java 8 you need to build from tag 1.7.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants