[jcifs] Newbie trying to connect

wakabayashi, jr jwakabayashi at pdpsys.com
Tue Jun 10 05:36:46 EST 2003

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", "" );
		try {
			SmbFileInputStream in = new
SmbFileInputStream("smb://jrw:jw@jrw/c/PO/poimages/1.gif" );
			System.out.println("in is " + in);
		} catch (Exception e) {

The error response is ...

new test 
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.



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