Resolved Fail to launch using gradlew

Caaady

New Member
Hello, I tried to launch the game from command line but encountered a package missing error. I have tried to run with ./gradlew jar game, and also switch jdks, but it still has the same issue. I am running on Windows with Git Bash. Can I get some help here?
Code:
Candy@DESKTOP-IJJ8070 MINGW64 /c/Users/Candy/Documents/Terasology (develop)
$ ./gradlew jar game
Processing facade facades:PC, including it as a sub-project
Processing facade facades:TeraEd, including it as a sub-project
Module modules:BiomesAPI has a build file so counting it complete and including it
Module modules:BuilderSampleGameplay has a build file so counting it complete and including it
Module modules:Core has a build file so counting it complete and including it
Module modules:CoreSampleGameplay has a build file so counting it complete and including it
Parallel execution with configuration on demand is an incubating feature.

> Configure project :engine
PUBLISH repoKey is terasology-snapshot-local (default value)
RESOLVE repoKey is virtual-repo-live (default value)
ENGINE Scanning for source CrashReporter at: C:\Users\Candy\Documents\Terasology\libs\CrashReporter
*** Setting a CrashReporter binary dependency, not present as source
Scanning for version in engine-module.txt for engine
Version for engine loaded as 2.2.1-SNAPSHOT for group org.terasology.engine

> Configure project :engine-tests
PUBLISH repoKey is terasology-snapshot-local (default value)
RESOLVE repoKey is virtual-repo-live (default value)
Scanning for version in module.txt for engine-tests
Version for engine-tests loaded as 2.2.1-SNAPSHOT for group org.terasology.engine

> Configure project :facades:PC
PUBLISH repoKey is terasology-snapshot-local (default value)
RESOLVE repoKey is virtual-repo-live (default value)
PC VERSION: 2.2.1-SNAPSHOT

> Configure project :facades:TeraEd
PUBLISH repoKey is terasology-snapshot-local (default value)
RESOLVE repoKey is virtual-repo-live (default value)
TeraEd VERSION: 2.2.1-SNAPSHOT

> Configure project :modules:BiomesAPI
PUBLISH repoKey is terasology-snapshot-local (default value)
RESOLVE repoKey is virtual-repo-live (default value)
Version for BiomesAPI loaded as 1.0.0-SNAPSHOT for group org.terasology.modules

Processing module 'BiomesAPI' in a multi-project workspace
* No extra dependencies

> Configure project :modules:BuilderSampleGameplay
PUBLISH repoKey is terasology-snapshot-local (default value)
RESOLVE repoKey is virtual-repo-live (default value)
Version for BuilderSampleGameplay loaded as 2.2.1-SNAPSHOT for group org.terasology.modules

Processing module 'BuilderSampleGameplay' in a multi-project workspace
* No extra dependencies

> Configure project :modules:Core
PUBLISH repoKey is terasology-snapshot-local (default value)
RESOLVE repoKey is virtual-repo-live (default value)
Version for Core loaded as 2.2.1-SNAPSHOT for group org.terasology.modules

Processing module 'Core' in a multi-project workspace
* Core has extra dependencies:
** Inventory
** BiomesAPI
** Health
** CoreAssets
** CoreBlocks
*** Seeking as binary: Inventory
*** Identified source: BiomesAPI
*** Seeking as binary: Health
*** Seeking as binary: CoreAssets
*** Seeking as binary: CoreBlocks
Core resolved binary org.terasology.modules - Inventory at version 1.0.0-SNAPSHOT
*** Found module dependency BiomesAPI in source form, not copying a runtime jar from Gradle
Core resolved binary org.terasology.modules - Health at version 0.1.0-SNAPSHOT
Core resolved binary org.terasology.modules - CoreBlocks at version 1.0.0-SNAPSHOT
Core resolved binary org.terasology.modules - CoreAssets at version 1.0.0-SNAPSHOT
Core resolved binary org.terasology.modules - ModuleTestingEnvironment at version 0.1.0-SNAPSHOT

