It is currently Mon Oct 19, 2026 3:07 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Opening jar files in Fedora
PostPosted: Tue Aug 21, 2012 3:08 pm  (#1) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16203
Is there a App in the repository or yum install that will do this?
I have a few Java jar files i would like to open.

The files do not seem to open with Java.Or maybe i need an updated Java version?

Thanks.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Opening jar files in Fedora
PostPosted: Tue Aug 21, 2012 3:50 pm  (#2) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2619
same as windoze

open a terminal
navigate to the directory where the jar file is

use the command

java -jar filename.jar

if that is not working, then a straight
java
or
java -version

in a terminal will give info


Top
 Post subject: Re: Opening jar files in Fedora
PostPosted: Tue Aug 21, 2012 3:59 pm  (#3) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5241
Location: Gimpville
Rod, you have two options to run Java in Fedora. You can install OpenJDK (& icedtea) which is probably fine for most uses or you can install Oracle Java.

http://www.mjmwired.net/resources/mjm-f ... .html#java

I tend to avoid Java because of the high security risk with the package. Their track record on keeping security holes plugged isn't exactly what I'd consider stellar.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Opening jar files in Fedora
PostPosted: Tue Aug 21, 2012 4:03 pm  (#4) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16203
Thanks guys. :)


Top
 Post subject: Re: Opening jar files in Fedora
PostPosted: Tue Aug 21, 2012 4:11 pm  (#5) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2619
A bit more

Assuming you have java installed, cant see why not

In win you might have a <something>.exe launcher

the linux equivalent might be a bash script <something>.sh

the contents might look along the lines of (example for imagej

#!bin/bash
java -Xmx512m -jar /home/user_name/ImageJ/ij.jar

and this will allocate extra memory etc.

a couple of ways you can run a bash file
sh filename.sh
or if you make it executable use 'dot-slash'
./filename.sh


Top
 Post subject: Re: Opening jar files in Fedora
PostPosted: Wed Aug 22, 2012 8:44 am  (#6) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16203
Thanks Rich.


Top
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group