Yeah, I saw that, but all of those methods return the whole string. Path and filename. I've also tried manually stripping out the classname with strings but that didnt work either. What I really need is just a method or some source code that dodoes something along the lines of Applet's getDocumentBase method.