Using relative path in java programs - how ?
From: Guy (ni4ni_at_hotmail.com)
Date: 06/15/04
- Next message: Shearer: "Re: j2me - little characters"
- Previous message: Thomas Weidenfeller: "Re: Character encodings and invalid characters"
- Next in thread: Dan Gravell: "Re: Using relative path in java programs - how ?"
- Reply: Dan Gravell: "Re: Using relative path in java programs - how ?"
- Reply: Andrew Thompson: "Re: Using relative path in java programs - how ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 15 Jun 2004 00:59:00 -0700
Hi
I wrote a new servlet that uses a configuration file to store
parameters.
The problem is that I want to use a relative path when accessing this
file, since I dont know where this servlet will be deployed.
Basically, I want it to be in the same directory where the .class
files are located.
Using the property user.dir does'nt help because it returns the
server's executable path.
How can I control this ? how can the program "know" where the class
files are ?
- Next message: Shearer: "Re: j2me - little characters"
- Previous message: Thomas Weidenfeller: "Re: Character encodings and invalid characters"
- Next in thread: Dan Gravell: "Re: Using relative path in java programs - how ?"
- Reply: Dan Gravell: "Re: Using relative path in java programs - how ?"
- Reply: Andrew Thompson: "Re: Using relative path in java programs - how ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|