PCGen 6.09.05 fails to start


Simon Eigeldinger
 

Hi,

That would be great.
I guess i know the problem.
Seems the packaged JRE with PCGen is missing Java Access Bridge.
This is a part of Java and of many JREs.
For example the AdoptOpenJDK/Adoptium ones have JAB included by default.
I also don't know how to get around the pre-packaged version of JRE in
PCGen to use the locally installed one.

To see if JAB is in the currently used JRE you can look if the following
file is packaged with it:
javaaccessbridge.dll

If you build the JRE for PCGen yourself i guess there is a kind of flag
to enable that java access bridge is compiled as well.

Greetings,
Simon




Am 25.04.2022 um 02:06 schrieb JP via groups.io:

I can have a look in the next days if you want. Is the source code available? I haven't looked for it yet...






JP
 

I can have a look in the next days if you want. Is the source code available? I haven't looked for it yet...


Andrew Maitland
 

It looks like this is missing:


java.awt.AWTError: Assistive Technology not found:
com.sun.java.accessibility.AccessBridge

We would need to engage a java coder to see about adding Assistive Technology to the program. I just don't know if there is anyone who would know where to add it. (I'll reach out to the discord community).


Thanks,

Andrew - retired Board of Director


On 4/22/2022 1:57 PM, Simon Eigeldinger wrote:
Hi all,

I am a blind RPG player and wanted to try PCGen.
So I just tried to start PCGen 6.09.05.
I am running Windows 10 and have Adoptium (former AdoptOpenJDK) JRE
17.0.2+8 installed.
Additionally I am running a screenreader called NVDA in Version 2021.3.5
which is also the latest.

Java Access Bridge is active on the installed JRE.

I got the following errors in the log.

Thanks for helping.


2022-04-22T20:46:33.463065300 INFO main Main:116 Starting PCGen v6.09.05
2022-04-22T20:46:33.478689300 INFO main LanguageBundle:134 Initialising
language bundle with locale de_AT.
2022-04-22T20:46:33.578962100 SEVERE main
LoggingUncaughtExceptionHandler:32 Uncaught error on thread
Thread[main,5,main] - ignoring
java.awt.AWTError: Assistive Technology not found:
com.sun.java.accessibility.AccessBridge
at java.desktop/java.awt.Toolkit.newAWTError(Toolkit.java:473)
at java.desktop/java.awt.Toolkit.fallbackToLoadClassForAT(Toolkit.java:489)
at
java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at
java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
at
java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1694)
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
java.desktop/java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:537)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:598)
at javafx.swing/javafx.embed.swing.JFXPanel.initFx(JFXPanel.java:217)
at javafx.swing/javafx.embed.swing.JFXPanel.<init>(JFXPanel.java:257)
at pcgen.gui3.JFXPanelFromResource.<init>(JFXPanelFromResource.java:49)
at pcgen.system.Main.loadProperties(Main.java:290)
at pcgen.system.Main.startupWithGUI(Main.java:209)
at pcgen.system.Main.main(Main.java:138)
Caused by: java.lang.ClassNotFoundException:
com.sun.java.accessibility.AccessBridge
at
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
at
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:427)
at java.desktop/java.awt.Toolkit.fallbackToLoadClassForAT(Toolkit.java:486)
... 17 more


JP
 

I have a working setup with OpenJDK 17. They're now at version 18, I have'nt tested it but I'm pretty sure it'll work.
https://jdk.java.net/18/


Simon Eigeldinger
 

Hi all,

I am a blind RPG player and wanted to try PCGen.
So I just tried to start PCGen 6.09.05.
I am running Windows 10 and have Adoptium (former AdoptOpenJDK) JRE
17.0.2+8 installed.
Additionally I am running a screenreader called NVDA in Version 2021.3.5
which is also the latest.

Java Access Bridge is active on the installed JRE.

I got the following errors in the log.

Thanks for helping.


2022-04-22T20:46:33.463065300 INFO main Main:116 Starting PCGen v6.09.05
2022-04-22T20:46:33.478689300 INFO main LanguageBundle:134 Initialising
language bundle with locale de_AT.
2022-04-22T20:46:33.578962100 SEVERE main
LoggingUncaughtExceptionHandler:32 Uncaught error on thread
Thread[main,5,main] - ignoring
java.awt.AWTError: Assistive Technology not found:
com.sun.java.accessibility.AccessBridge
at java.desktop/java.awt.Toolkit.newAWTError(Toolkit.java:473)
at java.desktop/java.awt.Toolkit.fallbackToLoadClassForAT(Toolkit.java:489)
at
java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at
java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
at
java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1694)
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
java.desktop/java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:537)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:598)
at javafx.swing/javafx.embed.swing.JFXPanel.initFx(JFXPanel.java:217)
at javafx.swing/javafx.embed.swing.JFXPanel.<init>(JFXPanel.java:257)
at pcgen.gui3.JFXPanelFromResource.<init>(JFXPanelFromResource.java:49)
at pcgen.system.Main.loadProperties(Main.java:290)
at pcgen.system.Main.startupWithGUI(Main.java:209)
at pcgen.system.Main.main(Main.java:138)
Caused by: java.lang.ClassNotFoundException:
com.sun.java.accessibility.AccessBridge
at
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
at
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:427)
at java.desktop/java.awt.Toolkit.fallbackToLoadClassForAT(Toolkit.java:486)
... 17 more