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: 9001
posted
0
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
posted
0
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
posted
0
Could anybody help me with this please? Thanks in advance. Jose.
marilyn murphy
Ranch Hand
Joined: Aug 28, 2001
Posts: 83
posted
0
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: 9001
posted
0
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