Please try to solve this
Iam trying to retrieve the webpage snapshot Here is my code
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.awt.peer.*;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.File;
import java.text.DecimalFormat;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.Properties;
import sun.awt.*;
public class HtmlSnapshotEx
{
static
{
Runtime.getRuntime().loadLibrary("HtmlSnapshotJava");
}
public native void SnapUrl(String strURL,String strFile, String nCode, int nTimeOut, int nWidth, int nHeight, int nTiffEncoding, int nDither);
public static void main( String[] argv )
{
String code = "xxxxxxxxxxxx";
int interval = 15000;
Integer height, width;
String url, imageName, path;
HtmlSnapshotEx snap = new HtmlSnapshotEx();
height= new Integer("1024");
width= new Integer("0");
url= "www.namics.com";
imageName = "a.png";
path = "C:/pf2";
snap.SnapUrl(url, path + "/" + imageName, code, interval, height.intValue(), width.intValue(), 0, 0);
}
}
This code produces This Error At Run Time:
--
java.lang.UnsatisfiedLinkError: no HtmlSnapshotJava in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.Runtime.loadLibrary(Runtime.java:776)
at HtmlSnapshotEx.<clinit>(HtmlSnapshotEx.java:23)
Exception in thread "main"
Please try to solve & post reply soon.

