I want to load classes from a module (.jmod) file at runtime into the application memory. I know that we can easily load classes from a (.jar) file using 🙂 The total code snippet can be found at this-repo in src omega.deassembler.JarLoader class But the problem is URLClassLoader is unable to read the modules(.jmod). So is there any other internal
Tag: javap
grep method appears in class file but not in its human dump
I’m grepping for a method getNumBytes in some class file A.class: When I dump its content with javap I can’t see my method: Here is a complete minimal example: Answer UPDATE I’m on Windows, and it runs fine. I believe Thomas Kläger is correct that this is a shell issue: Its probably because of the $Companion in the class name.
How do I print the class structures in a jar file using the javap tool?
I want to list the methods of the class files in the jar using the javap tool. How do I do it so that it lists the methods and members of all the class files in the jar. Right now I am able to do it for just one class at a time. I am expecting something like if I