Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Statistics Plugin doesn't show up in the statistics window #213

Closed
thorstenhenke opened this issue Nov 21, 2019 · 3 comments
Closed

Statistics Plugin doesn't show up in the statistics window #213

thorstenhenke opened this issue Nov 21, 2019 · 3 comments

Comments

@thorstenhenke
Copy link

thorstenhenke commented Nov 21, 2019

Dear gephi developers,

I am currently trying to develop a plugin that calculates a node level statistic. I carefully read the gephi-plugins README.md and also had a close look at the statistics' related examples in the gephi-plugin-bootcamp.

To get familiar with maven, netbeans and the building process I created a mockup version of my plugin and tried to run in. Although gephi recognizes the plugin and lists it as 'installed' the plugin's method does not show up in the statistics window.

Since I followed the instructions on how to build a package very caerfully and by now my plugin is just a mockup version, I am out of ideas how to solve the problem by myself.

Update
When I run the plugin from within netbeans I get the following warining messsage.
java.lang.ClassNotFoundException: Will not load classes from default package (IOIndexUI)

Another interesting obersevation is, that I can import my plugin in my regular Gephi installation and also see it listed in the statistics window. I presume based on the warning message and the my experience with the regular installation that there is s

You can find my current plugin implementation here:
https://github.com/thorstenhenke/gephi-plugins

I am clearly missing out a minor but important detail...

@AnshulV98
Copy link

I am not sure about it, as I cannot see your code, But is it possible that you may have not created a StatisticsUI class for your module? I believe that might be required for the plugin to show up in the Statistics Tab. https://github.com/gephi/gephi/wiki/Statistics maybe this might help?

@AnshulV98
Copy link

AnshulV98 commented Mar 24, 2021

@thorstenhenke I tried this myself and faced a similar issue, but by fiddling around I realized that if one puts all the java files in a package then it simply shows up!!! your

java.lang.ClassNotFoundException: Will not load classes from default package (IOIndexUI)

was a big help for this. Also, don't forget to have appropriate Manifest.mf files and Bundle.properties files for your plugin.

Have a look at
https://github.com/carlschroedl/gephi-plugins/tree/minimum-spanning-tree-plugin/modules/MinimumSpanningTree/src/main f

for reference, this helped me make it work as well. Hope this helps

@eduramiba I guess this should be a sufficient solution to close the issue.

@mbastian
Copy link
Member

Hi, I'm closing the issue as the problem has been found. To avoid this in the future, I think we could auto-create the package in the generation phase. I added a ticket for that gephi/gephi-maven-plugin#13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants