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.

[1778 byte] By [schooltiger@walla.coma] at [2007-10-3 8:56:44]
# 1
You need to get a system specific library name. So you should callSystem.mapLibraryNamebefore calling loadlibrary.e.g.String name = System.mapLibraryName("HtmlSnapshotJava");Runtime.getRuntime().loadLibrary(name);
jim.marshalla at 2007-7-15 4:07:02 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2

Thank u for ur reply

I try that but it gives error as

- java -

java.lang.UnsatisfiedLinkError: no HtmlSnapshotJava.dll 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 HtmlSnapshot.<clinit>(HtmlSnapshot.java:22)

Exception in thread "main"

Please give Suggestion to overcome this problem.

schooltiger@walla.coma at 2007-7-15 4:07:02 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
java.lang.UnsatisfiedLinkError: no HtmlSnapshotJava.dll in java.library.pathjava.lang.UnsatisfiedLinkError: no HtmlSnapshotJava in java.library.paththis is the error i am getting
S_a_shankara at 2007-7-15 4:07:02 > top of Java-index,Java HotSpot Virtual Machine,Specifications...