Java problem on Arch Linux

Here's the place to discuss anything about Negatron or MAME in English.
Post Reply
dodgypast
Posts: 3
Joined: Mon May 04, 2020 3:49 am

Java problem on Arch Linux

Post by dodgypast »

here's the output from the terminal:

Code: Select all

SEVERE: Couldn't start Negatron
javafx.fxml.LoadException: 
file:///home/duncanm/Programs/Negatron-0.100.1/./modules/Negatron-0.100.1.jar!/net/babelsoft/negatron/view/control/fxml/MainView.fxml:117

        at javafx.fxml/javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2625)
        at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2603)
        at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2466)
        at javafx.fxml/javafx.fxml.FXMLLoader.load(FXMLLoader.java:2435)
        at negatron@0.100.1/net.babelsoft.negatron.NegatronApp.start(NegatronApp.java:81)
        at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
        at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
        at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
        at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
        at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
        at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:277)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.RuntimeException: javafx.fxml.LoadException: 
file:///home/duncanm/Programs/Negatron-0.100.1/./modules/Negatron-0.100.1.jar!/net/babelsoft/negatron/view/control/fxml/GlobalConfigurationPane.fxml

        at negatron@0.100.1/net.babelsoft.negatron.view.control.GlobalConfigurationPane.<init>(GlobalConfigurationPane.java:63)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
        at java.base/java.lang.Class.newInstance(Class.java:584)
        at javafx.fxml/javafx.fxml.FXMLLoader$InstanceDeclarationElement.constructValue(FXMLLoader.java:1019)
        at javafx.fxml/javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:754)
        at javafx.fxml/javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2722)
        at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2552)
        ... 12 more
Caused by: javafx.fxml.LoadException: 
file:///home/duncanm/Programs/Negatron-0.100.1/./modules/Negatron-0.100.1.jar!/net/babelsoft/negatron/view/control/fxml/GlobalConfigurationPane.fxml

        at javafx.fxml/javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2625)
        at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2603)
        at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2466)
        at javafx.fxml/javafx.fxml.FXMLLoader.load(FXMLLoader.java:2435)
        at negatron@0.100.1/net.babelsoft.negatron.view.control.GlobalConfigurationPane.<init>(GlobalConfigurationPane.java:49)
        ... 21 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
        at negatron@0.100.1/net.babelsoft.negatron.io.configuration.Configuration.lambda$readPluginInitialisationFile$36(Configuration.java:830)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
        at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
        at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
        at negatron@0.100.1/net.babelsoft.negatron.io.configuration.Configuration.readPluginInitialisationFile(Configuration.java:829)
        at negatron@0.100.1/net.babelsoft.negatron.io.configuration.Configuration.retrievePlugins(Configuration.java:871)
        at negatron@0.100.1/net.babelsoft.negatron.view.control.form.PluginSelectionField.<init>(PluginSelectionField.java:40)
        at negatron@0.100.1/net.babelsoft.negatron.controller.GlobalConfigurationPaneController.lambda$initialize$29(GlobalConfigurationPaneController.java:341)
        at negatron@0.100.1/net.babelsoft.negatron.controller.GlobalConfigurationPaneController.check(GlobalConfigurationPaneController.java:528)
        at negatron@0.100.1/net.babelsoft.negatron.controller.GlobalConfigurationPaneController.initialize(GlobalConfigurationPaneController.java:340)
        at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2573)
        ... 24 more

Exception in Application start method
BabelSoft
Site Admin
Posts: 342
Joined: Sat Jun 02, 2012 9:23 pm

Re: Java problem on Arch Linux

Post by BabelSoft »

Hi dodgypast,

Negatron failed while reading the file plugin.ini. This can be because of 2 things:
- the path to the plugin.ini is invalid. Check your mame.ini and see if the entry "pluginspath" points to a plugini.ini file.
- the content of your plugin.ini is invalid. In this case, copy-paste its content here so I can see what went wrong.
dodgypast
Posts: 3
Joined: Mon May 04, 2020 3:49 am

Re: Java problem on Arch Linux

Post by dodgypast »

The plugin.ini was unreadable with normal text encoding.

I gambled and deleted it which worked and now it's running.
Post Reply