> Configure project :modules:CoreSampleGameplay
PUBLISH repoKey is terasology-snapshot-local (default value)
RESOLVE repoKey is virtual-repo-live (default value)
Version for CoreSampleGameplay loaded as 2.2.1-SNAPSHOT for group org.terasology.modules

Processing module 'CoreSampleGameplay' in a multi-project workspace
* CoreSampleGameplay has extra dependencies:
** Core
*** Identified source: Core
CoreSampleGameplay resolved binary org.terasology.modules - Inventory at version 1.0.0-SNAPSHOT
*** Found module dependency BiomesAPI in source form, not copying a runtime jar from Gradle
CoreSampleGameplay resolved binary org.terasology.modules - Health at version 0.1.0-SNAPSHOT
CoreSampleGameplay resolved binary org.terasology.modules - CoreBlocks at version 1.0.0-SNAPSHOT
CoreSampleGameplay resolved binary org.terasology.modules - CoreAssets at version 1.0.0-SNAPSHOT
CoreSampleGameplay resolved binary org.terasology.modules - ModuleTestingEnvironment at version 0.1.0-SNAPSHOT

> Task :facades:PC:processResources UP-TO-DATE
> Task :modules:Core:processResources NO-SOURCE
> Task :modules:BiomesAPI:processResources NO-SOURCE
> Task :modules:BuilderSampleGameplay:processResources NO-SOURCE
> Task :modules:CoreSampleGameplay:processResources NO-SOURCE
> Task :modules:BiomesAPI:syncAssets NO-SOURCE
> Task :modules:CoreSampleGameplay:syncAssets NO-SOURCE
> Task :extractJNLuaNatives UP-TO-DATE
> Task :modules:CoreSampleGameplay:syncDeltas NO-SOURCE
> Task :modules:BiomesAPI:syncDeltas NO-SOURCE
> Task :modules:BiomesAPI:syncOverrides NO-SOURCE
> Task :modules:CoreSampleGameplay:syncOverrides NO-SOURCE
> Task :extractLinuxNatives UP-TO-DATE
> Task :facades:TeraEd:processResources
> Task :extractMacOSXNatives UP-TO-DATE
> Task :extractWindowsNatives UP-TO-DATE
> Task :extractNatives UP-TO-DATE
> Task :moduleClasses UP-TO-DATE
> Task :modules:BuilderSampleGameplay:syncAssets
> Task :modules:BuilderSampleGameplay:syncDeltas NO-SOURCE
> Task :modules:BuilderSampleGameplay:syncOverrides NO-SOURCE
> Task :engine-tests:processResources
> Task :modules:Core:syncAssets
> Task :modules:Core:syncDeltas NO-SOURCE
> Task :modules:Core:syncOverrides NO-SOURCE

> Task :engine:compileJava
C:\Users\Candy\Documents\Terasology\engine\src\main\java\org\terasology\protobuf\package-info.java:19: error: cannot find symbol
import javax.annotation.Generated;
                       ^
  symbol:   class Generated
  location: package javax.annotation
C:\Users\Candy\Documents\Terasology\engine\src\main\java\org\terasology\protobuf\package-info.java:16: error: cannot find symbol
@Generated("com.google.protobuf")
 ^
  symbol: class Generated
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors

> Task :engine:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':engine: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. Run with --scan to get full insights.

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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 18s
10 actionable tasks: 5 executed, 5 up-to-date
 

Cervator

Org Co-Founder & Project Lead
Contributor
Design
Logistics
SpecOps
Hey @Caaady :)

We've seen that error a few times, as far as I remember it does relate to the version of Java being used to compile. Which have you tried? We only officially support Java 8, although newer ones may work in some cases, at least partially. There are some pending improvements that should help this a fair bit, and help us validate the game on newer JDKs.
 
Top