LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-02-2010, 07:11 AM   #1
soni_silver17
LQ Newbie
 
Registered: Jan 2009
Posts: 21

Rep: Reputation: 15
Cobertura-1.9.3 java testing tool error


Dear team,

I want to test my netbeans project, whether it is Vulnerable to any attacks. So I have browsed for testing tools. I found this tool Coberturs-1.9.3. I have downloaded this tool and extracted and tried to run this tool. But I am facing all these problems as mentioned below.

[root@user cobertura-1.9.3]# ls

antLibrary cobertura-instrument.bat COPYING src
build.properties cobertura-instrument.sh COPYRIGHT src-2
build.xml cobertura-merge.bat etc test
ChangeLog cobertura-merge.sh examples
cobertura-check.bat cobertura-report.bat lib
cobertura-check.sh cobertura-report.sh README

[root@boss cobertura-1.9.3]# sh cobertura-instrument.sh

Exception in thread "main" java.lang.NoClassDefFoundError: net.sourceforge.cobertura.instrument.Main
at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
at __gcj_personality_v0 (/root/Desktop/cobertura-1.9.3/java.version=1.4.2)
at __libc_start_main (/lib/tls/libc-2.3.4.so)
at _Jv_RegisterClasses (/root/Desktop/cobertura-1.9.3/java.version=1.4.2)

What might be the problem. Can you please anybody help me with Solution. If you know any netbeans Vulnerability testing tools you can please suggest me. As I am working on Linux machine, I request you to suggest Linux tools.


With Thanks and Regards,
Soni.
 
Old 01-02-2010, 07:37 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Looks like either you're missing /usr/lib/libgcj.so.5.0.0, or something is wrong with the one that's there. Probably either the package libgcj, or the cobertura package is too old. But you can try this:

cd /usr/lib
ls -l libgcj.so*


Look for libgcj.so.5.0.0. If you don't find it, look for any newer libgcj library that isn't a link, and make a link to it, like so:

ln -s libgcj.so.6.1.2 libgcj.so.5.0.0

And see if it works. Otherwise you can update libgcj.
 
Old 01-02-2010, 04:00 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
If you want to do some java stuff, I guess you will
need a genuine sun-java, like ' jdk-1.6.0_17-... '
.. which is required for cobertura-1.9.3 .

A link to a ( RH EL5 ) package .. example ..
http://ftp.scientificlinux.org/linux...7-fcs.i586.rpm

http://ftp.scientificlinux.org/linux/scientific/54/
http://ftp.scientificlinux.org/linux/scientific/
Code:
# /usr/sbin/update-alternatives --config java

There are 2 programs which provide 'java'.

  Selection    Command
-----------------------------------------------
   1           /usr/lib/jvm/jre-1.4.2-gcj/bin/java
*+ 2           /usr/lib/jvm/jre-1.6.0-sun/bin/java

Enter to keep the current selection[+], or type selection number:
 
Old 01-05-2010, 11:14 PM   #4
soni_silver17
LQ Newbie
 
Registered: Jan 2009
Posts: 21

Original Poster
Rep: Reputation: 15
jdk

Thank you for giving reply , according to your suggestion and the Link what you have mentioned in the reply message, i have downloaded jdk 1.6.0_17-fcs.i586.rpm the file and installed in RHEL 4

but after i have searched for updated version of jdk in

# /usr/sbin/update-alternatives --config java

but i am unable to find the latest version only the old version is available


[root@boss ~]# /usr/sbin/update-alternatives --config java

There are 1 programs which provide 'java'.

Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java

Enter to keep the current selection[+], or type selection number:


Can you please help me with other suggestion.....

With Thanks and Regards,
Soni.
 
Old 01-07-2010, 04:21 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Well then, next time you ask questions, please tell which
Linux, you are using. Saves a lot of time.

EL 4 : The java / jdk install behaves different from EL 5
and makes no entries to /etc/alternatives .

EL 4 : 1) cd /usr/bin
2) su
3) rm java
4) ln -s /usr/java/jdk1.6.0_17/jre/bin/java

And then you can try the command : java -version
.. to see that it changed to :
java version "1.6.0_17"
Java(TM) SE Runtime Environment ..
.....
.....

http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
.....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automated testing tool for linux (ubuntu) tuux Linux - Software 3 08-08-2009 11:33 PM
LXer: Linux standards tool adds app testing LXer Syndicated Linux News 0 10-22-2008 03:00 PM
tool for testing HDD saavik Linux - Hardware 3 02-01-2006 07:53 AM
Using knoppix as a testing tool on a laptop. dr_zayus69 Linux - Software 3 03-29-2005 08:29 AM
intallation procedures for Andriod - GUI Testing tool linuxsns Linux - Software 1 03-21-2002 10:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration