Bookmark Topic Watch Topic
  • New Topic

expand the ./filename to fully qualified path automatically  RSS feed

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
"learner xuc" - please check your private messages about an important administrative issue from JavaRanch.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!