java.lang.UnsatisfiedLinkError: Can't load library: <project path>//libgluegen-rt.so
exception when trying to call Java 3D stuff from my code (new CustomTriangleMesh()
). I guess I need JOGL to solve this. How do I add it via Maven? I tried adding a runtime dependency to net.java.jogl
, but that didn't help.
StructureModelIndexTest
and VolumeFractionTest
<!-- JOGL dependencies -->
<dependency>
<groupId>org.jogamp.gluegen</groupId>
<artifactId>gluegen-rt-main</artifactId>
<version>2.3.2</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.jogamp.jogl</groupId>
<artifactId>jogl-all-main</artifactId>
<version>2.3.2</version>
<scope>runtime</scope>
</dependency>
-e
gives the following trace:org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: org.apache.maven.plugins:maven-enforcer-plugin. Reason: Unable to parse the created DOM for plugin configuration
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:723)
...
[INFO] Restricted to JDK 1.6 yet org.scijava:j3dcore:jar:1.6.0-scijava-2:compile contains org/scijava/java3d/DecalGroupRetained.class targeted to JDK 1.7
[INFO] Restricted to JDK 1.6 yet org.scijava:j3dutils:jar:1.6.0-scijava-2:compile contains org/scijava/java3d/internal/FloatBufferWrapper.class targeted to JDK 1.7
[WARNING] Rule 5: org.apache.maven.plugins.enforcer.EnforceBytecodeVersion failed with message:
Found Banned Dependency: org.scijava:j3dcore:jar:1.6.0-scijava-2
Found Banned Dependency: org.scijava:j3dutils:jar:1.6.0-scijava-2
diff --git a/Legacy/bonej/pom.xml b/Legacy/bonej/pom.xml
index 2cde652..372ecdd 100644
--- a/Legacy/bonej/pom.xml
+++ b/Legacy/bonej/pom.xml
@@ -88,6 +88,10 @@
</repository>
</repositories>
+ <properties>
+ <scijava.jvm.version>1.7</scijava.jvm.version>
+ </properties>
+
<dependencies>
<!-- BoneJ dependencies -->
<dependency>
$ mvn -v
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T10:41:47-06:00)
Maven home: /usr/local/Cellar/maven/3.3.9/libexec
Java version: 1.8.0_73, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.4", arch: "x86_64", family: "mac"
Could not reserve enough space for 1572864KB object heap
.. Can anyone confirm that issue? Also fails for 32-bit ImageJ/Fiji on a 64-bit Windows 10..