BetonQuest / BetonQuest-Editor

[End of Life] Quest editor for BetonQuest plugin.
GNU General Public License v3.0
17 stars 12 forks source link

Error compiling BetonQuest on Mac #50

Closed aeisenberg closed 7 years ago

aeisenberg commented 7 years ago

I am not able to compile BetonQuest. I am getting compile errors like the following:

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/andrew.eisenberg/Eclipse/git-repos/BetonQuest-Editor/src/pl/betoncraft/betonquest/editor/BetonQuestEditor.java:[34,28] cannot find symbol
  symbol:   class Alert
  location: package javafx.scene.control
[ERROR] /Users/andrew.eisenberg/Eclipse/git-repos/BetonQuest-Editor/src/pl/betoncraft/betonquest/editor/BetonQuestEditor.java:[35,34] package javafx.scene.control.Alert does not exist
[ERROR] /Users/andrew.eisenberg/Eclipse/git-repos/BetonQuest-Editor/src/pl/betoncraft/betonquest/editor/BetonQuestEditor.java:[36,28] cannot find symbol
  symbol:   class ButtonType
  location: package javafx.scene.control
[ERROR] /Users/andrew.eisenberg/Eclipse/git-repos/BetonQuest-Editor/src/pl/betoncraft/betonquest/editor/BetonQuestEditor.java:[385,17] cannot find symbol
  symbol:   class Alert
  location: class pl.betoncraft.betonquest.editor.BetonQuestEditor
[ERROR] /Users/andrew.eisenberg/Eclipse/git-repos/BetonQuest-Editor/src/pl/betoncraft/betonquest/editor/BetonQuestEditor.java:[385,35] cannot find symbol
  symbol:   class Alert
  location: class pl.betoncraft.betonquest.editor.BetonQuestEditor
[ERROR] /Users/andrew.eisenberg/Eclipse/git-repos/BetonQuest-Editor/src/pl/betoncraft/betonquest/editor/BetonQuestEditor.java:[385,41] cannot find symbol
  symbol:   variable AlertType
  location: class pl.betoncraft.betonquest.editor.BetonQuestEditor
[ERROR] /Users/andrew.eisenberg/Eclipse/git-repos/BetonQuest-Editor/src/pl/betoncraft/betonquest/editor/BetonQuestEditor.java:[400,17] cannot find symbol
  symbol:   class Alert
  location: class pl.betoncraft.betonquest.editor.BetonQuestEditor
[ERROR] /Users/andrew.eisenberg/Eclipse/git-repos/BetonQuest-Editor/src/pl/betoncraft/betonquest/editor/BetonQuestEditor.java:[400,35] cannot find symbol
  symbol:   class Alert
  location: class pl.betoncraft.betonquest.editor.BetonQuestEditor
[ERROR] /Users/andrew.eisenberg/Eclipse/git-repos/BetonQuest-Editor/src/pl/betoncraft/betonquest/editor/BetonQuestEditor.java:[400,41] cannot find symbol
  symbol:   variable AlertType
  location: class pl.betoncraft.betonquest.editor.BetonQuestEditor
[ERROR] /Users/andrew.eisenberg/Eclipse/git-repos/BetonQuest-Editor/src/pl/betoncraft/betonquest/editor/BetonQuestEditor.java:[403,26] cannot find symbol
  symbol:   class ButtonType
  location: class pl.betoncraft.betonquest.editor.BetonQuestEditor
[ERROR] /Users/andrew.eisenberg/Eclipse/git-repos/BetonQuest-Editor/src/pl/betoncraft/betonquest/editor/BetonQuestEditor.java:[404,59] cannot find symbol
  symbol:   variable ButtonType
  location: class pl.betoncraft.betonquest.editor.BetonQuestEditor

It looks like the maven project is not able to find the javafx dependency.

I am running on MacOS with the following mvn/java versions:

$ mvn -v
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T10:41:47-06:00)
Maven home: /usr/local/Cellar/maven/3.3.9/libexec
Java version: 1.8.0, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.6", arch: "x86_64", family: "mac"

Do I somehow need to install javafx separately?

aeisenberg commented 7 years ago

This appears to be a mac issue. I just tried compiling on Linux and was successful. Someone with more experience with javafx can probably figure out how to get the jars accessible to the mvn project.

RiledUpCrow commented 7 years ago

I actually have no idea. Maybe try updating your JDK to the latest version? JavaFX is in Java 8 afaik.

aeisenberg commented 7 years ago

Thanks for your response. I already have the latest JDK (I checked). I compiled it on linux no problem. But I was not able to run it on mac either. It ran on windows. This is fine for me for now.

I'll go dig around and see if there's an obvious way to get this working on mac.

aeisenberg commented 7 years ago

Hmmmm...my apologies. Looks like I had downloaded the latest java version, but was still using an older version. I had downloaded 1.8.0_121, but the version I was using was still the 1.8.0 version.

When I forced myself to use the build 121, it was working. Closing this issue. Thanks.