Ask Your Question

How to use jar files

asked 2017-10-27 21:54:26 -0500

benajminb gravatar image

I am trying to use a program called stigviewer, which can be found on the disa website: stigviewer is a jar file.

I've installed JRE and cannot figure out how to get the stigviewer program to open. (I'm experienced using the program on a Mac.)

Any help and/or information is greatly appreciated.

edit retag flag offensive close merge delete


java -jar foo.jar

davidva gravatar imagedavidva ( 2017-10-28 03:22:12 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-10-28 07:50:18 -0500

masteroman gravatar image

As davidva briefly explained it is run directly from the command line using specified command. Unfortunately, by doing so I get the error:

Download the STIGViewer:


Extract it:


Run the jar file:

$ java -jar STIGViewer-2.6.jar
Error: Could not find or load main class stigviewer.STIGViewer

By looking at the output jar file I can see that main class in manifest iis as follows:

Main-Class: stigviewer.STIGViewer

so there's where that comes from. Unfortunately I'm not familiar with Java based applications to assist you further so you might have best of luck by contacting developers of this software in order to assist further. Perhaps there are some unsatisfied dependencies.

edit flag offensive delete link more



Apearently, this jar file only works with Oracle java and not OpenJDK

/opt/jre1.8.0_151/bin/java -jar ../STIGViewer-2.6.jar
villykruse gravatar imagevillykruse ( 2017-10-28 08:57:35 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-10-27 21:44:49 -0500

Seen: 1,463 times

Last updated: Oct 28 '17