Using javap.exe?

There's a source file Disassemble.java, the codes is following,
package test;
interface IA {
  public void print(String str);
class IAImpl implements IA {
  public IAImpl() {
    System.out.println("class A");
  public void print(String str) {
    System.out.println(str);
public class Disassemble {
  public static void main(String[] args) {
    IA a = new IAImpl();
    a.print("class Disassemble");
}Run command javap -c test.Disassemble, the output is
Compiled from "Disassemble.java"
public class test.Disassemble extends java.lang.Object{
public test.Disassemble();
  Code:
   0:  aload_0
   1:  invokespecial  #8; //Method java/lang/Object."<init>":()V
   4:  return
public static void main(java.lang.String[]);
  Code:
   0:  new  #16; //class test/IAImpl
   3:  dup
   4:  invokespecial  #18; //Method test/IAImpl."<init>":()V
   7:  astore_1
   8:  aload_1
   9:  ldc  #19; //String class Disassemble
   11:  invokeinterface  #21,  2; //InterfaceMethod test/IA.print:(Ljava/lang/String;)V
   16:  return
}What's mean of aload_0, astore_1, dup, invokespecial, ldc, and so on?
How can I read the statements?
a cup of Java, cheers!
Sha Jiang

You must buy, or download, the Java Virtual Machine Specification.
http://java.sun.com/docs/books/vmspec/index.html

Similar Messages

  • Error when running a script using upsshell.exe

    I have a simple custom script which is
    Sub Test1()
    Set fso=  CreateObject("Scripting.filesystemobject")
    Set ts = fso.CreateTextFile("D:\DATA\****\Outbox\Templates\Test.txt")
    ts.writeline "hi"
    End sub
    When I am running it manually in workbench, the script runs fine but when I try to run it using upsshell.exe(command provided below)
    D:\Oracle\MIDDLE~1\EPMSYS~1\products\FINANC~2\SHARED~1\upsShell.exe CustomScriptEx=****~admin~****~~****~D:\DATA\test\Outbox\Logs~Test1~1033~0
    i get the following error
      ERROR:
        Code............ 438
        Description..... [Script failure caused error]: Object doesn't support this property or method
        Procedure....... modupsShell.ExecuteCustomScriptEx
        Component....... upsShell
        Version......... 1112
        Process ID...... 292496
        Thread.......... 290292
      IDENTIFICATION:
        User............ admin
        Domain..........
        Computer Name... *******
        App Name........ ****
      PROCEDURE STEPS:
        1-Split Arguments
        2-Create Load balancer=*******
        3-Authenticate
        4-Get Next App Server
        5-Open App Server=*******
        6-Execute the script=Test1
        7-Step was not reached, a previous step failed
    Any ideas on the error?

    Hello Verdulken,
    I have a few additional questions:
    Does your application function correctly when running the LabVIEW operator interface you have created as a VI in the LabVIEW development environment (i.e. does this problem only occur when the LabVIEW operator interface is run as an executable)?
    What is the error that you are receiving?
    Regarding the VI that you open programmatically, do you open it in a visible manner (i.e. use the Show front panel when called option from VI Properties)?If so, do you also close this VI after it finishes (i.e. use the Close if originally closed option from VI Properties)?
    Does the error occur on the step that calls this very same VI again later in the sequence?
    Does your application function correctly if you use the development adapter for all of your calls?
    Thank you in advance for this information,
    Matt G.
    National Instruments
    Applications Engineering

  • Copying an app from one server to another using HfmCopyApplication.exe

    Hi,
    I am trying to copy an HFM application from Production Instance to DR Instance using HfmCopyApplication.exe.
    I have added the Hyperion product folder of DR to the network of production so that I can select the Destination database connection file while running HfmCopyApplication.exe.
    While running the HfmCopyApplication.exe as I select the MS_SQL_SERVER_hfm.udl for the destination and click Next I get an error.
    The SQL Server database for DR instance is located in a different server and therefore it is not being able to connect it seems.
    The error that I am getting says : "Failed to connect to the destination database using the UDL provided!"
    "SQL Error : [DBNETLIB][ConnectionOpen(Connect()).]SQL Server doesnot exist or access denied."
    Please suggest how to resolve this issue.
    Thanks,
    Suchismita

    It seems UDL cannot connect to the target database.
    You can do the following check:
    1. Ping DR database server from Prod App Server. If ping is ok, it means the network between Prod and DR is ok.
    2. Check DR database is started.

  • How to use javap with jar files ?

    how to use javap with jar files ?
    thanks

    As long as the jar is on the class path, your gold. So,
    javap -classpath myjar.jar mypackage.MyClass
    Chuck

  • How to solve "Error: Invalid Embed directive in stylesheet - can't resolve source" while building using mxmlc.exe on command prompt

    Hi,
    Currently, I am developing a powershell script for Flex build automation.
    I found some problem and have been trying to search any references and tried any ways to fix it but It did not work.
    I am using compc.exe for compiling the libraries and it works fine.
    I compiled css files into swf files using mxmlc.exe and it works fine.
    However, I have a problem while building my main application (mxml file).
    It complains about embedded resources.
    I run this command, it works fine:
    "C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0\bin\mxmlc.exe" "C:\{somePath}\FlashClient\src\styleLang.css" -output "C:\{somePath}\FlashClient_deploy\styleLang.swf"
    However, when I tried to run these command on cmd for testing:
    "C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0\bin\mxmlc.exe" "C:\{somePath}\FlashClient\src\FlashClient.mxml" -load-config "C:\{somePath}\FlashClient\src\dump_config_temp.xml" -output "C:\{somePath}\FlashClient_deploy\flashclient_test.swf"
    I got a lot of this error message:
    this is my folder structure:
      FlashClient
      |
      |---assets
      |---src
          |
          |---FlashClient.mxml
          |---FlashClient.as
          |---FlashClientStyleLoopup.css
          |---styleLang
    Already tried to add / at the beginning of the relative paths but It did not work.
    Also tried to compile one of the image to a swc file and include it on the dump_config, but also did not work. something similar with Tech Diary: Flex : Solution to Error: unable to resolve '/assets/icons/icon.png' for transcoding using Embed tag
    Does anyone know how flex builder resolve the relative path to make the embedded resources work? or how to fix this?
    I've been trying to work on it for days but haven't had any luck.
    Will be really appreciate it if someone could help me with this.
    Many Thanks.

    Hi,
    make sure you are using 32 bit Java JDK. Check that your systems variables CLASSPATH, JAVA_HOME are pointing to correct 32 bit Java JDK folder (e.g. CLASSPATH=C:\Program Files (x86)\Java\jdk1.8.0_25 and JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_25). Also make sure you have 32 bit Java JDK's "bin" folder in your system's variable PATH.

  • Issue with building solution file using devenv.exe

    Hi,
    I am facing an issue while building my solution file (developed in Visual Studio 2010) using devenv.exe from command line. The error is as below.
    C:\Code\trunnk\common\Controller\Controller.vcxproj : error  : The expression "[System.IO.Path]::Combine(C:\Code\trunk\common\Controller\, "C:\Code\trunk\out/Release/x64"\Controller.exe)" cannot be evaluated. Illegal characters in
    path.  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets
    Could you please help me in understanding the above error and fixing it.

    Thanks for all the information. Currently i've tried to use both modules (TextCodepageConversionBean and XMLAnonymizerBean) in my Sender File Adapter, but for now without any result...
    To describe the situation: i am using flatfiles which i am fetched from the file system (NFS) by the Sender File Adapter. To translate the characters to the XML strucutre, the File Content Conversion protocol is been used.
    The content conversion defines the structure base on the first two characters on each row in the flat file. This worked fine till one of our suppliers is delivering BOM characters like "EF BB BF" in the beginning of the file.The content conversion is not able to recognize my header characters in this situation, which will normally start with "01".
    Any suggestions?

  • Java.io.File give incorrect chinese filenam when using javaw.exe

    I am running Chinese Win2000 Pro (SP2) with jre1.3.1 installed. If I use javaw.exe to run my application, java.io.File does not give the correct filename for chinese filename when I use it to run through a directory, though all English filenames show correctly.
    When the same program is run by java.exe instead of javaw.exe, the program runs with no problem and all chinese name are obtained successfully from java.io.File. Does anyone know the reason behind this ?
    I need to use javaw.exe since I am invoking Java from VC++. I don't want a black command prompt window to pop up behind my java application. Please help.

    Hi,
    I am sorry for not replying to ur query. Infact I am facing my own problem and after reading your problem I thought you could help me out in it because you are already successful in invoking java from VC++.
    My problem is that I want to invoke java class from VC++ in such a way that I want to capture the stdout of java class that I invoke from VC++ and use it in VC++. Let me explain first thing first. I am not able to invoke java class from withing vc++. I have looked at JNI help on SUN site but it is giving me lots of compilation error when I include JNI.h in my VC++ program. If you could help me out in this problem, it would be great.
    Thanks in advance.
    Regards
    Rakesh

  • "java.lang.UnsatisfiedLinkError" happen when I use java.exe in command line

    When I use Eclipse 3.01 to run the program it has any problem.But If I use the command line "java -classpath D:\Java_prj\Java\NativeMethod\out com.bruce.nativemethod.HelloNative",a error message will appear below:
    java.lang.UnsatisfiedLinkError: no ./out/com/bruce/nativemethod/ in java.library.path
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1403)
         at java.lang.Runtime.loadLibrary0(Runtime.java:788)
         at java.lang.System.loadLibrary(System.java:832)
         at com.bruce.nativemethod.HelloNative.<clinit>(HelloNative.java:21)My HelloNative.dll and HelloNative.class has all been putted in D:\Java_prj\Java\NativeMethod\out\com\bruce\nativemethod.
    My all source code is here:
    //HelloNative.java
    package com.bruce.nativemethod;
    import java.util.*;
    public class HelloNative{
         public static native void greeting();
         //Load the library
         static {
              System.loadLibrary("./out/com/bruce/nativemethod/HelloNative");
              //System.loadLibrary("HelloNative");
         public static void main(String args[]) {
              HelloNative.greeting();
    //HelloNative.c
    #include "HelloNative.h"
    #include <stdio.h>
    JNIEXPORT void JNICALL Java_com_bruce_nativemethod_HelloNative_greeting(JNIEnv* env,
        jclass cl)
        printf("Hello world!\n");
    //HelloNative.h
    //Generated by javah.exe
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class HelloNative */
    #ifndef _Included_HelloNative
    #define _Included_HelloNative
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class:     HelloNative
    * Method:    greeting
    * Signature: ()V
    JNIEXPORT void JNICALL Java_HelloNative_greeting
      (JNIEnv *, jclass);
    #ifdef __cplusplus
    #endif
    #endifI thinked the code is not problem.But why I can't not run it use java.exe tool in command line?

    Thanks everybody! My problem has been solved.The path "./out/com/bruce/nativemethod/HelloNative" is right because it can run in Eclipse 3.01.I don't agree use the absolute path.If do so,it may not use in another machine. The problem is when I use the "java -classpath D:\Java_prj\Java\NativeMethod com.bruce.nativemethod.HelloNative" in the command line windows,I have putted it the C:\ directory to excute.laterly,I putted the command in the D:\Java_prj\Java\NativeMethod,the result "Hello world!" is appear.

  • How to auto login to facebook using "chrome.exe or default browser" .

    how to auto login to facebook using "chrome.exe or default browser" .

    Please see the Facebook API for information on automating Facebook.  If you have a specific VB question, please create a new post which includes detail about your application and the specific problem you
    are having.  There is not enough information here to make this a VB question we can assist with.
    Moving to off-topic.
    Reed Kimble - "When you do things right, people won't be sure you've done anything at all"

  • Error occured when using javap (Java Class File Disassembler)

    Hi,
    I have tried to use Java Class File Disassembler by using javap and i'm getting the error shown below,
    C:\> javap abc.class
    ERROR: Could not find abc.class
    abc.class present in C:\ drive.
    Please let me know how to solve the problem
    Thanks in Advance
    Soundar

    Hi,
    Thanks for your information, it works fine. Please let me know is there any option to display the method and variable implemation in abc.class.
    I have tried javap abc it displays the method name only.
    Thanks in advance,
    Soundar

  • How to use runtime.exe to activate the native file coping commands

    How to use runtime.exe to activate the native file coping commands.(It might include using process(), and such.. but how?

    Why would you want to do this? It's harder than copying the file in Java (by reading the file and writing it to a new file) and you'll need to write new code each time you want to port your code to a new OS.

  • Debigging Webservice calls using sniffer.exe

    I found following article about monitoring Webservice calls from CF using sniccer.exe
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19352
    When I follower directions how to initiate sniffer I got following errors:
    ERROR: transport error 202: bind failed: address already in use
    ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
    JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../share/back/degub/Init.c:690]
    FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
    I could not find any references to errors I am getting when I googled any of them.

    Hi,
    Try adding the "-Xrs" argument in the "Server Settings > Java and JVM" in your CF Administrator. After restarting your CF Server, try invoking the sniffer again.
    HTH

  • When I try to read a PDF file, the window opens and then disappears after a second or two. This began after the last Adobe update. I tried accepting the Adobe terms using Eula.exe but that disn't solve the problem. What do I do?

    I can no longer read PDF files. The window opens and then disappears after a second or two. This began after the last Adobe update. I tried accepting the Adobe terms using Eula.exe but that disn't solve the problem. What do I do?

    Can you open Adobe Reader by itself?  If so, try disabling Protected Mode [Edit | Preferences | Security (Enhanced)].

  • When trying to open .xps file, I told Firefox to AUTOMATICALLY open all .xps files using xpsviewer.exe & now it opens MANY tabs once I double click on .xps file! How do I stop this?

    When trying to open an .xps file, I told Firefox to AUTOMATICALLY open all .xps files in the future using xpsviewer.exe & now it opens MANY, MANY tabs FAST and continually once I double click on .xps file! How do I stop this? How do I UNselect the AUTOMATIC feature? I do not see where to do this. Also, How DO I open a .xps file successfully in Firefox once this first problem is solved?

    See:
    *https://support.mozilla.com/kb/Firefox+keeps+opening+many+tabs+or+windows

  • How to use ConvertWord.exe in LC Designer?

    I download the setup files (trial version) & installation is successful. And using ConvertWord.exe for converting my sample word doc into pdf format file. However, the generated PDF is not getting opened, as Adobe Reader says "it is either not a supported file type or because the file has been damaged ....". Following is the command executed in the command prompt:
    C:\Program Files\Adobe\Adobe LiveCycle Designer ES4>ConvertWord.exe in="C:\test\RESUME.doc" out="C:\test\resume.pdf" error="C:\test\error.log" log="C:\test\log.log"
    I even reviewed the error & log file, generated from above command. But didn't found any error details in the log files. Please suggest on where the issue is expected.

    This is the Adobe Reader forum; you better ask in http://forums.adobe.com/community/livecycle/livecycle_modules_and_development_tools/livecy cle_designer_es

Maybe you are looking for