JAWIN PACKAGE! HOPE U WORK!

xiaoxiao2021-03-06  108

I am trying to make something new in my project ... I found some resources called: ICTCLAS (Institute of Computing Technology, Chinese Lexical Analysis System) so I am going to integrated into our KM system, adding DOCUMENT RELEVANCY feature In fact,. ICTCLAS Provides A AS DLL, SO I Need to Use Java Jni To Use The DLL ... Then i Found Jawin on Google ~~~ -------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------ OK, VERY SIMPLE CODE: / * * Hellodll.java - * * this file is part of the Jawin Project:. http://jawinproject.sourceforge.net/ * * Please consult the LICENSE file in the project root directory, * or at the project site before using this software * // * $ Id: HelloDll.java , v 1.27, arosii_moa express $ * / package demos; import org.jawin.funcptr; import org.jawin.returnflags; / ** * demo That Uses the win32 messageboxw API-Method. * * @version $ revision: 1.2 $ * @Author stuart Halloway, http://www.relevancellc.com/halloway/weblog/ / public class hellodll {public sta Tic void main (string [] args) {try {funcptr msgbox = new funcptr ("user32.dll", "messageboxw"); msgbox.invoke (0, "Hello from A DLL", "from jawin", 0, ReturnFlags .Fail_on_false;} catch (exception e) {E.PrintStackTrace ();}}} -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------ For the first time, it's not work and the the the console said: java.lang.unsatisfiedlinkerror: no jawin in java.library.path at java.lang .ClassLoader.loadLibrary (ClassLoader.java:1491) at java.lang.Runtime.loadLibrary0 (Runtime.java:788) at java.lang.System.loadLibrary (System.java:834) at org.jawin.Bootstrap. (Bootstrap.java: 33) at Org.jawin.funcptr.

转载请注明原文地址:https://www.9cbs.com/read-98793.html

New Post(0)