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

unable to use compiled jar #265

Open
04041b opened this issue Dec 20, 2023 · 6 comments
Open

unable to use compiled jar #265

04041b opened this issue Dec 20, 2023 · 6 comments

Comments

@04041b
Copy link

04041b commented Dec 20, 2023

When I tried to import and compile my own project, the error "Exception in thread "main" java.lang.UnsatisfiedLinkError: no zt in java.library.path: " occur. When I try to use the way in #59, it errored with

Exception in thread "main" java.lang.UnsatisfiedLinkError: 'int com.zerotier.sockets.ZeroTierNative.zts_init()'
        at com.zerotier.sockets.ZeroTierNative.zts_init(Native Method)
        at com.zerotier.sockets.ZeroTierNative.<clinit>(ZeroTierNative.java:28)
        at com.zerotier.sockets.ZeroTierNode.start(ZeroTierNode.java:32)
@04041b 04041b changed the title unable to use java jar unable to use compiled jar Dec 20, 2023
@04041b
Copy link
Author

04041b commented Dec 29, 2023

solved, https://docs.zerotier.com/sockets not updated

@04041b 04041b closed this as completed Dec 29, 2023
@Jus-Leg
Copy link

Jus-Leg commented Feb 28, 2024

solved, https://docs.zerotier.com/sockets not updated

How we're you able to fix it?

@joseph-henry
Copy link
Contributor

solved, https://docs.zerotier.com/sockets not updated

How we're you able to fix it?

I just tried the instructions in the example folder here: https://github.com/zerotier/libzt/tree/main/examples/java and it worked just fine on Linux. What platform are you on?

@04041b
Copy link
Author

04041b commented Mar 1, 2024

solved, https://docs.zerotier.com/sockets not updated

How we're you able to fix it?

I just tried the instructions in the example folder here: https://github.com/zerotier/libzt/tree/main/examples/java and it worked just fine on Linux. What platform are you on?

Build will fail on windows, but not on mac and linux, check #267

@04041b
Copy link
Author

04041b commented Mar 1, 2024

Try to extract file from the compile jar.

It only work on linux and mac, windows will build fail and not include the file needed to run.

@04041b 04041b reopened this Mar 1, 2024
@04041b
Copy link
Author

04041b commented Mar 25, 2024

solved, https://docs.zerotier.com/sockets not updated

How we're you able to fix it?

I just tried the instructions in the example folder here: https://github.com/zerotier/libzt/tree/main/examples/java and it worked just fine on Linux. What platform are you on?

is there any plan to address issue #267 and this one?

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

3 participants