aspose file tools*
The moose likes Java in General and the fly likes how to access .properties file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to access .properties file" Watch "how to access .properties file" New topic
Author

how to access .properties file

Rahul Borse
Greenhorn

Joined: Dec 07, 2011
Posts: 5
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

Joined: Aug 16, 2005
Posts: 14352
    
  22

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.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Rahul Borse
Greenhorn

Joined: Dec 07, 2011
Posts: 5
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
Bartender

Joined: Oct 14, 2005
Posts: 18911
    
    8

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

Joined: May 22, 2012
Posts: 877
    
    5
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:

 
jQuery in Action, 2nd edition
 
subject: how to access .properties file