GithubHelp home page GithubHelp logo

macOS Support about sporemodder-fx HOT 11 OPEN

emd4600 avatar emd4600 commented on July 30, 2024
macOS Support

from sporemodder-fx.

Comments (11)

emd4600 avatar emd4600 commented on July 30, 2024

Open the Terminal in macOS and navigate to the SporeModder FX folder. There, execute this line:
java -jar SporeModderFX.jar
Show me a picture of what appears in the terminal.

from sporemodder-fx.

arthrfrts avatar arthrfrts commented on July 30, 2024

It returns the following:

Exception in thread "main" java.lang.NoClassDefFoundError: javafx/application/Application
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
	at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
	at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:550)
	at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:458)
	at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:452)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:451)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:398)
	at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)
Caused by: java.lang.ClassNotFoundException: javafx.application.Application
	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	... 13 more

from sporemodder-fx.

emd4600 avatar emd4600 commented on July 30, 2024

Type java -version in the terminal and tell me what shows there. SMFX requires Java 8 to run

from sporemodder-fx.

arthrfrts avatar arthrfrts commented on July 30, 2024

I'm getting this:

java 11.0.2 2019-01-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)

If needed, I can try to download a different version via Homebrew.

from sporemodder-fx.

emd4600 avatar emd4600 commented on July 30, 2024

Yes, I think you'll have to install Java 8. You can download it here: https://www.java.com/en/download/

from sporemodder-fx.

arthrfrts avatar arthrfrts commented on July 30, 2024

Ok, using Java 8 it actually opens, but before something happens it crashes. The Terminal log follows:

java.lang.NoSuchMethodException: java.util.prefs.MacOSXPreferences.WindowsRegOpenKey(int, [B, int)
	at java.lang.Class.getDeclaredMethod(Class.java:2130)
	at sporemodder.util.WinRegistry.<clinit>(WinRegistry.java:68)
	at sporemodder.GameManager.getRegistryValue(GameManager.java:374)
	at sporemodder.GameManager.getFromRegistry(GameManager.java:352)
	at sporemodder.GameManager.getFromRegistry(GameManager.java:384)
	at sporemodder.GameManager.autoDetectPaths(GameManager.java:212)
	at sporemodder.GameManager.initialize(GameManager.java:162)
	at sporemodder.MainApp.init(MainApp.java:186)
	at sporemodder.MainApp.init(MainApp.java:223)
	at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:841)
	at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$159(LauncherImpl.java:182)
	at java.lang.Thread.run(Thread.java:748)
java.lang.NullPointerException
	at sporemodder.util.WinRegistry.valueForKey(WinRegistry.java:256)
	at sporemodder.util.WinRegistry.valueForKey(WinRegistry.java:108)
	at sporemodder.file.shaders.FXCompiler.autoDetectPath(FXCompiler.java:47)
	at sporemodder.file.shaders.FXCompiler.initialize(FXCompiler.java:33)
	at sporemodder.MainApp.init(MainApp.java:195)
	at sporemodder.MainApp.init(MainApp.java:223)
	at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:841)
	at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$159(LauncherImpl.java:182)
	at java.lang.Thread.run(Thread.java:748)
mar 10, 2019 5:32:30 PM javafx.fxml.FXMLLoader$ValueElement processValue
ADVERTÊNCIA: Loading FXML document with JavaFX API of version 9.0.1 by JavaFX runtime of version 8.0.202
mar 10, 2019 5:32:31 PM javafx.fxml.FXMLLoader$ValueElement processValue
ADVERTÊNCIA: Loading FXML document with JavaFX API of version 9.0.1 by JavaFX runtime of version 8.0.202
mar 10, 2019 5:32:31 PM javafx.fxml.FXMLLoader$ValueElement processValue
ADVERTÊNCIA: Loading FXML document with JavaFX API of version 9.0.1 by JavaFX runtime of version 8.0.202
mar 10, 2019 5:32:31 PM javafx.fxml.FXMLLoader$ValueElement processValue
ADVERTÊNCIA: Loading FXML document with JavaFX API of version 9.0.1 by JavaFX runtime of version 8.0.202
mar 10, 2019 5:32:31 PM javafx.fxml.FXMLLoader$ValueElement processValue
ADVERTÊNCIA: Loading FXML document with JavaFX API of version 9.0.1 by JavaFX runtime of version 8.0.202
mar 10, 2019 5:32:31 PM javafx.fxml.FXMLLoader$ValueElement processValue
ADVERTÊNCIA: Loading FXML document with JavaFX API of version 9.0.1 by JavaFX runtime of version 8.0.202
mar 10, 2019 5:32:31 PM javafx.fxml.FXMLLoader$ValueElement processValue
ADVERTÊNCIA: Loading FXML document with JavaFX API of version 9.0.1 by JavaFX runtime of version 8.0.202
mar 10, 2019 5:32:31 PM javafx.fxml.FXMLLoader$ValueElement processValue
ADVERTÊNCIA: Loading FXML document with JavaFX API of version 9.0.1 by JavaFX runtime of version 8.0.202
mar 10, 2019 5:32:31 PM javafx.fxml.FXMLLoader$ValueElement processValue
ADVERTÊNCIA: Loading FXML document with JavaFX API of version 9.0.1 by JavaFX runtime of version 8.0.202
mar 10, 2019 5:32:31 PM javafx.fxml.FXMLLoader$ValueElement processValue
ADVERTÊNCIA: Loading FXML document with JavaFX API of version 9.0.1 by JavaFX runtime of version 8.0.202
mar 10, 2019 5:32:31 PM javafx.fxml.FXMLLoader$ValueElement processValue
ADVERTÊNCIA: Loading FXML document with JavaFX API of version 9.0.1 by JavaFX runtime of version 8.0.202
mar 10, 2019 5:32:31 PM com.sun.javafx.css.StyleManager loadStylesheetUnPrivileged
INFORMAÇÕES: Could not find stylesheet: file:/Users/arthr/Downloads/sporemodder_fx/Styles%5CDefault%5Cribbonstyle.css
mar 10, 2019 5:32:31 PM com.sun.javafx.css.StyleManager loadStylesheetUnPrivileged
INFORMAÇÕES: Could not find stylesheet: file:/Users/arthr/Downloads/sporemodder_fx/Styles%5CDefault%5Cbasic.css
mar 10, 2019 5:32:31 PM com.sun.javafx.css.StyleManager loadStylesheetUnPrivileged
INFORMAÇÕES: Could not find stylesheet: file:/Users/arthr/Downloads/sporemodder_fx/Styles%5CDefault%5Csyntax.css
java.io.FileNotFoundException: /Users/arthr/Downloads/sporemodder_fx/Styles\Default\ribbon-expand.png (No such file or directory)
	at java.io.FileInputStream.open0(Native Method)
	at java.io.FileInputStream.open(FileInputStream.java:195)
	at java.io.FileInputStream.<init>(FileInputStream.java:138)
	at sporemodder.view.UserInterface.getResource(UserInterface.java:82)
	at emord.javafx.ribbon.skin.RibbonSkin.construct(RibbonSkin.java:139)
	at emord.javafx.ribbon.skin.RibbonSkin.<init>(RibbonSkin.java:71)
	at emord.javafx.ribbon.Ribbon.createDefaultSkin(Ribbon.java:426)
	at javafx.scene.control.Control.impl_processCSS(Control.java:872)
	at javafx.scene.Parent.impl_processCSS(Parent.java:1280)
	at javafx.scene.Parent.impl_processCSS(Parent.java:1280)
	at javafx.scene.Node.processCSS(Node.java:9056)
	at javafx.scene.Scene.doCSSPass(Scene.java:545)
	at javafx.scene.Scene.preferredSize(Scene.java:1643)
	at javafx.scene.Scene.impl_preferredSize(Scene.java:1720)
	at javafx.stage.Window$9.invalidated(Window.java:864)
	at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:109)
	at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:144)
	at javafx.stage.Window.setShowing(Window.java:940)
	at javafx.stage.Window.show(Window.java:955)
	at javafx.stage.Stage.show(Stage.java:259)
	at sporemodder.UIManager.show(UIManager.java:180)
	at sporemodder.MainApp.start(MainApp.java:252)
	at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$166(LauncherImpl.java:863)
	at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$179(PlatformImpl.java:326)
	at com.sun.javafx.application.PlatformImpl.lambda$null$177(PlatformImpl.java:295)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.javafx.application.PlatformImpl.lambda$runLater$178(PlatformImpl.java:294)
	at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
