Thread Java-Äquivalent zu FindBin
(3 answers)
Opened by ptk at 2005-07-05 13:01
[java]import java.net.URL;
public class Bla { public static void main( String[] args ) { URL u= new Bla().getClass().getResource( "/Bla.class" ); System.out.println( u ); } }[/java] stripped down from: http://www.javaworld.com/javaworld/javatips/jw-javatip105.html hth -- stefan
|