Docs: http://jcifs.samba.org/src/docs/api/jcifs/smb/SmbFile.html Line: smb://[[[domain;]username[:password]@]server[:port]/[[share/[dir/]file]]] [?[param=value[param2=value2[...]]] In 2nd part, near ? char, there're 4 open braces '[', while only 3 closing braces ']' Probably one brace ] is missing at the end. Best Regards, Michal