<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>28 Jul 2016 09:35:37 Z</lastBuildDate><pubDate>26 Aug 2014 20:47:00 Z</pubDate><description>Hi all,&#13;
im trying to include java library for SMB protocol in Wm 17 by typing native Java code.&#13;
The scope is to access windows files directly in SMB format smb://hostname/drive/file.&#13;
I saw on google play examples build with this library: Jcifs,http://jcifs.samba.org/.&#13;
I have downloaded java library,and put the library in the directory of my project.&#13;
Then i have made a global procedure smbget with this content:&#13;
import jcifs.smb.*;&#13;
import jcifs.netbios.NbtAddress;&#13;
import jcifs.smb.SmbFile;&#13;
import java.util.Date;&#13;
public static void SmbGet() {&#13;
SmbFile f = new SmbFile( "smb://upnpx1/c/aa.txt");&#13;
SmbFileInputStream in = new SmbFileInputStream( f );&#13;
}&#13;
In the generating the android app screen under Integrating Java Libraries i added the&#13;
jar file with smb library.&#13;
&#13;
then i get the next error in compilling the app:&#13;
&#13;
Failure creating the Android application named .&#13;
&#13;
&#13;
Command Line: "C:\Program Files\Java\jdk1.7.0_65\in\javac.exe" -encoding UTF-16LE -nowarn -source 1.5 -target 1.5 -d bin\classes -bootclasspath "C:\Android\sdk\platforms\android-19\android.jar" gen\com\sunsoft\sunerp_android\*.java src\com\sunsoft\sunerp_android\wdgen\*.java -classpath "libs;libs\jcifs-1.3.17.jar"&#13;
&#13;
&#13;
Error returned:&#13;
src\com\sunsoft\sunerp_android\wdgen\GWDCPSET_Smb.java:29: error: unreported exception MalformedURLException; must be caught or declared to be thrown&#13;
SmbFile f = new SmbFile( "smb://upnpx1/c/aa.txt");&#13;
^&#13;
src\com\sunsoft\sunerp_android\wdgen\GWDCPSET_Smb.java:30: error: unreported exception SmbException; must be caught or declared to be thrown&#13;
SmbFileInputStream in = new SmbFileInputStream( f );&#13;
^&#13;
2 errors</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/47735-including-java-smb-library/read.awp</link><title>Including Java SMB library in WM 17</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>maverikstation</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/47735-including-java-smb-library-58883/read.awp</comments><pubDate>28 Jul 2016 09:35:37 Z</pubDate><description>hi,&#13;
&#13;
You are missing a try catch instruction&#13;
&#13;
&#13;
public static void SmbGet() {&#13;
 try{&#13;
  SmbFile f = new SmbFile( "smb://upnp…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/47735-including-java-smb-library-58883/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/47735-including-java-smb-library-58883/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/47735-including-java-smb-library/read.awp">Including Java SMB library in WM 17</source><title>Re: Including Java SMB library in WM 17</title></item></channel></rss>
