radioegor146 / native-obfuscator

Java .class to .cpp converter for use with JNI
GNU General Public License v3.0
499 stars 67 forks source link

Unknown obfuscator error #63

Closed micartey closed 9 months ago

micartey commented 1 year ago

The instructions in Basic Usage states:

The jar is written to the output folder, and I would put the binary inside the jar.
(I put the binary x64-linux.so into native0 as I use linux x64)

But that doesn't work... I am greeted with the following exception:

Exception in thread "main" java.lang.UnsatisfiedLinkError: 'void k.a(java.io.File, java.util.function.BiConsumer, java.util.function.Consumer)'
    at k.a(Native Method)
    at me.micartey.test.Main.main(Unknown Source)

I ran the following command:

java -jar obfuscator.jar target.jar out -a
radioegor146 commented 1 year ago

So you put binary to the 'native0/x64-linux.so'?

micartey commented 1 year ago

Correct. I also copied the same binary to native0/amd64-linux.so to make sure

radioegor146 commented 1 year ago

Can you send me obfuscated/unobfuscated jar files (you can DM me at any of https://re146.dev, or email to the github email address)?

micartey commented 1 year ago

I will, but that has to wait for a few weeks until I am back home.

micartey commented 1 year ago

It seems to be an obfuscation error. Using it on a Hello World example works flawlessly :)

radioegor146 commented 1 year ago

Nevertheless, I'll be pleased if you can give obfuscated/unobfuscated jar files, so I can work on it :)

radioegor146 commented 9 months ago

So I'm closing the issue due to inactivity. If you ever encounter this bug, feel free to reopen it.