Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I run these Java examples in eclipse on Windows? #15

Closed
sganzfri opened this issue Feb 24, 2019 · 3 comments
Closed

How can I run these Java examples in eclipse on Windows? #15

sganzfri opened this issue Feb 24, 2019 · 3 comments

Comments

@sganzfri
Copy link

When I run the Java examples in eclipse, I get various compiler issues.
E.g., for Scip scip = new Scip(); in the following example, "Scip cannot be resolved to a type"

The newest 6.0.1 download does not seem to have an "scip.jar" file https://scip.zib.de/download.php?fname=scip-6.0.1.tgz

The earlier 3.2.1 download does have scip.jar: https://scip.zib.de/download.php?fname=scipjni-3.2.1.win.x86_64.msvc.opt.spx.zip

But it may be outdated with the code example

@sganzfri
Copy link
Author

I think I fixed that issue. I don't have any compilation issues now, but this issue when I run the program:

Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\lib\libjscip-0.1.mingw.x86_64.msvc.opt.spx.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at jscip.Linear.main(Linear.java:11)

@sganzfri
Copy link
Author

Ignore last one.

Current issue is:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no jscip in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at jscip.Linear.main(Linear.java:12)

@mueldgog
Copy link
Collaborator

Following your questions on the SCIP mailing list, I think that you didn't execute the commands in the JSCIPOpt directory. If you still don't see the scip.jar then PLEASE let us know what happened during compilation and what you have tried so far.

@mueldgog mueldgog closed this as completed Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants