Comments (26)
@AskMeCode Here is the latest build of JitPack: https://jitpack.io/com/github/superblaubeere27/obfuscator/obfuscator-core/8fb0fc2e37/obfuscator-core-8fb0fc2e37.jar
from obfuscator.
Can you post the config contents? I'm guessing that you have not included
C:\\Program Files\\Java\\jre1.8.0_211\\lib
in the classpath (libraries section of config).
from obfuscator.
@AskMeCode It is how @cookiedragon234, you foget to add the JRE Runtime libraries. You are using MacOSX, so the JDK is somewhere else. If you don't know how to find it: Here is the solution on StackOverflow https://stackoverflow.com/questions/18144660/what-is-path-of-jdk-on-mac.
You just have to add the <JDK>/lib
Folder. You can check if it's the right folder by checking if rt.jar
is in it. In the case you can't find it just answere, we will help you :D
from obfuscator.
Thank you for your answer but as i told you with interface-gui is working without any problem i have already add this C:\Program Files\Java\jre1.8.0_201\lib
also exist in the config file
from obfuscator.
@AskMeCode can you post your config?
from obfuscator.
"input": "C:\\Users\\test\\Desktop\\file\\abc_ori.jar",
"output": "C:\\Users\\test\\Desktop\\file\\Temp\\abc.jar",
"script": "function isRemappingEnabledForClass(node) {\n return false;\n}\nfunction isObfuscatorEnabledForClass(node) {\n return true;\n}",
"libraries": [
"C:\\Program Files\\Java\\jre1.8.0_201\\lib"
],
from obfuscator.
Can you post the entire config in a format as specified here https://help.github.com/en/articles/creating-and-highlighting-code-blocks#fenced-code-blocks (``` on each side of the text)
from obfuscator.
Ok, the issue is that file paths must have the directory delimiters ("\") escaped (making them "\\").
This is your current config:
{
"input": "C:\Users\said\Desktop\dex2jar-2.0\abc_ori.jar",
"output": "C:\Users\said\Desktop\dex2jar-2.0\Temp\abc.jar",
"script": "function isRemappingEnabledForClass(node) {\n return false;\n}\nfunction isObfuscatorEnabledForClass(node) {\n return true;\n}",
"libraries": [
"C:\Program Files\Java\jre1.8.0_201\lib"
],
"Crasher": {
"Enabled": false
},
"InvokeDynamic": {
"Enabled": false
},
"HWIDPRotection": {
"Enabled": false,
"HWID": "17BC92BE25B05F9D583AEDA89ED4906F"
},
"Optimizer": {
"Enabled": false,
"Replace String.equals()": false,
"Replace String.equalsIgnoreCase()": false,
"Optimize static string calls": false
},
"LineNumberRemover": {
"Enabled": false,
"Rename local variables": false,
"Remove Line Numbers": true,
"Remove Debug Names": true,
"Add Local Variables": true,
"New SourceFile Name": ""
},
"StringEncryption": {
"Enabled": false,
"HideStrings": false,
"AES": false
},
"NumberObfuscation": {
"Enabled": true,
"Extract to Array": true,
"Obfuscate Zero": true,
"Shift": false,
"And": false,
"Multiple Instructions": true
},
"ReferenceProxy": {
"Enabled": false
},
"ShuffleMembers": {
"Enabled": true
},
"InnerClassRemover": {
"Enabled": true,
"Remap": false,
"Remove Metadata": true
},
"NameObfuscation": {
"Enabled": true
},
"Packager": {
"Enabled": false,
"Use MainClass from the JAR manifest": true,
"Main class": "org.example.Main"
},
"FlowObfuscator": {
"Enabled": true,
"Mangle Comparisons": true,
"Replace GOTO": true,
"Replace If": true,
"Bad POP": true,
"Bad Concat": true,
"Mangle Switches": false,
"Mangle Return": false,
"Mangle Local Variables": false
},
"HideMembers": {
"Enabled": false
},
"Inlining": {
"Enabled": false
}
}
so you need to change it to:
{
"input": "C:\\Users\\said\\Desktop\\dex2jar-2.0\\abc_ori.jar",
"output": "C:\\Users\\said\\Desktop\\dex2jar-2.0\\Temp\\abc.jar",
"script": "function isRemappingEnabledForClass(node) {\n return false;\n}\nfunction isObfuscatorEnabledForClass(node) {\n return true;\n}",
"libraries": [
"C:\\Program Files\\Java\\jre1.8.0_201\\lib"
],
"Crasher": {
"Enabled": false
},
"InvokeDynamic": {
"Enabled": false
},
"HWIDPRotection": {
"Enabled": false,
"HWID": "17BC92BE25B05F9D583AEDA89ED4906F"
},
"Optimizer": {
"Enabled": false,
"Replace String.equals()": false,
"Replace String.equalsIgnoreCase()": false,
"Optimize static string calls": false
},
"LineNumberRemover": {
"Enabled": false,
"Rename local variables": false,
"Remove Line Numbers": true,
"Remove Debug Names": true,
"Add Local Variables": true,
"New SourceFile Name": ""
},
"StringEncryption": {
"Enabled": false,
"HideStrings": false,
"AES": false
},
"NumberObfuscation": {
"Enabled": true,
"Extract to Array": true,
"Obfuscate Zero": true,
"Shift": false,
"And": false,
"Multiple Instructions": true
},
"ReferenceProxy": {
"Enabled": false
},
"ShuffleMembers": {
"Enabled": true
},
"InnerClassRemover": {
"Enabled": true,
"Remap": false,
"Remove Metadata": true
},
"NameObfuscation": {
"Enabled": true
},
"Packager": {
"Enabled": false,
"Use MainClass from the JAR manifest": true,
"Main class": "org.example.Main"
},
"FlowObfuscator": {
"Enabled": true,
"Mangle Comparisons": true,
"Replace GOTO": true,
"Replace If": true,
"Bad POP": true,
"Bad Concat": true,
"Mangle Switches": false,
"Mangle Return": false,
"Mangle Local Variables": false
},
"HideMembers": {
"Enabled": false
},
"Inlining": {
"Enabled": false
}
}
from obfuscator.
sorry i have this "\" i don't know why is messing when i past the code
from obfuscator.
{
"input": "C:\\Users\\test\\Desktop\\dfile\\abc_ori.jar",
"output": "C:\\Users\\test\\Desktop\\dfile\\Temp\\abc.jar",
"script": "function isRemappingEnabledForClass(node) {\n return false;\n}\nfunction isObfuscatorEnabledForClass(node) {\n return true;\n}",
"libraries": [
"C:\\Program Files\\Java\\jre1.8.0_201\\lib"
],
"Crasher": {
"Enabled": false
},
"InvokeDynamic": {
"Enabled": false
},
"HWIDPRotection": {
"Enabled": false,
"HWID": "17BC92BE25B05F9D583AEDA89ED4906F"
},
"Optimizer": {
"Enabled": false,
"Replace String.equals()": false,
"Replace String.equalsIgnoreCase()": false,
"Optimize static string calls": false
},
"LineNumberRemover": {
"Enabled": false,
"Rename local variables": false,
"Remove Line Numbers": true,
"Remove Debug Names": true,
"Add Local Variables": true,
"New SourceFile Name": ""
},
"StringEncryption": {
"Enabled": false,
"HideStrings": false,
"AES": false
},
"NumberObfuscation": {
"Enabled": true,
"Extract to Array": true,
"Obfuscate Zero": true,
"Shift": false,
"And": false,
"Multiple Instructions": true
},
"ReferenceProxy": {
"Enabled": false
},
"ShuffleMembers": {
"Enabled": true
},
"InnerClassRemover": {
"Enabled": true,
"Remap": false,
"Remove Metadata": true
},
"NameObfuscation": {
"Enabled": true
},
"Packager": {
"Enabled": false,
"Use MainClass from the JAR manifest": true,
"Main class": "org.example.Main"
},
"FlowObfuscator": {
"Enabled": true,
"Mangle Comparisons": true,
"Replace GOTO": true,
"Replace If": true,
"Bad POP": true,
"Bad Concat": true,
"Mangle Switches": false,
"Mangle Return": false,
"Mangle Local Variables": false
},
"HideMembers": {
"Enabled": false
},
"Inlining": {
"Enabled": false
}
}
from obfuscator.
Can you confirm that the directory is correct? If you go to it in file explorer it should look like this:
Make sure rt.jar is there.
from obfuscator.
yes i have check this i can send you screenshot also if you like
from obfuscator.
If you open rt.jar in winrar and go to java/lang can you see Object.class?
And does it also have the same file size?
from obfuscator.
But why with the interface is working good
from obfuscator.
If you open rt.jar in winrar and go to java/lang can you see Object.class?
And does it also have the same file size?
from obfuscator.
Is this issue fixed?I have the same error, I'm sure jre library path is correct, but always missing java/lang/Object
from obfuscator.
@KingDeng can you run tree
in the folder you specified and send us the results?
from obfuscator.
@superblaubeere27 this is tree results:
this is my config:
I found some strange things, I have installed two jdks on company's pc,one 1.7,other 1.8, then obfuscator cmd and gui con't run; but I only installed a jdk on my private pc, the gui can run, cmd con't run.
from obfuscator.
@KingDeng This is pretty confusing, because I can't reproduce the behaviour.
from obfuscator.
I have to withdraw my statement from earlier, I faced this issue, when I tried to make a gradle plugin for the obfuscator. I will find the error and fix it.
from obfuscator.
I was able to reproduce and fix it. I will commit the changes tomorrow.
from obfuscator.
Fixed in cfd6d9e
from obfuscator.
Thanks dear @superblaubeere27 but were is the link to download 1.9.4 ?
from obfuscator.
dear @superblaubeere27 can you help to add the function load config for the version 1.71 ? because this is the alone version work great for me without any crash in my app and it is fast
from obfuscator.
@AskMeCode In CLI? No. This is a newer feature. In GUI yes. This is fully supported in 1.7+. If there is a bug please report it so we can fix it :D
from obfuscator.
I get this issue in gui @superblaubeere27 but not in command line
from obfuscator.
Related Issues (20)
- Improve UI - Modernize look and feel HOT 2
- java.iofilenotfoundexeption: could not open output file
- my gui wont load HOT 2
- gui brokey HOT 2
- java.lang.IllegalStateException: Failed to compile Script HOT 1
- Minecraft Exception in "Client Thread" HOT 1
- Log4j library obfuscation error
- Running obfuscated jar throws java.lang.ClassNotFoundException
- java/lang/Object not found HOT 3
- JDA bot obfuscation error
- Please update the link to the discord server.
- SUPPORT FOR .APK HOT 1
- Error While Running Application on MacOS
- InvalidPluginException: Cannot find main class `path.to.MainClass` when Packager is enabled
- Unable to open nested jar file 'BOOT-INF'
- Obfuscation Error, NoSuchMethodException: Integer.intValue(java.lang.Integer)
- Wrong JObfImpl Instance is configured when using command line
- java.lang.OutOfMemoryError: Java heap space HOT 1
- GUI mode won't open (OpenJDK 8)
- obfuscator.jar doesn't exists HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obfuscator.