New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

How to access shared WIndow folders from MAC using Java API

Post Reply New Thread Subscribe

Thread Tools

Member Since: May 30, 2011
Posts: 2
coolrb is on a distinguished road

coolrb is offline
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.
QUOTE Thanks

Post Reply New Thread Subscribe

« Mac has mini freezes for 5+ seconds | mac and 7 networking »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
Synchronizing Shared Folders Between a Mac & PC On Same Network Arielluria Switcher Hangout 2 05-14-2011 11:42 AM
Shared User Directory on iMac Doesn't Show in Mac Mini Desktop geekboy2000 OS X - Operating System 0 02-12-2008 08:48 AM
Window users that are MAC WANNA BE'S! jdoverkill Switcher Hangout 47 10-12-2006 02:48 PM
Mac Users Get More ISP Choices schweb Apple Rumors and Reports 1 03-06-2003 10:57 AM

All times are GMT -4. The time now is 04:16 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?