Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

can we read .class file  RSS feed

 
kotha vijaybabu
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all

i want to read a .class file and make modifications in that file

is it possible
if it is .... how

help me

vijay
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out BCEL, in their own words: give users a convenient possibility to analyze, create, and manipulate (binary) Java class files

 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I like Javassist for this purpose. It lets you create new methods by specifying the Java source code, so you don't necessarily need to understand JVM bytecodes.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!