1 |
Am Wed, 08 Jul 2009 16:47:57 +0200 (CEST) |
2 |
schrieb Helmut Jarausch <jarausch@××××××××××××××××.de>: |
3 |
|
4 |
> Hi, |
5 |
|
6 |
Hi, |
7 |
|
8 |
> I'm in need to use some commercial software (Matlab and Maple) which |
9 |
> come with their own (probably old) version of Java. |
10 |
> |
11 |
> Now, both of those software packages cannot print, they don't see any |
12 |
> CUPS printer UNLESS I remove the symlink /usr/lib/libcups.so which |
13 |
> points to libcups.so.2 |
14 |
> |
15 |
> But some GenToo packages do need that link, e.g. x11-lib/qt-gui won't |
16 |
> install unless that link is there. |
17 |
> |
18 |
> I remember there is a bug with older versions of Java accessing CUPS, |
19 |
> and probably my commercial packages contain such an old version. |
20 |
> |
21 |
> Does anybody know how to fix or circumvent this. |
22 |
> (Currently I have to remove the symlink when using one of these |
23 |
> commercial packages and reinstall it afterwards, but ... for a normal |
24 |
> user without root priviledges that's not possible unless I write an SUID |
25 |
> script) |
26 |
|
27 |
I can't speak for Maple, but for Matlab you can export the variable |
28 |
$MATLAB_JAVA. I have |
29 |
|
30 |
marcec@marcec ~ % echo $MATLAB_JAVA |
31 |
/usr/lib/jvm/emul-linux-x86-java-1.6 |
32 |
|
33 |
You can check if it worked via "matlab -e" in a shell or with the following |
34 |
Matlab command: |
35 |
|
36 |
EDU>> version('-java') |
37 |
ans = |
38 |
Java 1.5.0 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode |
39 |
|
40 |
That's the Java that's shipped with my 2007a installation. For comparison, |
41 |
with $MATLAB_JAVA set as above: |
42 |
|
43 |
EDU>> version('-java') |
44 |
ans = |
45 |
Java 1.6.0_13 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed |
46 |
mode, sharing |
47 |
|
48 |
I just tested printing from the editor and it works with the system 32bit JVM, |
49 |
but not with the shipped one, so it should work for you. |
50 |
|
51 |
I'm not sure about stability, though. I never used to have problems, but more |
52 |
or less recently Matlab would SEGFAULT occasionally (even though I set this |
53 |
variable long before the SEGFAULTs started). While using the shipped JVM, it |
54 |
never crashed. It could be completely unrelated to the JVM being used, but I |
55 |
think it's better to be aware of the possibility. |
56 |
|
57 |
> Thanks for any hints, |
58 |
> |
59 |
> Helmut Jarausch |
60 |
> |
61 |
> Lehrstuhl fuer Numerische Mathematik |
62 |
> RWTH - Aachen University |
63 |
> D 52056 Aachen, Germany |
64 |
|
65 |
HTH |
66 |
-- |
67 |
Marc Joliet |
68 |
-- |
69 |
"People who think they know everything really annoy those of us who know we |
70 |
don't" - Bjarne Stroustrup |