[jcifs] Newbie trying to connect

Allen, Michael B (RSCH) Michael_B_Allen at ml.com
Tue Jun 10 08:27:11 EST 2003


There's lot's of documentation. See http://jcifs.samba.org/. Start with the FAQ.

> -----Original Message-----
> From:	wakabayashi, jr [SMTP:jwakabayashi at pdpsys.com]
> Sent:	Monday, June 09, 2003 3:37 PM
> To:	'jcifs at lists.samba.org'
> Subject:	[jcifs] Newbie trying to connect
> 
> I'm trying to create swing client that scans an image and saves it to a
> particular directory on another machine.  I wanted to try and use this
> package to see how it would work.  I made a test class and i'm getting this
> error.  Is there any documentation out there?  
> 
> here's my code first.
> 
> public static void main(String[] args) {
> 	System.out.println("new test");
> 	//jcifs.Config.setProperty( "wins", "192.168.1.220" );
> 	System.out.println("testing");
> 		try {
> 			SmbFileInputStream in = new
> SmbFileInputStream("smb://jrw:jw@jrw/c/PO/poimages/1.gif" );
> 			System.out.println("in is " + in);
> 		} catch (Exception e) {
> 			e.printStackTrace();
> 		}
> 	}
> 
> The error response is ...
> 
> new test 
> testing 
> jcifs.smb.SmbException: The network name cannot be found at
> jcifs.smb.SmbTransport.send(SmbTransport.java:496) 	at
> jcifs.smb.SmbSession.sessionSetup(SmbSession.java:127) 	at
> jcifs.smb.SmbSession.send(SmbSession.java:102) 	at
> jcifs.smb.SmbTree.treeConnect(SmbTree.java:124) 	at
> jcifs.smb.SmbFile.connect(SmbFile.java:514) 	at
> jcifs.smb.SmbFile.connect0(SmbFile.java:484) 	at
> jcifs.smb.SmbFile.open(SmbFile.java:541) 	at
> jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:69) 	at
> jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:63) 	at
> jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:49) 	at
> com.po.Test.main(Test.java:26) Process Exit...
> 
> any help would be appreciated.
> 
> thanks.
> 
> Regards,
> 
> JR Wakabayashi
> DVM Manager
> PDP Systems
> 47027 Benicia Street
> Fremont, CA  94538
> Phone 510-438-8590
> Fax 510-979-1338
> 




More information about the jcifs mailing list