FedoraForum.org - Fedora Support Forums and Community
Results 1 to 9 of 9
  1. #1
    shiwankaswe Guest

    Arrow How to run .jar files in fedora

    i am biginer in fedora and also for java swing application development

    i want to run my developed .jar application in fedora

    how to do it

    please help me

  2. #2
    Join Date
    Sep 2006
    Location
    Connellsville, PA, USA
    Posts
    11,306
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Command:
    java -jar /PATH/TO/JAR/FILE

    V

  3. #3
    shiwankaswe Guest
    bash: java: command not found
    it generates this error

    i successfully installd java
    netbeans is working well

    but can not run .jar file

  4. #4
    shiwankaswe Guest
    Command:
    java -jar /PATH/TO/JAR/FILE

    bash: java: command not found
    it generates this error

  5. #5
    Join Date
    Apr 2005
    Location
    Finland
    Posts
    5,073
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your Java environment isn't installed correctly. Are you using Sun Java or Fedora OpenJDK? How did you install it?

  6. #6
    Join Date
    Aug 2005
    Location
    On the road. What day is it again?
    Posts
    255
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I happen to use a java app ( ipscan-linux-3.0-alpha1.jar ) that i just have sitting on the desktop and run it a different way.

    Right click on the application icon and highlight "open with" , if you see "java" as one of the selections, click it and see if the app opens. If the application fails to open, or if Java is missing you will need to verify Java is installed properly.

    AFTER you verify that you have Java installed properly - you may try running the java app this way:
    * right click on the application icon
    * in the "permissions" tab select the box besides "is executable"
    You may then need to set the file association for .jar to java ( mine was initially set to ark ). I am running KDE, so to set file association in KDE...
    * open Control Center in KDE menu
    * expand "KDE Components" and select "File Associations"
    * type "jar" in the search bar
    * expand "applications" and select x-jar
    At this point I had ark and java listed, but java was not the first preference, so I moved it up to the top of the list. After this double clicking the opens the application.

    This procedure needs Gnome instruction for associating files to apps but I will try to add that later, unless some Gnome person beats me to the punch... ;-)

    buena suerte...
    ...What if there were no hypothetical questions?

  7. #7
    shiwankaswe Guest
    is their any software to run .jar files in fedora without using terminal??

  8. #8
    Join Date
    Nov 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When you will have installed/configured java correctly, you can always create shortcut to your app using “java -jar /path/to/file.jar” as a command

  9. #9
    jim's Avatar
    jim is offline Retired Community Manager & Avid Drinker Of Suds
    Join Date
    Feb 2005
    Location
    Rochester NY
    Age
    52
    Posts
    4,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    run

    which java
    and post the results
    Registered Linux User: #376813
    Western NY
    My linux site
    Smolt Profile

    please remember to say if you problem was solved

    Did you get your id10t award today?

Similar Threads

  1. Replies: 4
    Last Post: 24th October 2009, 04:40 PM
  2. Fedora 10 won't run .bin files?
    By tieegator in forum Using Fedora
    Replies: 2
    Last Post: 17th January 2009, 12:48 AM
  3. Playing AVI files in Fedora 7
    By spaze in forum Using Fedora
    Replies: 5
    Last Post: 14th November 2007, 10:33 AM
  4. Fedora FC5 kernel files
    By Giorabar in forum EOL (End Of Life) Versions
    Replies: 14
    Last Post: 10th August 2006, 10:27 AM
  5. Newbie - Fedora Files
    By dnlawyer in forum Using Fedora
    Replies: 3
    Last Post: 20th January 2006, 02:03 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •