OpenVPN / OpenVPN/openvpn3

Failed buildilng java client: java.lang.UnsatisfiedLinkError: no ovpncli in java.library.path

Open
#36 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.2k
Forks
467
PR merge metrics
No merged PRs in 30d

Description

I've built the java client using 'build-linux' with one error

./build-linux SWIG JAVA CORE /Users/nino/src/ovpn3/core/client/ovpncli.cpp:28:10: fatal error: 'atomic' file not found #include <atomic> ^

When I try to run the java class there is a link error?

$ java -Djava.library.path=. Main XYZ.ovpn Exception in thread "main" java.lang.UnsatisfiedLinkError: no ovpncli in java.library.path

The following relevant files are present in the javacli directory after the build

ovpncli.class ovpncli.i ovpncli.java ovpncliJNI.class ovpncliJNI.java ovpncli_wrap.cxx ovpncli_wrap.h

Where is the actual native library as it doesn't seem to find it?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing ./build-linux in the javacli directory and inspect whether it emits a native ovpncli library alongside the listed Java and SWIG files. Then check the library name and path used by Main with -Djava.library.path=.; done when the build produces the native library and the Java class loads it without UnsatisfiedLinkError.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, java
Domain
build-system, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.