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


          版權(quán)所有 羅明
          posted on 2005-11-01 17:19 羅明 閱讀(692) 評(píng)論(0)  編輯  收藏 所屬分類: Operating System
           
          主站蜘蛛池模板: 都匀市| 简阳市| 榆中县| 沙湾县| 类乌齐县| 长泰县| 华蓥市| 三原县| 桃园县| 涞源县| 灌云县| 漳平市| 常州市| 庐江县| 宣武区| 保亭| 和田县| 全州县| 曲阜市| 杨浦区| 巴林右旗| 友谊县| 景德镇市| 如东县| 靖远县| 禹州市| 酉阳| 汝城县| 尉犁县| 武鸣县| 凤山市| 宜丰县| 荣昌县| 平湖市| 南部县| 安西县| 昌都县| 庄浪县| 丽江市| 大邑县| 南江县|