Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 119142

Summary: tinker-4.2 FFE does not start (even with blackdown3D)
Product: Gentoo Linux Reporter: mykhal <mykhal>
Component: Current packagesAssignee: Donnie Berkholz (RETIRED) <dberkholz>
Status: RESOLVED FIXED    
Severity: major CC: java, mattions
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description mykhal 2006-01-15 16:50:36 UTC
sci-chemistry/tinker-4.2

tinker's java-based force field explorer (/usr/bin/tinker) does not work even with blackdown java3D is installed.

See the console shot:

user % cat /usr/bin/tinker
java -jar /usr/lib/tinker/ffe.jar -Djava.library.path=$(java-config -i blackdown-java3d-bin) -cp $(java-config -p blackdown-java3d-bin)

user % java-config -i blackdown-java3d-bin
/opt/blackdown-java3d-bin/lib/

user % ls -l /opt/blackdown-java3d-bin/lib/
total 408
-rwxr-xr-x  1 root root 135388 Jan 16 00:38 libJ3D.so
-rwxr-xr-x  1 root root   3536 Jan 16 00:38 libJ3DUtils.so
-rwxr-xr-x  1 root root 265836 Jan 16 00:38 libj3daudio.so

user % java-config -p blackdown-java3d-bin
/usr/share/blackdown-java3d-bin/lib/j3dcore.jar:/usr/share/blackdown-java3d-bin/lib/vecmath.jar:/usr/share/blackdown-java3d-bin/lib/j3daudio.jar:/usr/share/blackdown-java3d-bin/lib/j3dutils.jar

user % ls -l /usr/share/blackdown-java3d-bin/lib/
total 5484
-rw-r--r--  1 root root 1386793 Jan 16 00:38 j3daudio.jar
-rw-r--r--  1 root root 2514820 Jan 16 00:38 j3dcore.jar
-rw-r--r--  1 root root 1401997 Jan 16 00:38 j3dutils.jar
-rw-r--r--  1 root root  290018 Jan 16 00:38 vecmath.jar

user % java-config -L
[blackdown-jre-1.4.2.02] "Blackdown JRE 1.4.2.02" (/etc/env.d/java/20blackdown-jre-1.4.2.02)
[kaffe-1.1.4] "Kaffe 1.1.4" (/etc/env.d/java/20kaffe-1.1.4)
[blackdown-jdk-1.4.2.02] "Blackdown JDK 1.4.2.02" (/etc/env.d/java/20blackdown-jdk-1.4.2.02) *

user % java-config -l | tail -n 1
[blackdown-java3d-bin] Java 3D Software Development Kit (/usr/share/blackdown-java3d-bin/package.env)

user % /usr/bin/tinker

Java3D Extensions have not been installed

Please download Java3D 1.3.1 from a Blackdown FTP Site:
http://www.blackdown.org

Force Field Explorer can not continue
Comment 1 mykhal 2006-01-16 06:17:55 UTC
note:
app-misc/bfm, which also uses blackdown Java3D, seems to work on the same machine.
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2006-01-16 12:47:09 UTC
I know it doesn't work, and I can't get it working. I already asked someone on our java team and haven't heard back. If you can get it working, please do post on here.
Comment 3 Michele Mattioni 2006-05-22 09:28:43 UTC
Some problem here.
Can't get it working.

Some situation of comment #1.

Any idea ?
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2006-06-20 23:55:17 UTC
Java guys, can you help me get this thing working?
Comment 5 Josh Nichols (RETIRED) gentoo-dev 2006-06-21 06:58:14 UTC
The launcher script needs to be changed to:

java -Djava.library.path=$(java-config -i blackdown-java3d-bin) -cp $(java-config -p blackdown-java3d-bin):/usr/lib/tinker/ffe.jar ffe.Main

The problem is that when you use -jar, it ignores anything you put on the classpath using -cp... so basically, it was ignoring the jars from blackdown-java3d-bin, hence the particular error.
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2006-06-21 07:18:19 UTC
Yay! Thanks much! Fixed in 4.2-r1.