[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Developing with Java on Debian



Hi Richard,

Right now I see that hibernate is available as a library package that
has put jars in /usr/share/java. If I depend on these jars and write a
unit test I discover that there are more dependencies, I need some of
the apache commons libraries and the log4j library, but I can't see
those as dependencies.

Are you speaking about declaring dependencies within Eclipse (=configuring the project's build path)?

Or are you speaking about missing jar-packages required for the hibernate package on the Debian package layer?

In the second case, if there are dependencies that have not been automatically installed on the system you should probably file a bug as Andrew said.

In the first case however (which I think you were talking about) I don't know about an Eclipse plugin that is capable of interpreting Debian package dependencies and "importing" them as build path dependencies to Eclipse. The only thing I can think of is that you manually look at the package dependencies (either through a script using dpkg or through Synaptic GUI -> package properties) and see which jars or sources have been installed by packages depending on the library you are interested in.

If you are an advanced scripter you might write a script that updates your .classpath-File in the Eclipse project folder based on information retrieved from Debian packages. I'd be really interested if you invented something like this. It might even not be very hard to do it that way. :-)

Florian


Reply to: