Re: [Java-gnome-developer] Image handling URL
Brought to you by:
afcowie
From: Joao V. <jvi...@ya...> - 2005-05-12 00:38:55
|
--- pancake <pa...@ph...> escreveu: > I found a problem in JavaGnome API....it seems that it's impossible to handle files inside a > JAR. > > The right way to do it is using > > URL xxx = this.getClass().getResource("icons/gdvb.png"); > > This returns an url like: jar:file://path/to/jar!path/to/file That's correct... but that isn't Java-Gnome's funcionality anymore, that's just java. But i didn't understand very well what you want to do: You want a class inside a jar to load a file which is outside the jar? Is that right? Well, either case, take a look at this page: http://www.javaworld.com/javaworld/javaqa/2002-11/02-qa-1122-resources.html Cheers, J.V. ____________________________________________________Yahoo! Mail, cada vez melhor: agora com 1GB de espaço grátis! http://mail.yahoo.com.br |