Re: current directory of the class
- From: Tor Iver Wilhelmsen <jadedgamer@xxxxxxxxxxx>
- Date: 30 Sep 2005 18:40:27 +0200
Thomas Fritsch <i.dont.like.spam@xxxxxxxxxxx> writes:
> Class c = Main.class;
> String s = '/' + c.getName().replace('.', '/') + ".class";
> URL url = c.getResource(s);
You can shorten that to
URL url = Main.class.getResource("Main.class");
.
- Prev by Date: Re: JNI C++ importatn process
- Next by Date: Class data sharing on windows not working if I set large heap size
- Previous by thread: Re: Book recommendation
- Next by thread: Class data sharing on windows not working if I set large heap size
- Index(es):