[3972] in java-interest

home help back first fref pref prev next nref lref last post

file paths in applications

daemon@ATHENA.MIT.EDU (Ed Anuff)
Wed Dec 6 01:32:28 1995

Date: Tue, 5 Dec 1995 20:58:56 -0800
To: java-interest@java.sun.com
From: edanuff@protagonist.com (Ed Anuff)

What is the best way of getting the path to the class of a standalone java
application.  I have a standalone app and I'm using images for buttons and
UI elements.  Right now, I'm using the full path (ie.
file://C:/java/work/button.gif), but I'd like to be able to load files from
the same directory as the classes, or be able to construct relative file://
URLs or path strings.  Any ideas?

Ed


Ed Anuff
Protagonist Interactive
edanuff@protagonist.com
http://www.protagonist.com/


-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post