Giter Site home page Giter Site logo

Run Error about zephyria HOT 6 CLOSED

almasb avatar almasb commented on June 1, 2024
Run Error

from zephyria.

Comments (6)

AlmasB avatar AlmasB commented on June 1, 2024

Hi Luke,

It's odd, I've just run it and it works fine. Please can you provide details on what maven and jdk versions you are using.

Also, there is no need to set any system variables.

Edit: I've just pushed a commit updating all dependencies to latest versions, not sure if it helps.

from zephyria.

modey3 avatar modey3 commented on June 1, 2024

Hello Almas,

I'm not a Java developer so I hope I have everything setup properly:

Apache Maven: 3.8.4
jdk: 17.0.1

Maybe my javafx isn't setup properly?

Edit: From what I have read new version of jdk includes javafx. I updated my jdk folder by copy/pasting in the files from the newest javafx version (javafx-sdk-17.0.1). Same issue.

Could a folder in : C:\Users\Luke.m2\repository be missing a critical file?

Luke

from zephyria.

AlmasB avatar AlmasB commented on June 1, 2024

from zephyria.

somera avatar somera commented on June 1, 2024

I have the same problem

$ mvn -v
Apache Maven 3.9.0 (9b58d2bad23a66be161c4664ef21ce219c2c8584)
Maven home: D:\bin\apache\apache-maven-3.9.0
Java version: 17.0.6, vendor: Eclipse Adoptium, runtime: D:\bin\Java\jdk-17.0.6+10
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

And than very long output

$ mvn javafx:run
...
[ERROR] The class is loaded from D:/.m2/repository/com/github/almasb/fxgl/17+dev-SNAPSHOT/fxgl-17+dev-SNAPSHOT.jar!/com/almasb/fxgl/app/scene/LoadingScene.class
[ERROR] D:\projects\github\AlmasB\Zephyria\src\main\kotlin\com\almasb\zeph\ui\ZephLoadingScene.kt:[6,28] Class 'com.almasb.fxgl.dsl.FXGL' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.5.1.
[ERROR] The class is loaded from D:/.m2/repository/com/github/almasb/fxgl/17+dev-SNAPSHOT/fxgl-17+dev-SNAPSHOT.jar!/com/almasb/fxgl/dsl/FXGL.class
[ERROR] D:\projects\github\AlmasB\Zephyria\src\main\kotlin\com\almasb\zeph\ui\ZephLoadingScene.kt:[7,28] Unresolved reference: animationBuilder
[ERROR] D:\projects\github\AlmasB\Zephyria\src\main\kotlin\com\almasb\zeph\ui\ZephLoadingScene.kt:[8,28] Unresolved reference: getUIFactoryService
[ERROR] D:\projects\github\AlmasB\Zephyria\src\main\kotlin\com\almasb\zeph\ui\ZephLoadingScene.kt:[19,26] Class 'com.almasb.fxgl.app.scene.LoadingScene' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.5.1.
[ERROR] The class is loaded from D:/.m2/repository/com/github/almasb/fxgl/17+dev-SNAPSHOT/fxgl-17+dev-SNAPSHOT.jar!/com/almasb/fxgl/app/scene/LoadingScene.class
[ERROR] D:\projects\github\AlmasB\Zephyria\src\main\kotlin\com\almasb\zeph\ui\ZephLoadingScene.kt:[22,20] Unresolved reference: getUIFactoryService
[ERROR] D:\projects\github\AlmasB\Zephyria\src\main\kotlin\com\almasb\zeph\ui\ZephLoadingScene.kt:[23,9] Class 'com.almasb.fxgl.dsl.FXGL.Companion' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.5.1.
[ERROR] The class is loaded from D:/.m2/repository/com/github/almasb/fxgl/17+dev-SNAPSHOT/fxgl-17+dev-SNAPSHOT.jar!/com/almasb/fxgl/dsl/FXGL$Companion.class
[ERROR] D:\projects\github\AlmasB\Zephyria\src\main\kotlin\com\almasb\zeph\ui\ZephLoadingScene.kt:[23,9] Class 'com.almasb.fxgl.dsl.FXGL' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.5.1.
[ERROR] The class is loaded from D:/.m2/repository/com/github/almasb/fxgl/17+dev-SNAPSHOT/fxgl-17+dev-SNAPSHOT.jar!/com/almasb/fxgl/dsl/FXGL.class
[ERROR] D:\projects\github\AlmasB\Zephyria\src\main\kotlin\com\almasb\zeph\ui\ZephLoadingScene.kt:[23,14] Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.5.1.
[ERROR] The class is loaded from D:/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.8.0/kotlin-stdlib-1.8.0.jar!/kotlin/Unit.class
[ERROR] D:\projects\github\AlmasB\Zephyria\src\main\kotlin\com\almasb\zeph\ui\ZephLoadingScene.kt:[25,9] Unresolved reference: animationBuilder
[ERROR] D:\projects\github\AlmasB\Zephyria\src\main\kotlin\com\almasb\zeph\ui\ZephLoadingScene.kt:[28,31] Class 'com.almasb.fxgl.animation.Interpolators' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.5.1.
[ERROR] The class is loaded from D:/.m2/repository/com/github/almasb/fxgl-core/17+dev-SNAPSHOT/fxgl-core-17+dev-SNAPSHOT.jar!/com/almasb/fxgl/animation/Interpolators.class
[ERROR] D:\projects\github\AlmasB\Zephyria\src\main\kotlin\com\almasb\zeph\ui\ZephLoadingScene.kt:[30,45] Variable expected
[ERROR] D:\projects\github\AlmasB\Zephyria\src\main\kotlin\com\almasb\zeph\ui\ZephLoadingScene.kt:[39,7] Class 'com.almasb.fxgl.animation.AnimatedValue' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.5.1.
[ERROR] The class is loaded from D:/.m2/repository/com/github/almasb/fxgl-core/17+dev-SNAPSHOT/fxgl-core-17+dev-SNAPSHOT.jar!/com/almasb/fxgl/animation/AnimatedValue.class
[ERROR] D:\projects\github\AlmasB\Zephyria\src\main\kotlin\com\almasb\zeph\ui\ZephLoadingScene.kt:[39,7] Class 'com.almasb.fxgl.animation.AnimatedValue' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.5.1.
[ERROR] The class is loaded from D:/.m2/repository/com/github/almasb/fxgl-core/17+dev-SNAPSHOT/fxgl-core-17+dev-SNAPSHOT.jar!/com/almasb/fxgl/animation/AnimatedValue.class
[ERROR] D:\projects\github\AlmasB\Zephyria\src\main\kotlin\com\almasb\zeph\ui\ZephLoadingScene.kt:[45,21] Unresolved reference: substring
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

from zephyria.

somera avatar somera commented on June 1, 2024

But with
<kotlin.version>1.8.0</kotlin.version>
it starts.

from zephyria.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.