sleyzerzon / soar

Automatically exported from code.google.com/p/soar
1 stars 0 forks source link

Java: Can't find dependent libraries #84

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. In Eclipse, create a Java class that attempts that uses an Soar Kernel, like 
so:

import sml.Kernel;
public class  MakeKernel{
    public static void main(String[] args) {
        try
        {
          Kernel kernel = Kernel.CreateKernelInNewThread();
        } catch (Exception e) {
          System.out.println("Exception while creating kernel: " + e.getMessage());
          System.exit(1);
        }
    }
}

2. Add the SML jar to the build path, and add the soar-9.3/bin folder as a 
native library for that jar.
3. Run the Java file.
4. Shouldn't be necessary, but I added the lib, bin and include folders into 
the Windows path variable.

What is the expected output? What do you see instead?
I expected no error, but got this:
Native code library failed to load. 
java.lang.UnsatisfiedLinkError: 
C:\Soar-Suite-93\bin\Java_sml_ClientInterface.dll: Can't find dependent 
libraries
Exception in thread "main" java.lang.UnsatisfiedLinkError: 
C:\Soar-Suite-93\bin\Java_sml_ClientInterface.dll: Can't find dependent 
libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at sml.smlJNI.<clinit>(smlJNI.java:15)
    at sml.Kernel.CreateKernelInNewThread(Kernel.java:147)
What version of the product are you using? On what operating system?
Soar-9.3
Windows 7 32-bit
Please provide any additional information below.
All of the java programs inside of the Soar folder work just fine... What's 
wrong with what I'm doing?

Original issue reported on code.google.com by garfield...@gmail.com on 17 Nov 2010 at 3:34

GoogleCodeExporter commented 8 years ago
Java is known to work with 9.3 on windows, take support questions to 
soar-sml-list@lists.sourceforge.net (subscribe: 
https://lists.sourceforge.net/lists/listinfo/soar-sml-list)

I'll post suggestions to that list now.

Original comment by voigtjr@gmail.com on 17 Nov 2010 at 4:15

GoogleCodeExporter commented 8 years ago
http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTi%3DNM7f6A2ZxSNFq
ikW0P39ch8uD4JLJaVWP2qc3%40mail.gmail.com&forum_name=soar-sml-list

Please reply on soar-sml-list

Original comment by voigtjr@gmail.com on 17 Nov 2010 at 4:37