Bug#356805: classpath: missing java.lang.Thread.UncaughtExceptionHandler interface

Andrew John Hughes A.Hughes at dcs.shef.ac.uk
Tue Mar 14 09:24:03 UTC 2006


On Tue, 14 Mar 2006 10:01:43 +0100
Mark Wielaard <mark at klomp.org> wrote:

> On Tue, 2006-03-14 at 08:54 +0100, Petter Reinholdtsen wrote:
> > Package: classpath
> > Version: 2:0.90-1
> > 
> > When trying to run the java standalone client for Openstreetmap,
> > <URL:http://www.eigenheimstrasse.de/josm/josm-latest.jar>, it crashes
> > with the given error message.  According to Michael Koch on IRC, this
> > is because the java.lang.Thread.UncaughtExceptionHandler interface
> > that was introduced in java 1.5 is missing in classpath.
> 
> Note that classpath-generics does have support for this in Thread and
> ThreadGroup. It could probably be ported to the main branch since it
> doesn't need any additional 1.5 language features as far as I can see.
> 
> Another option of course is running josm against jamvm and
> classpath-generics, but I believe classpath-generics hasn't been
> packaged for Debian yet.
> 

>From a brief glance over the code, I think this can be copied over to HEAD.  It looks
like the kind of stuff I was talking about a couple of weeks ago; code that has no
real reason to only be on generics (and shouldn't have been developed there to start
with).

However, this won't solve the problem immediately as such a port would not be rolled
out until Classpath 0.91.  As Mark says, jamvm and classpath-generics is probably
your best solution for now, but you'll have to build the generics branch yourself.
Assuming you have a recent enough version of jamvm (presumably from testing or unstable),
you can get away with just pointing it at your local generics-branch install e.g.

mv /usr/share/classpath /usr/share/classpath.debian
mv /usr/lib/classpath /usr/lib/classpath.debian
ln -s $(generics_prefix)/share/classpath /usr/share/classpath.generics
ln -s $(generics_prefix)/lib/classpath /usr/lib/classpath.generics

This gives you both Debian's copy of Classpath, and the generics one respectively
as classpath.debian and classpath.generics in /usr/lib and /usr/share.  Then you
just symlink the one you want to /usr/lib/classpath and /usr/share/classpath and jamvm
will use it.

Alternatively, it shouldn't be too hard to build a local version of JamVM too, and point
it directly at your generics build.

Note that you'll need ecj to build the generics branch, but, with that on the path,
it should work out of the box with the usual ./configure; make; make install combo, giving
an appropriate prefix to configure.

Thanks for trying GNU Classpath!
-- 
Andrew :-)

Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
Support OpenDocument instead.

Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }

"Value your freedom, or you will lose it, teaches history. 
`Don't bother us with politics' respond those who don't want to learn." 
-- Richard Stallman

The views expressed above are representative of my own personal
opinions, and not necessarily those of the University of Sheffield.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20060314/94128e67/attachment.pgp


More information about the pkg-java-maintainers mailing list