Solved

Looking for javap

Posted on 2004-09-24
9
281 Views
Last Modified: 2012-05-05
Hi All,
I am looking for a free download program that will that is described as as code completion.
Obviously it may be also described as: would assist me in getting what possible  selections/choices are available as I would type "System."  followed by a period.

Someone suggested that I get javap but any good leads or is there some other
free download program that is available.

Delphi3
0
Comment
Question by:delphi3
  • 4
  • 4
9 Comments
 
LVL 14

Accepted Solution

by:
sudhakar_koundinya earned 50 total points
ID: 12146803
Javap is executable that is bundled with yuor jdk
0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 12146810
for example if u want to find the methods of java.util.Vector


then u should execute like this

javap java.util.Vector
0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 12147105
you can use eclipse IDE to edit your java files. It has a completion feature, but also a lot of other helping tasks.
http://www.eclipse.org
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 4

Author Comment

by:delphi3
ID: 12147237
sudhakar_koundinya,

You are absolutely correct.
I found it in :  

C:\j2sdk1.4.2_05\bin
And my light  IDE is DrJava. For the record DrJava does not have an implemetation for javap  :(  


BUT when I click on it, inside of DrJava it is a 45K of compiled code.
It shows me that code and does nothing. A scan of the complied code shows a nearly first line of  copied:      !This program cannot be run in DOS mode.

If I click on javap.exe, it showes me an DOS page and a quick flash that I cannot get what it reads, and nothing else happens.



ramazanyich,  I suppose that I could use Eclipse but I like what I have.

Where do we go from here?

D3

 
0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 12147323
>>If I click on javap.exe, it showes me an DOS page and a quick flash that I cannot get what it reads, and nothing else happens.

Execute from dos command. Don't click on that
0
 
LVL 4

Author Comment

by:delphi3
ID: 12148764
sudhakar_koundinya,


I know that I should be able to get this correct but.... this error occurs....
Yout instructions show...
Execute from dos command. Don't click on that..

My program is Example.java, that the class files are not with it. Do I need them to be there?

I put the Example.java in the same folder as the javap.exe

set the path
C:\WINNT\system32>set path=$PATH$;C:\j2sdk1.4.2_05\bin


then using as one line
C:\j2sdk1.4.2_05\bin>javap.exe C:\j2sdk1.4.2_05\bin\Example.java
ERROR:Could not find C:\j2sdk1.4.2_05\bin\Example.java

What should happen?

D3

0
 
LVL 4

Author Comment

by:delphi3
ID: 12149414
sudhakar_koundinya,

These successive operations now with DOS
have been successful.

The output from javap is shown below.
Is that really all that I can expect?
If it is, then it is of really no use.
Can you advise further from what is here and what was in the original post above?


C:\WINNT\system32>set path=$PATH$;C:\j2sdk1.4.2_05\bin;

C:\WINNT\system32>cd C:\j2sdk1.4.2_05\bin

C:\j2sdk1.4.2_05\bin>javac Example.java

C:\j2sdk1.4.2_05\bin>java Example

C:\j2sdk1.4.2_05\bin>javap Example
Compiled from "Example.java"
public class Example extends java.lang.Object{
    public Example();
    void addListeners(java.awt.Window);
    public static void main(java.lang.String[]);
}
0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 12149432
Then move for either eclipse or NetBeans free software

http://www.eclipse.org/
http://www.netbeans.org/


Best Regards
Sudhakar
0
 
LVL 4

Author Comment

by:delphi3
ID: 12150197

sudhakar_koundinya


Thanks for your efforts.

D3
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Way to decrease size of apk file 9 86
servlet filter example 37 72
Crystal Reports Licensing Questions 4 34
collection output issue 9 36
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question