一直用Eclipse写Wiki,没有太多用来学习其他的工具,今天下午适逢每周五的例行技术交流时间,也是制定这一制度以来的第一次技术交流,一个东北小伙讲了一下MyEclipse+Struts+Hibernate的基本使用方法,感觉确实应该好好多学习一下了。
现在我主要用Eclipse编写一个小软件openJDiary,遇到的一个技术问题是,想取得jar包所在的路径,当然,如果jar包是在当前工作目录,直接用System.getProperty("user.dir")就可以了。但如果不在jar包所在的目录调用,就不管用了,谷歌了一下,也没找到合适的办法,所以我自己想了个办法获取jar包所在的路径,仅供大家参考:
File tmpf = new File(System.getProperty("java.class.path"));
tmpf = new File(tmpf.getCanonicalPath());
String Root = tmpf.getParent();
字符串Root即是获取的jar包所在的路径了。
4 条评论:
coach outlet online
kate spade uk
coach outlet online
jordan pas cher
ferragamo shoes
nike store uk
cheap snapbacks
juicy couture outlet
fitflops shoes
true religion jeans outlet
michael kors canada
nike air force 1
christian louboutin outlet
burberry sunglasses on sale
true religion canada
ray ban sunglasses
nike tn pas cher
hollister shirts
michael kors factory outlet
swarovski crystal
christian louboutin online
true religion outlet
true religion outlet uk
asics
nike air huarache
louis vuitton outlet
christian louboutin shoes
mulberry outlet
hollister clothing store
ralph lauren uk
fitflops sale clearance
ray ban sunglasses
ferragamo shoes
links of london
ray ban sunglasses
20160625caihuali
20160922qiujie
hermes bags
polo ralph lauren outlet online
louis vuitton outlet online
nike free flyknit
ugg boots clearance
jordan retro
cheap jordan shoes
burberry outlet online
canada goose outlet
hugo boss suits
christian louboutin uk
louis vuitton outlet
ugg boots
coach handbags
ralph lauren outlet
michael kors outlet
ugg boots
ugg outlet
canada goose
rolex watches
201612.15wengdongdong
true religion outlet
coach outlet store online clearances
coach outlet
tods shoes
polo ralph lauren outlet
fred perry
san francisco giants jerseys
mulberry handbags
ralph lauren sale clearance
pandora charms
20170315huazhen
发表评论