FYI Jabref doesn't work out of the box

Discussions Regarding Software

Moderator: Moderators

FYI Jabref doesn't work out of the box

Postby rjaduthie » Thu Oct 11, 2012 13:46

This may be a Java issue, though actually it should work out of the box. My story:

- I use JabRef to organise scientific papers and to generate BibTeX for articles of my own.
- I wanted to install this on Sabayon 10 on my laptop. I have Gnome 3 desktop.
- I used Rigo to select and install JabRef.
- It didn't work: :(
> the icon in the Activities/Applications list does nothing;
> typing jabref & in a terminal gave an error (I cannot be sure I can replicate this...sorry)
> I thought it was a Java problem, so I looked into my Java situation. Found that typing "java -version" in the terminal gave an error which essentially said that Java didn't exist (I cannot quote, this either, sorry)
> I installed Java 1.6.0 and now when I type "java -version" I get: :)
Java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)

> typing "jabref &" gives (which I think is pretty similar to previously, though not identical): :(
Traceback (most recent call last):
File "/usr/bin/gjl-2.7", line 273, in <module>
env = get_env(pkg)
File "/usr/bin/gjl-2.7", line 215, in get_env
env = manager.build_dep_env_vars([package.name()], set())
File "/usr/lib64/python2.7/site-packages/java_config_2/EnvironmentManager.py", line 401, in build_dep_env_vars
self.add_pkg_env_vars(pkg, env)
File "/usr/lib64/python2.7/site-packages/java_config_2/EnvironmentManager.py", line 373, in add_pkg_env_vars
val = pkg.query(var)
File "/usr/lib64/python2.7/site-packages/java_config_2/Virtual.py", line 180, in query
return self.get_provider().query(var)
File "/usr/lib64/python2.7/site-packages/java_config_2/VM.py", line 53, in query
raise EnvironmentUndefinedError
java_config_2.Errors.EnvironmentUndefinedError
Couldn't get needed information

> Also, running "java -jar /...path to.../jabref.jar" gives: :(
java -jar /usr/share/jabref/lib/jabref.jar
Exception in thread "main" java.lang.NoClassDefFoundError: com/jgoodies/looks/plastic/theme/SkyBluer
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at net.sf.jabref.JabRefMain.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.jgoodies.looks.plastic.theme.SkyBluer
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 3 more


> However, if you download the jar from SourceForge and use "java -jar /...path to.../JabRef-2.8.1.jar" then it works! :mrgreen:
rjaduthie
Baby Hen
 
Posts: 1
Joined: Sat Oct 06, 2012 8:36

Re: FYI Jabref doesn't work out of the box

Postby micia » Thu Oct 11, 2012 14:32

Hi, welcome to the Sabayon Linux forums :)

Here JabRef works perfectly out of the box, are you sure you had a good Java environment?
For example what was the output of:
Code: Select all
eselect java-vm list
User avatar
micia
Sagely Hen
 
Posts: 2710
Joined: Wed Nov 26, 2008 16:41


Return to Software in General

Who is online

Users browsing this forum: No registered users and 1 guest