Plugin not working from .gplugin file. get a class not found exception
Hey All, I've finished developing my plugin and I'm struggling to figure out why its not installing. below is the error code I get when I try to drag and drop the gplugin zipped file into my geneious:
Plugin: com.biomatters.plugins.UserPrimerSegmenterAndAnnotationGeneratorPlugin
java.lang.ClassNotFoundException: com.biomatters.plugins.UserPrimerSegmenterAndAnnotationGeneratorPlugin
at java.base/java.lang.ClassLoader.findClass(ClassLoader.java:733)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593)
at com.biomatters.geneious.common.C.loadClass(ParentLastURLClassLoader.java:28)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
at com.biomatters.iseek.plugin.LoadPlugins.a(LoadPlugins.java:598)
at com.biomatters.iseek.plugin.w.a(PluginManager.java:1421)
at com.biomatters.iseek.plugin.w.a(PluginManager.java:1387)
at com.biomatters.iseek.plugin.w.u(PluginManager.java:1352)
at com.biomatters.iseek.plugin.w.c(PluginManager.java:753)
at com.biomatters.iseek.application.ch.a(ServiceInitialiser.java:24)
at com.biomatters.iseek.application.ISeekFrame.createServices(ISeekFrame.java:372)
at com.biomatters.iseek.application.ISeekMain.a(ISeekMain.java:282)
at com.biomatters.iseek.application.ISeekMain.(ISeekMain.java:209)
at com.biomatters.iseek.application.ISeekMain.b(ISeekMain.java:380)
at com.biomatters.iseek.application.ISeekMain.lambda$startGeneiousApplication$8(ISeekMain.java:785)
at java.base/java.lang.Thread.run(Thread.java:1583)
I've checked the .jar file and the .gplugin file and both of them seem to have the class properly called. Any insight is appreciated.
Best,
Pedro
-
Hi Pedro,
Geneious will try to load your plugin class using the name of either:- The root folder inside the gplugin
- The name of the jar file minus the .jar extension
Please double check that the fully qualified classname of your GeneiousPlugin class matches one of those exactly.1
Please sign in to leave a comment.
Comments
1 comment