Giter Site home page Giter Site logo

Comments (26)

superblaubeere27 avatar superblaubeere27 commented on July 16, 2024 2

@AskMeCode Here is the latest build of JitPack: https://jitpack.io/com/github/superblaubeere27/obfuscator/obfuscator-core/8fb0fc2e37/obfuscator-core-8fb0fc2e37.jar

from obfuscator.

x4e avatar x4e commented on July 16, 2024

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.

superblaubeere27 avatar superblaubeere27 commented on July 16, 2024

@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.

AskMeCode avatar AskMeCode commented on July 16, 2024

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.

x4e avatar x4e commented on July 16, 2024

@AskMeCode can you post your config?

from obfuscator.

AskMeCode avatar AskMeCode commented on July 16, 2024
  "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.

x4e avatar x4e commented on July 16, 2024

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.

x4e avatar x4e commented on July 16, 2024

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.

AskMeCode avatar AskMeCode commented on July 16, 2024

sorry i have this "\" i don't know why is messing when i past the code

from obfuscator.

AskMeCode avatar AskMeCode commented on July 16, 2024
{
  "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.

x4e avatar x4e commented on July 16, 2024

Can you confirm that the directory is correct? If you go to it in file explorer it should look like this:
Directory

Make sure rt.jar is there.

from obfuscator.

AskMeCode avatar AskMeCode commented on July 16, 2024

yes i have check this i can send you screenshot also if you like

from obfuscator.

x4e avatar x4e commented on July 16, 2024

If you open rt.jar in winrar and go to java/lang can you see Object.class?

Object

And does it also have the same file size?

from obfuscator.

AskMeCode avatar AskMeCode commented on July 16, 2024

But why with the interface is working good
image

from obfuscator.

AskMeCode avatar AskMeCode commented on July 16, 2024

If you open rt.jar in winrar and go to java/lang can you see Object.class?

Object

And does it also have the same file size?

image

from obfuscator.

KingDeng avatar KingDeng commented on July 16, 2024

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.

superblaubeere27 avatar superblaubeere27 commented on July 16, 2024

@KingDeng can you run tree in the folder you specified and send us the results?

from obfuscator.

KingDeng avatar KingDeng commented on July 16, 2024

@superblaubeere27 this is tree results:
tree
image
this is my config:
image
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.

superblaubeere27 avatar superblaubeere27 commented on July 16, 2024

@KingDeng This is pretty confusing, because I can't reproduce the behaviour.

from obfuscator.

superblaubeere27 avatar superblaubeere27 commented on July 16, 2024

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.

superblaubeere27 avatar superblaubeere27 commented on July 16, 2024

I was able to reproduce and fix it. I will commit the changes tomorrow.

from obfuscator.

superblaubeere27 avatar superblaubeere27 commented on July 16, 2024

Fixed in cfd6d9e

from obfuscator.

AskMeCode avatar AskMeCode commented on July 16, 2024

Thanks dear @superblaubeere27 but were is the link to download 1.9.4 ?

from obfuscator.

AskMeCode avatar AskMeCode commented on July 16, 2024

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.

superblaubeere27 avatar superblaubeere27 commented on July 16, 2024

@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.

a8underscore avatar a8underscore commented on July 16, 2024

I get this issue in gui @superblaubeere27 but not in command line

from obfuscator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.