I must be doing something stupid, because this seems like such a easy operation. For some reason, I just cannot get this command to work for me. I’ve installed JDK, and I go into the
/bin
folder. I type:
./javap -classpath /home/Matt/workspace/VariablesTestProject/src/ -s VariablesTest.Variable
My actual filepath for the class is
/home/Matt/workspace/VariablesTestProject/src/VariablesTest/Variable.java
The error I get back is:
ERROR:Could not find VariablesTest.Variable
A command like this works however:
./javap -s java.lang.String
These are not the only commands I’ve tried. I’ve literally tried every variation I can think of, and none of them work. My javac and java commands both work fine.
Any suggestions?
Javap works against the
.classbytecode. So point the classpath at theVariablesTestProject/outor whatever.