Yesterday i learned a little about shell script, and have an idea of writing a script for running a Java jar file on right click. It's simple and easy to understand. Hmmm... a good start.
          ?
          Copy following text into a file named "runJar"(maybe another name you like ^_^), put the file in ~/.gnome2/nautilus-scripts/ directory(~ is your home directory), after that, when you right click on?a jar file, you can run it via [scripts -> runJar]. Hope it will be usefull for java guys.
          ?
          #!/bin/bash
          #
          # Nautilus script -> execute a jar
          #
          # Owner : Andy Luo
          #?? ?? andyluo197(AT)gmail.com
          #??????http://www.aygfsteel.com/andyluo
          #
          # Licence : GNU GPL
          #
          # Copyright (C) Andyluo
          #
          # Ver. 0.1-1 Date: 10/31/2005
          # Execute a jar file.
          #
          # Ver: 0.1? Date: 10/31/2005
          # Initial release
          #
          # Dependence : JRE
          #
          for arg
          do
          $(java -jar "$arg")
          done


          版權所有 羅明
          posted on 2005-11-01 17:19 羅明 閱讀(688) 評論(0)  編輯  收藏 所屬分類: Operating System
           
          主站蜘蛛池模板: 金华市| 花垣县| 安吉县| 潮安县| 枣庄市| 海原县| 肇庆市| 和静县| 长汀县| 彭州市| 阜新| 临汾市| 湛江市| 古蔺县| 阿克陶县| 炉霍县| 富顺县| 高唐县| 南召县| 衡阳县| 营山县| 京山县| 中江县| 新野县| 库伦旗| 新闻| 曲水县| 潍坊市| 游戏| 社旗县| 甘南县| 洛扎县| 满洲里市| 玉门市| 芜湖县| 工布江达县| 湖南省| 富源县| 贡嘎县| 阿勒泰市| 宝应县|