Exception in Application start method
Exception in thread "main" java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.RuntimeException: Exception in Application start method
	at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
	at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$159(LauncherImpl.java:182)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException: Input stream must not be null
	at javafx.scene.image.Image.validateInputStream(Image.java:1128)
	at javafx.scene.image.Image.<init>(Image.java:706)
	at emord.javafx.ribbon.skin.RibbonSkin.construct(RibbonSkin.java:139)
	at emord.javafx.ribbon.skin.RibbonSkin.<init>(RibbonSkin.java:71)
	at emord.javafx.ribbon.Ribbon.createDefaultSkin(Ribbon.java:426)
	at javafx.scene.control.Control.impl_processCSS(Control.java:872)
	at javafx.scene.Parent.impl_processCSS(Parent.java:1280)
	at javafx.scene.Parent.impl_processCSS(Parent.java:1280)
	at javafx.scene.Node.processCSS(Node.java:9056)
	at javafx.scene.Scene.doCSSPass(Scene.java:545)
	at javafx.scene.Scene.preferredSize(Scene.java:1643)
	at javafx.scene.Scene.impl_preferredSize(Scene.java:1720)
	at javafx.stage.Window$9.invalidated(Window.java:864)
	at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:109)
	at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:144)
	at javafx.stage.Window.setShowing(Window.java:940)
	at javafx.stage.Window.show(Window.java:955)
	at javafx.stage.Stage.show(Stage.java:259)
	at sporemodder.UIManager.show(UIManager.java:180)
	at sporemodder.MainApp.start(MainApp.java:252)
	at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$166(LauncherImpl.java:863)
	at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$179(PlatformImpl.java:326)
	at com.sun.javafx.application.PlatformImpl.lambda$null$177(PlatformImpl.java:295)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.javafx.application.PlatformImpl.lambda$runLater$178(PlatformImpl.java:294)
	at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)

I think it's one of these two warnings:

  • Loading FXML document with JavaFX API of version 9.0.1 by JavaFX runtime of version 8.0.202
  • java.io.FileNotFoundException: /Users/arthr/Downloads/sporemodder_fx/Styles\Default\ribbon-expand.png

The non-FX version of SporeModder opens with the java -jar <exec> command!

from sporemodder-fx.

emd4600 avatar emd4600 commented on July 30, 2024

Could you check if there is a file called ribbon-expand.png inside the Styles/Default folder?

from sporemodder-fx.

arthrfrts avatar arthrfrts commented on July 30, 2024

Yeah, there is.

Captura de Tela 2019-03-10 às 22 13 27

from sporemodder-fx.

emd4600 avatar emd4600 commented on July 30, 2024

Sorry for taking so much time to answer.
Try replacing SporeModderFX.jar with the following file. If it still does not work, open it with the terminal like you did previously and post the error here.

https://www.mediafire.com/file/dfz2wr0581gbg28/SporeModderFX.jar/file

from sporemodder-fx.

arthrfrts avatar arthrfrts commented on July 30, 2024

It only returns that it wasn't possible to find the main jar class.

from sporemodder-fx.

emd4600 avatar emd4600 commented on July 30, 2024

I believe it should be working now, but I can't test it.

from sporemodder-fx.

Related Issues (20)

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.