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 ona 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@hotmail.com
          #http://spaces.msn.com/members/andyluo197
          #
          # 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-02 01:13 羅明 閱讀(142) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
           
          主站蜘蛛池模板: 宁津县| 彝良县| 马山县| 井陉县| 鄯善县| 沂源县| 松溪县| 称多县| 绍兴市| 珠海市| 高雄县| 界首市| 招远市| 靖边县| 台湾省| 德清县| 龙南县| 禹城市| 瑞昌市| 都昌县| 肇源县| 宁陵县| 新安县| 开化县| 峨山| 乐昌市| 利辛县| 繁峙县| 沙雅县| 西峡县| 绥芬河市| 大名县| 韶关市| 阿勒泰市| 栾川县| 赫章县| 综艺| 东辽县| 丰城市| 亳州市| 驻马店市|