Gentoo Archives: gentoo-user

From: darren kirby <bulliver@×××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Java and java.library.path
Date: Wed, 18 Jan 2006 13:38:36
Message-Id: 200601180534.37191.bulliver@badcomputer.org
In Reply to: Re: [gentoo-user] Java and java.library.path by Trenton Adams
1 quoth the Trenton Adams:
2 > on the "java" command line put "-Djava.library.path=/usr/lib"
3 >
4 > I don't know if gentoo has a config for this or not, I didn't know
5 > ADDLDPATH existed. Who knows, perhaps editing the JRE version of that
6 > file would help?
7
8 I am really sorry, but I don't know what you mean by 'java command line'. The
9 app itself, is in /usr/bin like everything else, it just gives me that error
10 when I start it from an xterm, ie:
11 $ iriverter
12 <insert error message>
13
14 I don't know what you mean by "editing the JRE version of that file would
15 help" either. What is jre version? What file? Again, I really know nothing of
16 java...
17
18 Please dumb it down for me a bit if you can...
19
20 >
21 > On 1/17/06, darren kirby <bulliver@×××××××××××.org> wrote:
22 > > Hello all,
23 > >
24 > > I am trying to get an app called iriverter up and running. Not in portage
25 > > so I built and installed manually, which went with no errors. However,
26 > > after starting the app I get:
27 > >
28 > > Exception in thread "main" java.lang.UnsatisfiedLinkError: no
29 > > swt-pi-gtk-3201 in java.library.path
30 > >
31 > > But I do have this library:
32 > > $ locate swt-pi-gtk
33 > > /usr/lib/libswt-pi-gtk-3201.so
34 > >
35 > > I ran java-config to see which java I am using (blackdown-jdk-1.4.2.02)
36 > > and I edited /etc/env.d/java/20blackdown-jdk-1.4.2.02 and added
37 > > '/usr/lib/' to the 'ADDLDPATH' variable, ran env-update, sourced
38 > > /etc/profile, and even logged out and back in but I still have the same
39 > > error.
40 > >
41 > > Now: I don't really know jack about java, so can someone tell me how to
42 > > get this to work? How can I add /usr/lib/ to java's library path?
43 > >
44 > > Thanks for consideration,
45 > > -d
46 > > --
47 > > darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
48 > > "...the number of UNIX installations has grown to 10, with more
49 > > expected..." - Dennis Ritchie and Ken Thompson, June 1972
50
51 --
52 darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
53 "...the number of UNIX installations has grown to 10, with more expected..."
54 - Dennis Ritchie and Ken Thompson, June 1972

Replies

Subject Author
Re: [gentoo-user] Java and java.library.path Holly Bostick <motub@××××××.nl>