05-30-2011, 03:54 AM #1
How to access shared WIndow folders from MAC using Java API
- Member Since
- May 30, 2011
I am literally crumbling to create or do any file IO operation in a shared Window(Server) directory from my MAC. I use smb://server-ip/shared-directory to access file/folder from my MAC. However using the same notation in file IO API does not work and it all gives null pointer exception.
String uri = "smb://server/shared1/subm=folder"; // also tried with file:///server, smb://DOMAIN;user@server/shared1 etc...
File file = new File(uri);
System.out.println(file.list()); //This always gives null
This is really critical for me and would appreciate your help.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By RickCJ7 in forum OS X - Operating SystemReplies: 0Last Post: 07-16-2014, 05:33 PM
By RvanK in forum Internet, Networking, and WirelessReplies: 0Last Post: 11-15-2010, 04:31 PM
By matthieu in forum OS X - Operating SystemReplies: 0Last Post: 06-27-2009, 07:40 AM
By rsook in forum Internet, Networking, and WirelessReplies: 0Last Post: 05-05-2009, 01:02 PM
By nick_harambee in forum OS X - Operating SystemReplies: 1Last Post: 04-02-2007, 07:18 AM