Page 2 of 2 FirstFirst 12
Results 21 to 25 of 25
  1. #21
    serjant's Avatar
    serjant is offline Senior Member
    Join Date
    Jun 2008
    Location
    Ukraine,Zaporozhye
    Posts
    487
    Rep Power
    7

    Default

    java.sh
    Java Code:
    #!/bin/sh
    /usr/local/jdk1.6.0_07/jre/bin/java -jar %f-

  2. #22
    Join Date
    Aug 2008
    Posts
    26
    Rep Power
    0

    Default

    Alright i'll try that .Thanks

  3. #23
    serjant's Avatar
    serjant is offline Senior Member
    Join Date
    Jun 2008
    Location
    Ukraine,Zaporozhye
    Posts
    487
    Rep Power
    7

    Default

    Ok,open terminal and type as a root:

    Java Code:
    #cd /home/`whoami`
    #touch java
    #nano java
    then the java file will open in the terminal and paste this code in it and save it:

    Java Code:
    #!/bin/sh
    /usr/local/jdk1.6.0_07/jre/bin/java -jar %f
    after that:
    Java Code:
    #cp -rf java /usr/bin

  4. #24
    gr8way is offline Member
    Join Date
    Jan 2009
    Posts
    1
    Rep Power
    0

    Thumbs up Execution jar file on linux

    re : Thx a lot my dear.... u have solve my issue very easily..thx a lot


    Quote Originally Posted by goodwillwins View Post
    here a way i tried(worked in Fedora 6):



    Step 1 : Right Click the jar file choose Properties->Open with->click
    Add->use a custom command->browse (now searc for the dir
    containing jre(Java Runtime Enviornment) folder ). on my machine
    its in 'usr -> local -> jdk1.6.0_07 -> jre-'(Wherever jre folder is
    located) open the lib folder (in jre only) add choose 'jexec' and
    click open and add it.
    Step 2 : Now it will be seen selected in the Properties window (if not select
    it).

    Step 3: Click the Permission tab in the Properties window and select the
    Check box "Allow Executing this file as Program."

  5. #25
    abayakaran is offline Member
    Join Date
    Jul 2010
    Posts
    1
    Rep Power
    0

    Thumbs up

    Quote Originally Posted by goodwillwins View Post
    here a way i tried(worked in Fedora 6):

    Step 1 : Right Click the jar file choose Properties->Open with->click
    Add->use a custom command->browse (now searc for the dir
    containing jre(Java Runtime Enviornment) folder ). on my machine
    its in 'usr -> local -> jdk1.6.0_07 -> jre-'(Wherever jre folder is
    located) open the lib folder (in jre only) add choose 'jexec' and
    click open and add it.
    Step 2 : Now it will be seen selected in the Properties window (if not select
    it).

    Step 3: Click the Permission tab in the Properties window and select the
    Check box "Allow Executing this file as Program."
    Thank u Very much. .:D... This s what I expected. And it worked.:)

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 7
    Last Post: Today, 04:44 PM
  2. Replies: 21
    Last Post: 08-01-2008, 11:13 AM
  3. NetBeans-style Dockable-windows and toolbar?
    By jimm1 in forum Advanced Java
    Replies: 0
    Last Post: 01-31-2008, 08:41 PM
  4. Mouse Right click option not working in solaris and linux OS
    By dinesh kaushik in forum AWT / Swing
    Replies: 2
    Last Post: 11-21-2007, 04:02 PM
  5. Replies: 2
    Last Post: 08-10-2007, 12:36 AM

Posting Permissions

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