Local server build error

  • I think this may be about environment configuration, but not sure; My PATHs seems correct based on the README in the github repo, but I am unsure how current any of the reference material available for building is.

    any insights that could be provide for successfully building Holocore in its present form from the Quality Assurance branch would be most helpful.

    Thank you. :)

    JAVA_HOME = C:\Program Files\Java\jdk-11.0.6 (set both as a user and system variable)


    $ gradle run

    Starting a Gradle Daemon, 1 busy Daemon could not be reused, use --status for details


    > Configure project :

    Found module name 'holocore'


    FAILURE: Build failed with an exception.


    * What went wrong:

    Could not determine the dependencies of task ':run'.

    > Could not resolve all task dependencies for configuration ':runtimeClasspath'.

    > Could not resolve project :pswgcommon.

    Required by:

    project :

    > Unable to find a matching configuration of project :pswgcommon:

    - None of the consumable configurations have attributes.


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

    Use '--warning-mode all' to show the individual deprecation warnings.

    See https://docs.gradle.org/6.1/us…sec:command_line_warnings


    BUILD FAILED in 45s

    cpedg@DESKTOP-5RM82DI MINGW64 ~/Holocore (quality_assurance) $ java --version Unrecognized option: --version

    Error: Could not create the Java Virtual Machine.

    Error: A fatal exception has occurred. Program will exit.

    cpedg@DESKTOP-5RM82DI MINGW64 ~/Holocore (quality_assurance) $ java -version java version "1.8.0_241"

    Java(TM) SE Runtime Environment (build 1.8.0_241-b07)

    Java HotSpot(TM) Client VM (build 25.241-b07, mixed mode)






    Environment config details;


    -----


    Windows 10 Professional x64

    $ java -version

    java version "1.8.0_241"

    Java(TM) SE Runtime Environment (build 1.8.0_241-b07)

    Java HotSpot(TM) Client VM (build 25.241-b07, mixed mode)


    $ gradle -version


    ------------------------------------------------------------

    Gradle 6.1

    ------------------------------------------------------------


    Build time: 2020-01-15 23:56:46 UTC

    Revision: 539d277fdba571ebcc9617a34329c83d7d2b259e


    Kotlin: 1.3.61

    Groovy: 2.5.8

    Ant: Apache Ant(TM) version 1.10.7 compiled on September 1 2019

    JVM: 11.0.6 (Oracle Corporation 11.0.6+8-LTS)

    OS: Windows 10 10.0 amd64

    ls


    $ env|grep PATH

    EXEPATH=C:\Program Files\Git

    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

    ACLOCAL_PATH=/mingw64/share/aclocal:/usr/share/aclocal

    MANPATH=/mingw64/local/man:/mingw64/share/man:/usr/local/man:/usr/share/man:/usr/man:/share/man

    PATH=/c/Users/cpedg/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/mingw64/bin:/usr/bin:/c/Users/cpedg/bin:/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Windows/System32/OpenSSH:/c/Program Files/Java/jdk-11.0.6/bin:/c/Gradle/gradle-6.1-bin/gradle-6.1/bin:/cmd:/c/Users/cpedg/AppData/Local/git-cola/bin:/c/Users/cpedg/AppData/Local/Microsoft/WindowsApps:/usr/bin/vendor_perl:/usr/bin/core_perl

    PKG_CONFIG_PATH=/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig

    INFOPATH=/usr/local/info:/usr/share/info:/usr/info:/share/info

    HOMEPATH=\Users\cpedg

    ORIGINAL_PATH=/mingw64/bin:/usr/bin:/c/Users/cpedg/bin:/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Windows/System32/OpenSSH:/c/Program Files/Java/jdk-11.0.6/bin:/c/Gradle/gradle-6.1-bin/gradle-6.1/bin:/cmd:/c/Users/cpedg/AppData/Local/git-cola/bin:/c/Users/cpedg/AppData/Local/Microsoft/WindowsApps


    $ ls -l

    total 82

    -rw-r--r-- 1 cpedg 197609 907 Jan 23 14:53 bitbucket-pipelines.yml

    -rw-r--r-- 1 cpedg 197609 3669 Jan 23 14:53 build.gradle

    drwxr-xr-x 1 cpedg 197609 0 Jan 31 15:05 clientdata/

    drwxr-xr-x 1 cpedg 197609 0 Jan 23 14:53 client-holocore/

    -rw-r--r-- 1 cpedg 197609 2081 Jan 23 14:53 configurations.txt

    -rw-r--r-- 1 cpedg 197609 375 Jan 23 14:53 Dockerfile

    drwxr-xr-x 1 cpedg 197609 0 Jan 23 14:53 gradle/

    -rwxr-xr-x 1 cpedg 197609 6148 Jan 23 14:53 gradlew*

    -rw-r--r-- 1 cpedg 197609 2942 Jan 23 14:53 gradlew.bat

    -rw-r--r-- 1 cpedg 197609 35179 Jan 23 14:53 LICENSE.txt

    drwxr-xr-x 1 cpedg 197609 0 Jan 23 14:53 pswgcommon/

    -rw-r--r-- 1 cpedg 197609 4140 Jan 23 14:53 README.md

    drwxr-xr-x 1 cpedg 197609 0 Jan 23 14:53 res/

    -rw-r--r-- 1 cpedg 197609 2252 Jan 23 14:53 server.keystore

    drwxr-xr-x 1 cpedg 197609 0 Jan 23 14:53 serverdata/

    -rw-r--r-- 1 cpedg 197609 82 Jan 23 14:53 settings.gradle

    drwxr-xr-x 1 cpedg 197609 0 Jan 23 14:53 src/


    cpedg@DESKTOP-5RM82DI MINGW64 ~/Holocore (quality_assurance)

    Edited once, last by Kinshi ().

  • I realized that I had version 8 of the JRE and got that uninstalled, so have proper Java version now;

    $ java -version java version "11.0.6" 2020-01-14 LTS

    Java(TM) SE Runtime Environment 18.9 (build 11.0.6+8-LTS)

    Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.6+8-LTS, mixed mode

    ...but I still have the same build error.

  • So I just realized that when I cloned the repo from Github, it did not pull the contents of the "pswgcommon" folder down (looks like it may be some kind of symlink to the Bitbucket repo?)


    Anyway...also cloning the repo from Bitbucket and copying over the contents of "pswgcommon" and seeing what happens next...

  • Well getting a bit farther along..when I realized that the Github repo does not actually have all the files needed, I went and pulled down the "pswgcommon", "forwarder" and "client-holocore" repos off Bitbucket (they all seem to have ad activity in the last 6 days) and put the contents into my main Holocore project folder then tried again...and now have this...

    EDIT: In examing the changes to pswgcommon on bitbucket I saw this;

    Code
    1. jvmTarget = "12"


    Is 12.0x of the JDK now required? Easy enough to try... :)

    $ gradle run


    > Configure project :

    Found module name 'holocore'


    > Configure project :pswgcommon

    Found module name 'com.projectswg.common'


    > Configure project :client-holocore

    Found module name 'com.projectswg.holocore.client'


    > Task :pswgcommon:compileJava FAILED


    FAILURE: Build failed with an exception.


    * What went wrong:

    Execution failed for task ':pswgcommon:compileJava'.

    > The value for task ':pswgcommon:compileJava' property 'destinationDirectory' is final and cannot be changed any further.


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

    Use '--warning-mode all' to show the individual deprecation warnings.

    See https://docs.gradle.org/6.1/us…sec:command_line_warnings


    BUILD FAILED in 14s

    2 actionable tasks: 2 executed

    Edited once, last by Kinshi ().

  • Well...I went ahead and bumped the JDK up to 12.0.1...but same build error as above.

    Clearly I am missing something...but not sure what at this stage. Hopefully someone in the know can show me the error of my ways :)

  • i have Java 12.0.2 installed

    Homepath set


    forked the official github repository

    pswgcommon / pswgcommonfx are cloned into my local repo too


    did you run "gradlew install" ? or maybe "gradlew setup" ... cant remember which one it was :D


    with every bootup i also do "gradlew clean run"


    MongoDB is set up and running ?


    my task queue when i boot up a server

    - open cmd window

    - go into folder "program files/mongodb/server/4.2/bin"

    - run "mongod"


    - open command window

    - go into holocore folder

    - run "gradlew clean run"

    - have to run this command 2x in a row sometimes because of errors

  • OK so MnogoDB is missing....are there any instructions for its setup and importing any data? (The readme in the Repo made no mention of DB setup, but I was wonder about that part)

    Same for the gradlew install, will need to go check that out too.

    Is there a current build guide anywhere?

    Thanks for the info, that gets me something mroe to chew on :)

  • I have made quite a bit of headway, and have joined the Discord as requested too.

    I seem to now have a running Holocore, just learning how to configure it next (like how to make accounts, set admin levels, and change server config), and get a grasp on its foundationals.