• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to access .properties file

 
Rahul Borse
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to access result.properties file from another computer in network (my IP is 192.168.1.2)


error : java.io.FileNotFoundException: \\192.168.1.7\softwares\result.properties (Access is denied)

the os of 192.168.1.2 is Windows xp

the folder softwares is shared

 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15495
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you type \\192.168.1.7\softwares in the location bar in Windows Explorer, are you then allowed to see the content of the directory, and open the file with for example a text editor?

If not, then something is wrong with your Windows permissions.
 
Rahul Borse
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey thanks for reply

if i try to read text file it successfully reads through file://///192.168.1.7/softwares/result.txt on browser

but not with the same result.properties

this time i have tried this also

 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rahul Borse wrote:the folder softwares is shared


Then I would suggest mapping a local drive to that share, and accessing the file on that local drive.
 
Ivan Jozsef Balazs
Rancher
Posts: 982
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This works for me as expected with versions 1.4, 1.5, 1.6, 1.7 on Windows XP against a drive exported by a NAS device.
The drive is however in the mean while mapped to Z:, but I don't think this plays a role:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic