This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

java class file

 
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Those who dance are thought mad by those who hear not the music. This tiny ad plays the bagpipes:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic