[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] [Fwd: GLPK for Java in windows 7]

From: glpk xypron
Subject: Re: [Help-glpk] [Fwd: GLPK for Java in windows 7]
Date: Sun, 12 Aug 2012 17:06:27 +0200

Hello Daniel,

to join the GLPK help list proceed as described on page

== DLLs ==

The following error occurs if the path to the DLLs is wrong:
The dynamic link library for GLPK for Java could not be loaded.

The DLLs are not needed for compilation (javac) but for execution (java).

Both glpk_4_47.dll and glpk_4_47_java.dll are needed for execution.
Only the path to glpk_4_47_java.dll can be indicated by
-Djava.library.path. Hence I suggest you use the PATH environment
variable to indicate the path to the DLLs.

In Eclipse you can use the "VM arguments" of the launch configuration
properties to specify -Djava.library.path. See appendix.

It is important that the DLLs match the bitness (32bit or 64bit) of
the Java runtime used.

== Classpath ==

The error java.lang.UnsatisfiedLinkError indicates that the classpath is

In the Eclipse project properties add glpk-java.jar to the "Java Build Path".
See appendix.

Best regards


> -------- Forwarded Message --------
> Subject: GLPK for Java in windows 7
> Date: Tue, 7 Aug 2012 00:09:30 +0200
> Hi,
> I want to put an email with my problem in gnu forum but i don't know how
> can I do it. Sorry for send yoy a direct email.
> In Windows 7 with Eclipse and using GLPK for Java I obtain the follow
> message:
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> I put the library .jar and I put the .dll in the directory of the
> project but I don't get it run ok. In windows XP i get it OK but it's
> impossible in windows 7. I use javac -Dlibrary.path ... but the error
> appears...
> So, what's happen? I don't know. can you help me?
> thanks a lot!

Attachment: dll.png
Description: PNG image

Attachment: classpath.png
Description: PNG image

reply via email to

[Prev in Thread] Current Thread [Next in Thread]