您的位置:首页 > 编程语言 > C语言/C++

jad error while loading shared libraries libstdc++-libc6.2-2.so.3

2011-06-23 15:57 344 查看
JAD Java Decompiler is a tool that use for decompiling a .class file into a java source file. I had tried this tool one year ago on Windows environment (Decompile a Java Class File) and I feel is very useful whenever I have the class files but I need to analyze the codes from the java source files.

Recently, I did a personal research on how to make it work on Ubuntu and I just figured out that there is such plugin available in IntelliJ IDEA as well. The JAD plugin doesn’t work for me from the Available Plugins in Intellij which I can download via File > Settings. I’m not sure what’s the reason and probably I missed out some settings. Whenever I open a .class file, it will ask for the path of the jad executable file. I assumed it should be worked after I installed the plugin but it requires me to point to the executable file from the jad plugin that I downloaded from another page (http://sourceforge.net/projects/ideajad/).

If the jad executable file cannot be found, there will be a dialog box asking for the path. Another method to set the path is via File > Settings > IntelliJad Project.

When I had set the path for the jad executable file and tried to open a .class file, I got the following error:-

Executing Jad: '/opt/idea/8.1/lib/ideajad/bin/linux/jad -s java -radix10 -lradix10 -l64 -pv3 -pc _cls -pf _fld -pl _lcl -pm _mth -pp _prm -pe _ex  -p /tmp/ij1258071358360/BarChart.class'


...
Result is empty.  Re-executing Jad: '/opt/idea/8.1/lib/ideajad/bin/linux/jad -s java -radix10 -lradix10 -l64 -pv3 -pc _cls -pf _fld -pl _lcl -pm _mth -pp _prm -pe _ex  -p /tmp/ij1258071358360/BarChart.class'
...
...
...
...
/opt/idea/8.1/lib/ideajad/bin/linux/jad: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory


Note: I tried with the command: sudo apt-get install libstdc++2.10-glibc2.2 but it doesn’t work for me.

Solution

1. Download the package fromhttp://packages.ubuntu.com/dapper/i386/libstdc++2.10-glibc2.2/download
2. sudo dpkg -i libstdc++2.10-glibc2.2_2.95.4-24_i386.deb(执行到这一步就解决了)

3. If you don’t have the following items in the package, please install:-

sudo apt-get install libexpat1

sudo apt-get install libtiff4

4. sudo ln -s /usr/lib/libexpat.so.1 /usr/lib/libexpat.so.0
5. sudo ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