Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 140619 - dev-java/jdbc-mysql-3.1.10: issue with ooffice-bin 2.0.3
Summary: dev-java/jdbc-mysql-3.1.10: issue with ooffice-bin 2.0.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-16 04:21 UTC by Toralf Förster
Modified: 2007-04-24 21:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2006-07-16 04:21:11 UTC
A

ln -s /usr/share/jdbc-mysql/lib/jdbc-mysql.jar /opt/sun-jre-bin-1.5.0.06/jre/lib/ext/

solved all issues I had to connect to the mysql database with jdbc in ooffice-bin-2.0.3. B/c this is only a workaround is there a more general solution ?
Comment 1 Toralf Förster gentoo-dev 2006-07-16 04:24:45 UTC
eg, adding a file containing
CLASSPATH=/usr/share/jdbc-mysql/lib/jdbc-mysql.jar
into /etc/env.d ?
Comment 2 Josh Nichols (RETIRED) gentoo-dev 2006-07-17 18:31:41 UTC
The first solution is probably better. It is really best to avoid putting stuff on the global CLASSPATH.

Assigning to openoffice to handle it from here.
Comment 3 Andreas Proschofsky (RETIRED) gentoo-dev 2006-07-18 02:23:24 UTC
(In reply to comment #2)
> The first solution is probably better. It is really best to avoid putting stuff
> on the global CLASSPATH.
> 
> Assigning to openoffice to handle it from here.
> 

Actually this really does not look like something we should do in the openoffice-ebuild, don't think playing around in directories of other packages is a good idea
Comment 4 Hanno Zysik (geki) 2006-07-18 04:02:50 UTC
I used to add jdbc-mysql jar to Extras->Options->OpenOffice.org->Java->Class Path. Now I see this bugreport and had a look at my openoffice installation.

There is a nice script from Petr Mladek to set the global openoffice Java classpath.
/usr/lib/openoffice/program/java-set-classpath

To add jdbc-mysql.jar to it you would do:
/usr/lib/openoffice/program/java-set-classpath $(java-config --classpath=jdbc-mysql 2>/dev/null) >/dev/null
Comment 5 Josh Nichols (RETIRED) gentoo-dev 2006-07-18 05:03:31 UTC
(In reply to comment #3)
> Actually this really does not look like something we should do in the
> openoffice-ebuild, don't think playing around in directories of other packages
> is a good idea
> 

To be clear, what I was suggesting was to update openoffice-bin to depend on jdbc-mysql, and symlink in the jdbc-mysql.jar.

Hanno's idea does look cleaner though. Perhaps that could be done during the merge?
Comment 6 Toralf Förster gentoo-dev 2006-07-19 00:34:19 UTC
(In reply to comment #4)
> I used to add jdbc-mysql jar to Extras->Options->OpenOffice.org->Java->Class
> Path. Now I see this bugreport and had a look at my openoffice installation.
> 
This works fine, should be mentioned in the ebuild.
Closing this bug.
Comment 7 Andreas Proschofsky (RETIRED) gentoo-dev 2006-07-19 04:43:00 UTC
(In reply to comment #5)
> (In reply to comment #3)
> > Actually this really does not look like something we should do in the
> > openoffice-ebuild, don't think playing around in directories of other packages
> > is a good idea
> > 
> 
> To be clear, what I was suggesting was to update openoffice-bin to depend on
> jdbc-mysql, and symlink in the jdbc-mysql.jar.
> 
> Hanno's idea does look cleaner though. Perhaps that could be done during the
> merge?
> 

Will take a look at it, anyway: This bug should not be closed
Comment 8 Andreas Proschofsky (RETIRED) gentoo-dev 2006-07-28 15:23:17 UTC
@Hanno: Do you have an idea which other jars we should add to the classpath? Cause it would be great to handle them all and not only just one
Comment 9 Hanno Zysik (geki) 2006-07-29 02:22:43 UTC
I do not know about others.
Comment 10 Andreas Proschofsky (RETIRED) gentoo-dev 2007-04-24 21:14:29 UTC
We do this in openoffice now, closing