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

Demo doesn't work #6

Closed
Bios-Marcel opened this issue Nov 8, 2017 · 4 comments
Closed

Demo doesn't work #6

Bios-Marcel opened this issue Nov 8, 2017 · 4 comments

Comments

@Bios-Marcel
Copy link

Bios-Marcel commented Nov 8, 2017

The demo won't even start.

I am getting those errors when trying to run PreviewJFrame.java:

Exception in thread "main" java.lang.NoClassDefFoundError: it/unimi/dsi/fastutil/objects/Object2IntMap
	at org.gephi.io.importer.impl.ImportContainerFactoryImpl.newContainer(ImportContainerFactoryImpl.java:52)
	at org.gephi.io.importer.impl.ImportControllerImpl.importFile(ImportControllerImpl.java:174)
	at org.gephi.io.importer.impl.ImportControllerImpl.importFile(ImportControllerImpl.java:228)
	at org.gephi.io.importer.impl.ImportControllerImpl.importFile(ImportControllerImpl.java:146)
	at org.gephi.toolkit.demos.PreviewJFrame.script(PreviewJFrame.java:56)
	at org.gephi.toolkit.demos.PreviewJFrame.main(PreviewJFrame.java:100)
Caused by: java.lang.ClassNotFoundException: it.unimi.dsi.fastutil.objects.Object2IntMap
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 6 more

I am assuming this is somewhat related to the problem stated in #3 , despite the fact that the last commitmessages claim to have updated everything?

@tkobaya
Copy link

tkobaya commented Nov 6, 2019

Hi,

I faced the same problem and fixed it. You just need to add a declaration of a dependency to FastUtil in pom.xml like:

    <dependencies>
        <dependency>
            <groupId>org.gephi</groupId>
            <artifactId>gephi-toolkit</artifactId>
            <version>${project.version}</version>
        </dependency>
+        <dependency>
+            <groupId>it.unimi.dsi</groupId>
+            <artifactId>fastutil</artifactId>
+            <version>7.0.13</version>
+        </dependency>
    </dependencies>

I tried recent version of FastUtil (8.3.0) but it didn't work. Version 7.0.13 works in my environment (Oracle JDK 8)

@daydin
Copy link

daydin commented Jun 20, 2024

The demo doesn't work for me either, but I'm having issues in a different way. I'm getting a java.lang.ClassNotFoundException: org.gephi.toolkit.demos.Main even though I have the whole toolkit locally cloned. I'm trying to run Main.java with mvn exec:java -Dexec.mainClass=org.gephi.toolkit.demos.Main.

@seinecle
Copy link

You neee to build the project before running it.

@daydin
Copy link

daydin commented Jun 21, 2024

D'oh, thanks!

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

4 participants