Solved

Looking for javap

Posted on 2004-09-24
9
289 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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 “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

733 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