[SOLVED] How to get the .class file which bytecode is in
Hello folks! I have a question for you
How could I get the filename of a class? For exemple if I had a class named Foo, how could I get the physical location of that class? The output should be something similar to:
I hope it's sufficiently clear to be understood
Class mypackage.Foo is in:
/home/myname/java/mypackage/Foo.class (if it is in the filesystem)
/home/myname/download/myjar.jar mypackage/Foo.class (if it is in a Jar)
http://www.somedomain.com/classes/mypackage/Foo.class (on the net)
Watermark in java class file
I would like to know how to embed watermark in Java class file and decode that watermark class file to get back the watermark value.
I will be appreciate if any one can provide the source code.
I'hv tried many time to get the bytecode of the class file to embed the watermark value but failed. Should i used the class reader to read the class file but where i must to called the class file and how.
I hope any one can help me immediately because i must to submit it next week.