aspose file tools
The moose likes Java in General and the fly likes expand the ./filename to fully qualified path automatically Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

expand the ./filename to fully qualified path automatically

shield kumar
Greenhorn

Joined: Feb 05, 2009
Posts: 28
I have a java file which takes a filename as parameter with fully qualified path(starting from root '/').
I use this java file in UNIX m/c.

This is how I execute my java file


I want here that user should be able to give just the filename as parameter not with fully qualified path.
I want that somehow the xyz class comes to know where the param.txt is located without the user specifying it's full path.
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12929
    
    3

"learner xuc" - please check your private messages about an important administrative issue from JavaRanch.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12929
    
    3

Double post.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: expand the ./filename to fully qualified path automatically
 
Similar Threads
Tomcat 4.0 issue
How to make FormFile return fully qualified file name?
How to create File object for servlet and so where to place the folder
expand the ./filename to fully qualified path automatically
K&B: Has-a relationship