Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

using ClassParser for a *.java file?

807591Mar 18 2008 — edited Mar 19 2008
ClassParser (org.apache.bcel.classfile.ClassParser) provides contained information of a java class file. I need the same but for .java file on runtime, Please suggest a solution.

One solution that clicks in my mind is to initiate the object of .java file (ofcourse i've path of *.java on disk) and then use the same ClassParser and reflextion, in this case plz let me know how to initialize its runtime object?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 15 2008
Added on Mar 18 2008
16 comments
306 views