How do I get a JAVA .jar file to work?

foxidrive

Retired Admin
I can see that the main class listed in "META-INF\MANIFEST.MF" doesn't exist but I don't know how to fix it.

This is the error message:

Code:
C:\cdroms>java -jar Synclair-0.92.jar -md5 c:\cdroms\NOCOPY\News\CATS-R-US
Exception in thread "main" java.lang.NoClassDefFoundError: com/worldware/ichabod
/Ichabod
Caused by: java.lang.ClassNotFoundException: com.worldware.ichabod.Ichabod
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: com.worldware.ichabod.Ichabod. Program will exit.
 

misi

Growing Little Guru
How do I get a JAVA .jar file to work?


I want to compare files to delete duplicates from the command line and this JAR file has a finddups feature but I can't get it to do anything useful - there is just an error message.

http://sourceforge.net/projects/synclair/

Do you guys know anything about Java that could help me?:?

Seems .jar is similar to a .zip file.


The jar file format is common for distributing programs and libraries that are written in Java. Jar stands for Java Archive. Your browser may download Java applets in a .jar file or you may get a .jar file that contains a Java application that needs to be run. The file format is also by Mozilla and Firefox as the format for XUL applications, plugins, and skins.
The jar file format is a container and compression file format. Each jar file compresses and contains other files. Jar files are very easy to open. There are many programs that will act as an opener for jar files. In fact, any program that can open zip files can open jar files. The jar format is identical to the zip file format.
Step by step instructions for how to open jar files and see the contents:
Install software that can decompress and extract files from zip files. (Izarc is a highly recommended free extraction and decompression program for Windows. The Open Directory Project's freeware data compression category lists many other programs.)
Rename the .jar file to have a .zip extension (if your download program does not recognize .jar files)
Open the file with your decompression program.
 

foxidrive

Retired Admin
I can see that the main class listed in "META-INF\MANIFEST.MF" doesn't exist but I don't know how to fix it.


The file above lists this main class which is not inside the JAR file.

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.4
Created-By: 1.4.2_02-b03 (Sun Microsystems Inc.)
Main-Class: com.worldware.ichabod.Ichabod


It passes an integrity test ok btw misi.
 

misi

Growing Little Guru
Downloading again and comparing old and new, are they the same or different?
Can't you download it from a different site?
 

foxidrive

Retired Admin
It passes the ZIP integrity test misi.

There is no other source and hasn't been updated for a long while. In the forum there are two posts - from a guy who had the same issue as I do and from another guy who wanted something changed.
 

foxidrive

Retired Admin
I want good solid freeware :satisfied

They aren't command line programs misi, all GUI ones and I have a few free GUI ones already, but thanks.
 
Back
Top