aspose file tools*
The moose likes Beginning Java and the fly likes javap file question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "javap file question" Watch "javap file question" New topic
Author

javap file question

Jose Manuel
Greenhorn

Joined: Feb 14, 2003
Posts: 5
Hi,
After applied:
jar xf Serialio.jar
I was able to see that it had classes files. My question is:
1. Is it possible to get the source code of this classes with javap application? I have tried to do it:
javap SerialConfig.class
but the message was:
"Error: Binary file 'Serial Port' contains Serialio.SerialPort"
Could anybody help me please?
Thanks in advance.
Jose.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9046
    
  10
The command should be
javap SerialConfig
not
javap SerialConfig.class


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Jose Manuel
Greenhorn

Joined: Feb 14, 2003
Posts: 5
With "javap SerialConfig" the result has been the same:
Error:Binary file 'SerialPort' contains Serialio.SerialPort
Jose
Jose Manuel
Greenhorn

Joined: Feb 14, 2003
Posts: 5
Could anybody help me with this please?
Thanks in advance.
Jose.
marilyn murphy
Ranch Hand

Joined: Aug 28, 2001
Posts: 84
I ran into the same problem when trying to use javap on a class in the JDK source code.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9046
    
  10
Make sure you set your classpath to the beginning of the package hierarchy and specify the full package name.
Ex.
C:\java\myProject>javap -classpath ../ myProject.myClass
or
C:\java>javap -classpath . myProject.myClass
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javap file question