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 羅明 閱讀(692) 評論(0)  編輯  收藏 所屬分類: Operating System
           
          主站蜘蛛池模板: 平和县| 攀枝花市| 马边| 贵溪市| 无为县| 申扎县| 镇平县| 玉门市| 将乐县| 禹城市| 静宁县| 泰州市| 集贤县| 潍坊市| 安顺市| 师宗县| 安宁市| 舞阳县| 襄垣县| 梅河口市| 东山县| 关岭| 湘潭市| 甘南县| 武隆县| 宿松县| 琼结县| 明溪县| 吴堡县| 鄂托克前旗| 宜春市| 离岛区| 舒城县| 岐山县| 壶关县| 建德市| 安丘市| 宝丰县| 深水埗区| 五原县| 南京市|