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)  編輯  收藏

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


          網站導航:
           
           
          主站蜘蛛池模板: 蒙山县| 镇原县| 德阳市| 阳原县| 莎车县| 永昌县| 屏山县| 沧州市| 邵阳县| 隆德县| 柳河县| 犍为县| 三穗县| 墨江| 东城区| 绥化市| 开封县| 桂东县| 五莲县| 内乡县| 宜春市| 淅川县| 漳平市| 庆安县| 拉萨市| 理塘县| 舞阳县| 佛教| 城口县| 香河县| 吉首市| 宣武区| 大冶市| 合作市| 安吉县| 琼结县| 福海县| 澄城县| 曲沃县| 巩义市| 咸丰县|