radioegor146/native-obfuscator — reverse-engineered prompt
Reverse engineered prompt
Build me a command line tool that takes a compiled Java jar and turns selected classes or methods into C++ code that can be built as a JNI native library, then outputs a new jar wired up to load that library. I mainly need solid Java 8 support, and it is fine if Java 9 and Android are marked experimental.
I want simple options for choosing what gets converted, including whitelist and blacklist text files, plus optional annotations like Native and NotNative on classes and methods. It should support the common target modes for regular HotSpot, more standard Java runtimes, and Android. Please make the normal flow easy, transpile the jar, generate the C++ and CMake project, let me build the native library, and make it clear where the built dll, so, or dylib should go so the output jar can run.
Please also include buildable source, a working CLI help screen, and a README with setup for JDK 8, CMake, and a C or C++ compiler. Look up current docs online if you need to.
Want more depth? Deep Reverse