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 羅明 閱讀(143) 評論(0)  編輯  收藏

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


          網站導航:
           
           
          主站蜘蛛池模板: 崇州市| 栖霞市| 巫溪县| 西乌珠穆沁旗| 洛川县| 鹤岗市| 封开县| 凯里市| 依安县| 汉川市| 烟台市| 汝州市| 巴东县| 永安市| 怀仁县| 屯留县| 杂多县| 安塞县| 临桂县| 长乐市| 安国市| 伊宁市| 丹江口市| 康平县| 洛南县| 星子县| 江达县| 金溪县| 上饶县| 沧源| 桂阳县| 涞水县| 三明市| 理塘县| 曲松县| 通榆县| 万年县| 颍上县| 嘉鱼县| 黔江区| 晴隆县|