Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

referencing Classpath for data 1

Status
Not open for further replies.

Bong

Programmer
Dec 22, 1999
2,063
US
Greeting.
This is a variant of the issue explored in thread269-891589

I have a program that reads a text file to fill in items for a Choice. The target platform is a Sharp PDA (Zaurus 5500) running Linux. I have the text file in the same place as the class files and I invoke the application by first "cd-ing" to that directory and then calling the JRE and the main. I would like to make it so I can invoke the program from anywhere (using -cp).

Is there a way to refer to a file location as being in the classpath or, alternatively, in the [blue]same location as the invoked class[/blue]?

_________________
Bob Rashkin
rrashkin@csc.com
 
Thanks. That's just the ticket.

_________________
Bob Rashkin
rrashkin@csc.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top