Skip to content
Advertisement

Tag: javap

How to load a class from module(.jmod) file at runtime?

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

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.

Advertisement