File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

from class to java file

 
AssafM Mizrachi
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

i am loading classes from API jars, and according to these classes ( reflection ) i am using javassist to create new classes files,
write them to the file system using writeFile() method , the thing is i need .java files in order to manually edit these new classes.

does any body know if i can make java file from class file , mabye javassist can also write java file?

any way i have tried Decompiler and it's not working ( out of bound exception), all i need is java files after all , any idea's???

\thank you
 
Greg Charles
Sheriff
Posts: 2984
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What decompiler are you using? It does sound like decompilation is your goal, not run-time byte code manipulation, which is the main function of Javassist. The decompiler I've used in the past is jad, which is still free as far as I know. There also a "jadclipse" plugin to Eclipse.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic