obfuscator icon indicating copy to clipboard operation
obfuscator copied to clipboard

Unable to complete name confusion

Open chirstwy opened this issue 4 years ago • 16 comments

When I select the name obfuscation function, the following exception output: me.superblaubeere27.jobf.utils.MissingClassException: java/lang/Object is missing in the classPath. How to solve this problem?

chirstwy avatar Apr 29 '20 03:04 chirstwy

Read the readme

x4e avatar Apr 29 '20 06:04 x4e

the readme doesn't answer this tho.

allbombson avatar Apr 29 '20 19:04 allbombson

You need to add the rt to your classpath

x4e avatar Apr 29 '20 20:04 x4e

oh i thought class path was my code eg pw.allbombson.helloworld

allbombson avatar Apr 29 '20 20:04 allbombson

what is the formatting for --cp can u give me an example?

allbombson avatar Apr 29 '20 20:04 allbombson

Check the ReadMe, there is an example config with the rt added to the classpath

x4e avatar Apr 29 '20 20:04 x4e

What if the used java version is >= 9 and does not have the rt anymore?

freddie-95 avatar Apr 29 '20 20:04 freddie-95

I still get it even after adding "D:\Minecraft-Hacks-2020\jdk-1.8.0\jre\lib"

allbombson avatar Apr 29 '20 20:04 allbombson

Installed offical 64bit java and used "C:\Program Files\Java\jre1.8.0_251\lib" and still get error

allbombson avatar Apr 29 '20 20:04 allbombson

What if the used java version is >= 9 and does not have the rt anymore?

J >= 9 still have rt it’s just got a different name

Installed offical 64bit java and used "C:\Program Files\Java\jre1.8.0_251\lib" and still get error

Use the full path to rt.jar rather than the directory

x4e avatar Apr 29 '20 21:04 x4e

i made it the full path to rt, still get the error

allbombson avatar Apr 29 '20 23:04 allbombson

Make sure that the .jar you are adding contains java/lang/Object.class

x4e avatar Apr 29 '20 23:04 x4e

it does

allbombson avatar Apr 30 '20 00:04 allbombson

I actually got the same issue with Java 13.0.1.

jobf.utils.MissingClassException: java/lang/Object (referenced in blabla) is missing in the classPath

I added the full path to the jmod (rt) C:\Program Files\Java\jdk-13.0.1\jmods\java.base.jmod

freddie-95 avatar Apr 30 '20 08:04 freddie-95

Read the readme

Thank you very much! This issue has been resolved!

chirstwy avatar Apr 30 '20 16:04 chirstwy

Make sure that the .jar you are adding contains java/lang/Object.class

After adding rt.jar, the previous exception did not occur again. However, if you add too many dependent jar packages, it will cause OutOfMemory error java.lang.OutOfMemoryError: Java heap space

chirstwy avatar May 02 '20 03:05 chirstwy