Re: OpenJDK
On Fri, Jun 20, 2008 at 9:30 PM, Gianluca <[EMAIL PROTECTED]> wrote: > in Ubuntu 8.0.4 I installed Eclipse and I used OpenJdk to compile my > program described here: OpenJDK is not available in Debian yet. > If I make java-jar MyRecipes.jar on the shell, it works perfectly. But if I > click the mouse right on jar files and select "open with OpenJdk Runtime" > the program does not work. . Why? Sounds like a bug in the Ubuntu OpenJDK package, please file a bug in Launchpad. -- bye, pabs http://wiki.debian.org/PaulWise -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
How do you handle overlapping jar-packages?
Hi Java-Experts, just a quick question: In building JBoss I encounter a lot of jars that do (partially) overlap. I didn't find anything about how to deal with this in the Java or Debian policy. (Hope I am not just missing something!) To give two representative examples: client and server application jar: - one jar contains base classes + server classes - another jar contains base classes + client classes connector jars: - a host of different jars that all contain a few connector base classes and then connector specific (e.g. JDBC-specific) classes. The rationale is obvious: If you are doing a slim client application you don't want to install many unnecessary server classes. But you'll probably need some common infrastructure classes. I could simply do a client and a server package now. Or one package for each connector. This however does not fit well into the Debian "jar-sharing" concept as we would like to avoid having to maintain different versions of the same (base) classes across different packages. I think Debian usually assumes that jars are "atomic" installation units that do not overlap. What do you recommend in this situation? Florian -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
OpenJDK
Hi, in Ubuntu 8.0.4 I installed Eclipse and I used OpenJdk to compile my program described here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=484273 If I make java-jar MyRecipes.jar on the shell, it works perfectly. But if I click the mouse right on jar files and select "open with OpenJdk Runtime" the program does not work. . Why? thanks for any answers. Regards -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Developing with Java on Debian
Richard wrote: > This is a bit of a newby question. > > What I'm wondering is whether one can use the debian package system as > a kind of build system. Let me illustrate with an example, say for > example I want to write an app and package it with debian and this app > uses Hibernate, then I would like to declare a dependency on the > hibernate libary package and start developing in eclipse right away. > > 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. So report a bug against the hibernate package: it certainly should require all of its dependencies. Andrew. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]