Ask Your Question
1

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: https://iase.disa.mil/stigs/Pages/sti... 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

Comments

java -jar foo.jar

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

1 Answer

Sort by ยป oldest newest most voted
0

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:

wget https://iasecontent.disa.mil/stigs/zip/U_STIGViewer-2.6.zip

Extract it:

unzip U_STIGViewer-2.6.zip

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

Comments

2

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

Stats

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

Seen: 1,463 times

Last updated: Oct 28 '17