Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

get byte code

Thread view: 
geirgp@gmail.com - 24 Jul 2006 12:20 GMT
Is there a way to get the byte code from classes that may not be in
classpath, that could be classes created and loaded at runtime by a
script engine, etc.

Thanks

Geir
Thomas Hawtin - 24 Jul 2006 13:48 GMT
> Is there a way to get the byte code from classes that may not be in
> classpath, that could be classes created and loaded at runtime by a
> script engine, etc.

It's available through instrumentation (java.lang.instrument).

Tom Hawtin
Signature

Unemployed English Java programmer
http://jroller.com/page/tackline/

geir - 24 Jul 2006 14:32 GMT
> > Is there a way to get the byte code from classes that may not be in
> > classpath, that could be classes created and loaded at runtime by a
> > script engine, etc.
>
> It's available through instrumentation (java.lang.instrument).

Thanks, that looks good! However I noticed that for this to work a
special comman line argument must be passed, but is there any way
instrumentation could be activated from within the code instead?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.