lolo101/MsgViewer

self compiled version won't start - setOpenURL - NoSuchMethodError

Closed this issue · 5 comments

Can anyone tell me why this happens?

>java -jar msgviewer.jar
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
Exception in thread "main" java.lang.NoSuchMethodError: at/redeye/FrameWork/widgets/helpwindow/HyperlinkExecuter.setOpenUrl(Lat/redeye/FrameWork/widgets/helpwindow/OpenUrlInterface;)V 
(loaded from file:msgviewer.jar by jdk.internal.loader.ClassLoaders$AppClassLoader@65d1339b) 
called from class at.redeye.Plugins.ShellExec.Plugin (loaded from file:msgviewer.jar by jdk.internal.loader.ClassLoaders$AppClassLoader@65d1339b).

Starting the Release Version works just fine.
I compiled with openjdk 18 on a fresh Ubuntu 22.04

Hi @ThomasChr!
The method HyperlinkExecuter.setOpenUrl has been recently removed (not yet released)
However, the error you mention shows that the method is actually invoked in at.redeye.Plugins.ShellExec.Plugin
I didn't detect that invocation because the source files of that plugin are not part of MsgViewer.

I need to investigate this issue more closer because those plugins are still quite obscure to me.

Thank you very much for the report!

I‘m very glad that it wasn‘t just my own fault :-)
Tell me if I can help in any way!

After your commits 9 hours ago the actual commit de3d082 is working just fine.
I assume f99cb98 was the solution...

Good to hear that your issue is actually fixed :)

Before making a release I need to push tests further because as far as I understand the code the ShellExec plugin is only activated on Windows.
If you run the master version on a Linux box it might work whereas it breaks on a Windows box.

Yes. Absolutely!
I compiled on Linux but ran on Windows.