• Post Reply Bookmark Topic Watch Topic
  • New Topic

JCIFS copy file from windows to linux  RSS feed

 
lo pi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I would like to copy file from Windows shared directory to linux directory on local hard drive. I try use JCIFS, if copy from shared directory to other shared directory it all is ok.



But I can't find how copy file from shared directory to local directory. And if I write it then it don't copy file only show errors:

Exception in thread "main" java.net.MalformedURLException: no protocol: /home/plolo/test/te.txt
at java.net.URL.<init>(URL.java:585)
at jcifs.smb.SmbFile.<init>(SmbFile.java:446)
at TestCopy.main(TestCopy.java:14)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!