doydwang / barchart-udt

Automatically exported from code.google.com/p/barchart-udt
0 stars 0 forks source link

WinXP 32: UnsatisfiedLinkError #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Doesn't work (for me) on Win XP env

1.
        OS: Windows XP Build 2600 Service Pack 3
        CPU:total 2  

2. pom.xml:
            <artifactId>barchart-udt4</artifactId>
            <version>1.0.1</version>

3. HelloWorld project with

        TypeUDT type = TypeUDT.STREAM;
        SocketUDT socket = new SocketUDT(type);

4. Breaks on "new SocketUDT" with

2011-01-17 15:39:40,531 ERROR [main] com.barchart.udt.SocketUDT#<clinit>  140 -
failed to LOAD native library; terminating
 java.lang.UnsatisfiedLinkError: E:\hello\lib\bin\SocketUDT-windows-x86-32.dll:
 The specified procedure could not be found
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
        at java.lang.Runtime.load0(Runtime.java:770)
        at java.lang.System.load(System.java:1003)
        at com.barchart.udt.LibraryUDT.systemLoad(LibraryUDT.java:262)
        at com.barchart.udt.LibraryUDT.load(LibraryUDT.java:235)
        at com.barchart.udt.SocketUDT.<clinit>(SocketUDT.java:138)
        at com.barchart.udt.nio.SelectorProviderUDT.openSocketChannel(SelectorProviderUDT.java:141)
        at Hello.main(Hello.java:25)

5. The size of dll (the same for 1.0.1, 1.0.2 and 1.0.3):

E:\hello>ls -l lib\bin\SocketUDT-windows-x86-32.dll
-r-x------+ 1 user group 7283055 Jan 14 14:44 
lib\bin\SocketUDT-windows-x86-32.dll

6. The dll path points to the right place (from debugging)

Original issue reported on code.google.com by dshevche...@gmail.com on 17 Jan 2011 at 10:28

GoogleCodeExporter commented 8 years ago
please try again with release 1.0.2;

use artifact:

barchart-udt4-bundle-1.0.2.jar

Original comment by Andrei.Pozolotin on 18 Jan 2011 at 5:27

GoogleCodeExporter commented 8 years ago
verified: invalid

great! all necessary dependencies with gcc dll's are included

Please, correct the title page with the example of pom.xml dependency:
from <version>1.0.2-SNAPSHOT</version>
to   <version>1.0.2</version>
I was confused by SNAPSHOT suffix.

Original comment by dshevche...@gmail.com on 18 Jan 2011 at 6:01

GoogleCodeExporter commented 8 years ago
cool; I am glad it works for you;

sorry abot the confusion; you are expected to figure out RELEASE vs SNAPSHOT by 
yourself :-)

I will include in next release a new demo project which will be in sync with 
current release.

Original comment by Andrei.Pozolotin on 18 Jan 2011 at 3:40