• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

java class file

 
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can i get to see the opcode equivalent of the bytecodes that have been generated by the java compiler.
When i open a class file i get to see something like this........
���� - n 9 E H R d l m F T U V W X Y Z [ \ ] c

"
"
#
$
%

&

'
(

)

* +
, -
.
8 1
8 6
M 3
M 5
O 4
P 2
Q 0
^ 4
e /
g ?
h 6
i B
k 0 ()Ljava/lang/Object; ()Ljava/lang/String; ()V ()[Ljava/lang/reflect/Method; ,(Ljava/lang/Object Ljava/lang/StringBuffer; %(Ljava/lang/String Ljava/lang/Class; ,(Ljava/lang/String Ljava/lang/StringBuffer; (Ljava/lang/String V ([Ljava/lang/String V <init> Class Name .......... Code
Exceptions I LMyclass; LineNumberTable Ljava/io/PrintStream; Ljava/lang/Class; Ljava/lang/Object; Ljava/lang/String; Lmypack/MyClassLoader1; LocalVariableTable Mehthods in Myclass1 are Myclass
Myclass.java Myclass1 SJ
SourceFile [Ljava/lang/String; [Ljava/lang/reflect/Method; append args forName getDeclaredMethods getName heekoi i java/io/PrintStream java/lang/Class java/lang/ClassLoader java/lang/ClassNotFoundException java/lang/Exception java/lang/Object java/lang/String java/lang/StringBuffer java/lang/System java/lang/reflect/Method loadClass main mc1 mcl1 meth mypack/MyClassLoader1 new instance created ..
newInstance oo out println s this toString vamsi wewr !
i B 8 1 : =
*� * � � >

D

j = _ 7 : 6 � � W� �W� Y� L+ M � Y SY SN� ﷓� Y � , ! , : 6 � #� ﷓� Y � 2 ! � ����, : � ﷓� Y � ! �
> >



( > D J g r ﷓ x � D H � N K } a C v ` @ ( g i K D K b L G H S < x f A ;
J G I 0

are these the mnemonics???
I would like to get the opcodes equivalent of the same.

 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Read the documentation on the javap utility which is included in the SDK. That's what it's there for.
 
reply
    Bookmark Topic Watch Topic
  • New Topic