• Post Reply Bookmark Topic Watch Topic
  • New Topic

FilePath on SOLARIS ?

 
merwin pinto
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a strange problem .....
i have a File object
File f=new File("./");
f.getAbsolutePath();
Gives me the path of the current directory ..... in windows
Now if i try to print the absolute path in SOLARIS it just prints
./: .....i dont understand why .... if
am i doing any thing wrong .... how do i get the present working directory and path in SOLARIS ??? any suggestions??
thanks a lot
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting. Works fine for me on both platforms (Windows XP, Solaris 9, JDK 1.4.2_04-b05). How about this:


[ January 17, 2006: Message edited by: Joe Ess ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!