How do I run Jar files on linux
843798Mar 11 2004 — edited Mar 15 2004Java2 version is j2re-1.4.2_03
Distro RedHat Linux 9.0
/etc/profile.d/java.sh
export PATH=$PATH:/usr/java/j2re1.4.2_03/bin
which java
/usr/java/j2re1.4.2_03/bin
rpm -qa|grep -i java
gcc-java-3.2.2-5
rpm -qa|grep -i j2re
j2re-1_4_2_03-fcs
Tool Box => Preferences => Control Center => File Types and Programs
Description: JAR Archive
MIME Type: application/x-jar
Category: Packages
Filename Extention: jar
Program to Run: java
I think this is configured correctly. Since which java returns /usr/java/j2re1.4.2_03/bin.
Program to run does not retain cl arguments
When I try to run a jar it will not load and run.
When I issue java -jar <filename>.jar - <filename> would be the actual file name - at the command line I get the following:
Failed to load Main-Class manifest attribute
What I am doing wrong.
Any help would be appreciated.
KJ