LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-05-2006, 11:48 PM   #1
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
Virus Hammer


hi there,

i'm trying to get VirusHammer working at the moment and i'm having some problems with it. in the how-to.html file that comes with the zip file this is what it says.

Quote:
VirusHammer Howto
The VirusHammer is a standalone tool to scan for viruses. You can select several directories to scan and will be informed about all viruses found. The selected directories are stored in user preferences, so they are remembered when you restart.
Necessary software
You need an installed Java 2 Runtime Environment, Standard Edition (JRE) . Every JRE >= 1.2 should be fine, but I just tested it with 1.3.1 and 1.4. You can get it from Sun at http://java.sun.com/j2se/ .
Usage
With Linux (read /usr/src/linux/Documentation/java.txt) or Windows you simple start 'PatternFinder.jar' like every other application, e.g. by single- or double-clicking on it. You can also start it from the command line with

java -jar VirusHammer.jar

Getting speed
The current JRE from Sun offers two different VMs: client- and server-vm. The client-vm has shorted startup times, but scans slower; the server-vm has longer startup times, but scans much faster. There are scripts to start VirusHammer using the server-vm (client-vm is default):

* virushammer-server.sh (Linux)
* virushammer-server.bat (Windows)

The VirusHammer.jar has to reside in the same directory as the script. Both scripts start VirusHammer like this

java -server -jar VirusHammer.jar
thats it, when i run any of those commands this is the error message i get.

[root@centos html]# java -jar VirusHammer.jar
Warning: -jar not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: VirusHammer.jar
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 (/var/www/html/java.version=1.4.2)
at __libc_start_main (/lib/tls/libc-2.3.4.so)
at _Jv_RegisterClasses (/var/www/html/java.version=1.4.2)

i have java installed i think ...

[root@centos html]# rpm -qa | grep java
java-1.4.2-gcj-compat-1.4.2.0-27jpp
gcc-java-3.4.4-2
java-1.4.2-gcj-compat-devel-1.4.2.0-27jpp

any ideas as to what i'm doing wrong ...?
 
Old 04-06-2006, 02:21 AM   #2
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 881

Rep: Reputation: 130Reputation: 130
Hello. I used to get a similar error when using the wrong version of java. Try doing "locate bin/java" and trying all of them.

Hope that helps.

--Dane
 
Old 04-06-2006, 04:28 AM   #3
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Original Poster
Rep: Reputation: 30
i tried what you said and this is the output
/usr/sbin/javaconfig
/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre/bin/java
/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/bin/javadoc
/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/bin/java
/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/bin/javah
/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/bin/javac
/usr/bin/javadoc
/usr/bin/java
/usr/bin/javah
/usr/bin/javac

i'm not sure what you mean by use all of them, can you explain that a little more? how do you use a different version of java.
 
Old 04-06-2006, 11:59 AM   #4
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 881

Rep: Reputation: 130Reputation: 130
Try doing this:

Code:
$ /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre/bin/java -jar <filename>

$ /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/bin/java -jar <filename>
Hopefully, one of these will work. Put the path to the correct one in your $PATH. (It should look something like this: PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/bin/")
Be sure that the path to the correct one is listed BEFORE the path to the incorrect one (or just remove the incorrect one).

If neither of these work, chances are that you need to install yet another version, such as jre1.5.0, j2re1.4.2, or even blackdown-jdk-1.4.2.

Hope that helps.

--Dane
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
UDEV, ieee1294 - someone pass me a hammer... mbeattie74 Linux - Hardware 0 07-04-2005 03:37 AM
If I had a hammer.... kersten78 Linux - Wireless Networking 2 08-31-2004 08:54 AM
Boot virus or Anti-Virus? AVG Free Anti-Virus Software problems SparceMatrix Linux - Security 9 08-02-2004 03:35 PM
what the!...where's my hammer....lousy MDK, come back RH all is forgiven MaverickUK Mandriva 0 01-14-2004 04:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:04 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