注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

0与1构筑世界,程序员创造时代

软件架构设计 Java编程

 
 
 

日志

 
 

双击运行*.jar文件  

2010-04-05 18:24:09|  分类: Java |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
  文章声明

作者:傲风(aofengblog@163.com)       编写时间:2010年04月05日

网址:http://aofengblog.blog.163.com

作者保留所有权利,转载请保留文章全部内容!


环境

Windows 2003 / Windows Xp
JDK

双击运行Jar

双击运行*.jar文件 - 傲风 - 应用场景:重装系统后,复用之前的JDK和JRE(没有重新运行*.exe/*.msi重装JDK和JRE),*.jar双击不能再自动运行。

1、打开“我的电脑”,选择“工具”菜单下的“文件夹选项(0)...”。
双击运行*.jar文件 - 傲风 -

2、在“文件夹选项”对话框中选择“文件类型”TAB项。
双击运行*.jar文件 - 傲风 -

3、点击“新建”按钮,输入文件扩展名“jar”。
双击运行*.jar文件 - 傲风 -

4、点击“确定”按钮后,可以看到已注册的文件类型中新增了JAR文件类型。
双击运行*.jar文件 - 傲风 -

5、点击“高级”按钮,出现“编辑文件类型”窗口。
双击运行*.jar文件 - 傲风 -

6、点击“新建(N)...”按钮,出现“新操作”窗口。将操作命名为“open”,执行操作的应用程序为“D:\Java\jdk1.6.0_12\jre\bin\javaw.exe -jar %1”。   注:D:\Java\jdk1.6.0_12 为JDK所在目录,根据个人电脑上实际环境设置。
双击运行*.jar文件 - 傲风 -

7、点击“确定”按钮,回到“编辑文件类型”窗口。在操作列表框中有了“open”一项操作。
双击运行*.jar文件 - 傲风 -

8、点击“确定”按钮回到“文件夹选项”窗口, 这时JAR扩展名的详细信息有了变化。
双击运行*.jar文件 - 傲风 -

9、点击“关闭”按钮。这时来双击一个可运行的Jar文件(FileDigest.jar),效果如下:
双击运行*.jar文件 - 傲风 -



<正文结束>
  评论这张
 
阅读(4203)| 评论(4)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--最新日志,群博日志-->
lc07${fn(x.ss="zihaoc62le=blog.163t">/> ame|Dr fc0.pDifaul{if !!b&& one> ame|Dr fc0.pDifaulTiv> #--博主 id="m"> {li> {lis=${vi!!(ame|Dr fc0.n/a>faul{if !!b&&)enderNamediv>
rg07${fn(x.ss="zihaoc6bdc0">${fme,8)|escapm)    &nbs/> ame|Dr fc0.n/a>faul{if !!b&& one> ame|Dr fc0.n/a>faulTiv> #--博主 id="m"> {li> {l {if !!x} < fs0 ="thide"> as x} idd01.p7${fn(x.ight="560" style="overflow:hidden;" src="http://www.lofter.com/mailEntry.do?blogad=1&blog" frameBorder="0"> 9, N

{ h/sp亩(s.m2a_3w#--博主 a" n> ss="f')&&v> ss="ffc03 m2a" targetnkkkkkkknkkkkkkk="httpv> ss="f${y.recommendBnkkkkkkknkkkkkspans_ ex>7}{bwa kr="thif} nnkkkkkkksskkd"_blank" class=ndea rrName}/">
{ s:=" nnkkkkkkknkkkame}/">${f $_spefocus="true" hrefrName}/"> Visi, 152);/v>
s;&none淼脚visi新闻=='iph
     id= nkkkkk {if !!x} f} "tar右边模块结构="thide">

as x} mor bdcdefocus="true" hre"m-3-jst-53> 更多RE)r:pointer;">关nkkkabrv> brv>f} d as wrapone;visilog.png?1"

< kkd as wrap" clas srl as>f} d as wrapame|Pp\> as>f} {if !!x} "tar!&n模块结构="thide">f} kkd as x} cape}f} c as>f} {if !!x} "tar/spa模块结构="thide">f} kd as x} f="h ="dispdc as>f} {if !!x} kkdtar{x.r发起的投票="thide"> kkdlidf} blog.1blog.1“> a[0 ToOp0px;_ ex]}”blog.1blog.1f} {liskkkks氯罩荆翰kkkkkkspanmsbrole!="oun) },hcN沂${c[sbrole]}”blog.1blog.1> {liskkkkblog.1blog.1blog.1blog.1 {/if} mmen2ablog.1blog.1blog.1blog.1-ss="fc0 Tue")}gl1 nas-icn0fix">spansbuclass="eUp'r="thif} > {lis
  • f} .net/VAqByaKAAaBvbCJJIJE9Sg==/df}vtcm80581{if !Lad_ =

    将文誥me|i, 152);/aofengbloggt;<br><div><br&g/"; // 将文誥me|i, 152);/aofengblogg"; //ame)的主页地髡遬a魑猘me)的唯一标识f}vtcm80581Params = <&num=5&dive=3&pfh>0} , 1"; //num为默认显
    .net/VAqByaKAAaBvbCJJIJE9Sg==/span class="n get.80581.|de//a>/2 bdc0601.pnW get.ionbdc net/VAdf} . as>f} kkd as x} stat hank"ablog.163 as>f} kkd as x} r cr hank"ablog.163 as>f} . as>f} d as x} "blmb lcr bh t">c bdf} f} kkd as x} r br bh"ablog.163 as>f} kkd as x} c bc bh lcr"ablog.163 as>f} . as>f} . as>f} . as>f} kkd as x} stwl g lg hank"ablog.163 as>f} kkd as x} stwl t lt"ablog.163 as>f} kkd as x} stwl b lendblog.1. as>f}kkkkkkd as x} cm8r g rg hank"ablog.163 as>f} kkd as x} cm8r t rt"ablog.163 as>f} kkd as x} cm8r b mendblog.1. as>f}kkkk. as>f}kk. as>f}kk. as x} "bl 60"-smende as x} wkg h t">c bde as x} t hndblog.1. as>e as x} r hndblog.1. as>e as x} c hndblog.1. as>e as>. as>f}e as x} "bl 60"-fo af} e as x} wkg hbdf}

    页 idh2>f} e as x} k"le=====ea 2 b=ound-colo/blog.163me,lass8pefocus="true" hrer {/if} yxpi, 152);"54e的照片书 id=" e=====eg.163.com/${ss="1le=- torName) id=" e=====eg.163.com/${ss="1le=- oke cla59_0m2a淼脚r:1px APP id=" e=====f} =";&n> ="RSSs2 bdc0 m)    &nbs/rss/"this.src=l {/if} ss="1le=- < {/if} ass8pewrap$_foot_subnet/b bdcg.163.com/${${fn(x.me,lss="zihaoc9bdc0">f}====e!!x} f}. as>. as>f}====e!--[panisl IE 6]dc as>f} as x} "bltpl60"-ogConprrNa"hwrapame|-, 1-|del1.pp_blanightblog

  • "le=
    r {/if} helpi, 152); ecial/0行*25FTgt;&l.ion.fb13azeunt帮助 id=" e=cg.163.com/${fr7${fn(x.t">c lss=1lss=1-4ndblog.1. g.16af} ea "m-3-jsp="h 扫一扫”

    r {/if} ame|i, 152);/ v20px; :fal= v20px;&&uclag}gl as>f} ====="httpx.l $a "m-3-jsitm="http:r {e} 'hrey.v}//blogrey_ exr="thiie> y.n}gld=" e===== {s="fc07 m2a {s="fc07 {if !!x} e=
    {if !!x} gl as>f}.net/VAqByaKAAaBvbCJJIJE9Sg==/>f} w ow.N = {tm:{'zss=' ss=' mainCommentCounte==='bdc0' bdc0', bdc2' bdc}, n>nnk'bgc0' bgc0', bgc1' bgc1', bgc2' bgc2', bgh0' bgc9' ma n>nnk'ass0' ass3', ass1' ass4', ass2' ass5', ass3' ass6', ass4' ass7', ass5' ass9'}};f} DblarNarvrue" = '04/22/cla8 20:36:50';f} ass="ibloapi = 'm) pi ame|i, 152);/';f} ass="iblomsg = 'm) pi ame|i, 152);/msg/"yo';f} ass="iblo"yo = 'm) pi ame|i, 152);/aofengblogg"yo';f} ass="iblovcd = 'm) pi ame|i, 152);/ / tcha.jpgx?p ntId= class=et=';f} ass="iblomrt = 'm) c 606.ne';f} ass="iblo= = 'm) c 6.ne';f} ass="iblo= cl= ass="iblof ;f} ass="ibloadf = 'm) c 6.ne';f} ass="ibloept = 'm) nav':p se}/"('11111111',2)}f} ,cu f} ,cv f} ,cw f} };f} w ow.UD6= {};f} UD.:fal6= {f} ucla class=f} e=,uclass=":'aofengblog f} e=, ss=":'nbsp f} e=,idefocus="true"iv\358253124f} e=,bas fc:'m) iUclaBme| f} ===,isWumiUcla:tru f} e=,sRampodifyf} };f}c net/VAdf}e===.net/VAqByaKAAaBvbCJJIJE9Sg==/span class="nb1c-0 nbc-0-40 ptcmt ptr/j/pc.js?v=152265197978m2ac net/VAdf}e===.net/VAqByaKAAaBvbCJJIJE9Sg==/span class="nb1c-0 nbc-0-40 ptcmt ptr/j/m/omB/pm.js?v=152265197978m2ac net/VAdf}e=.net/VAq isBlacka="cy =" /javenet/VA2ac net/VAdf}e=.net/VAq/p\>=" /javenet/VA2af} e_ s_nacc=og.16';neteas T> ker();f} e" valuev> Im> (). 6= 'm) /idefos/a="cyse6.ne?s=p&t='+v> Dbla().getrue"();f} c net/VAdf}.net/VA>f}w ow. rue"out(fun (){f} (fun (i,s,o,g,r,a,m){i['Goo srA="cy Dbla();a=s.cwa beEonerro(o) mainm=s.getEonerrosByk\"ss="(o)[0];a.async=1;a. g;m.p ntNive.inclatBehide(a,m)f} })(w ow,docu ,'net/VA', //Visi p sr-a="cy J.divdSet/p"('m) f} n>J. DblaByDWR(ass="iblo"yo,'Mus=" /javenet/VA2span c/v> p> /pDid/pcive/pDittgt;,/VA {if !!xs"> ss="kkkket/3A2s0,/VAes="bil