Hello Yang Zhang,
2008/1/30, Yang Zhang <yan...@gm...>:
> Hi, I can't seem to get jode to find my class file (tried pwd and .).
> Thanks in advance for any help.
>
> $ ls edu/cmu/neuron2/NeuRonNode.class
> edu/cmu/neuron2/NeuRonNode.class
>
> $ java -cp .:jode-1.1.2-pre1.jar jode.decompiler.Main -c `pwd`
> edu.cmu.neuron2.NeuRonNode
> Jode (c) 1998-2001 Jochen Hoenicke <jo...@gn...>
> edu.cmu.neuron2.NeuRonNode
> Failed to decompile edu.cmu.neuron2.NeuRonNode.
> java.lang.NoClassDefFoundError: edu.cmu.neuron2.NeuRonNode
> at jode.bytecode.ClassInfo.loadInfo(ClassInfo.java:631)
This probably is a problem with class version. Sun is incrementing
the version of their class files with each major release. I think
jode-1.1.2-pre1 still checks that the version is in the supported
range (JDK 1.0-1.3). I have removed this check completely, now. I
should probably make a new release, but the current version is a bit
buggy: It shows lots of unnecessary casts. Nonetheless, the class
files it produces should be compilable.
For JDK >= 1.5 there are still problems with try-catch and
synchronized blocks; the algorithm should be mostly rewritten to
handle them. Unfortunately, I do not have so much time I spend on it.
So try the svn version (the trunk uses an ant build script so it
should be easy to compile). You need a subversion client to download
the repository.
Regards,
Jochen
--
Jochen Hoenicke,
Email: hoe...@in... Tel: +49 761 203 8243
|