摘要:解决Eclipse RCP开发中的java.lang.UnsatisfiedLinkError错误
阅读全文
11 2011 档案
摘要:Eclipse调试时,JVM参数的录入,例如:-D 这几天在看Cassandra的源代码,Cassandra是通过org.apache.cassandra.service.CassandraDaemon来启动的。在-D的参数中(storage-config)指定了的Cassandra配置文件storage-conf.xml的路径。系统通过下面的code来获取值:Java代码 configFileName_=System.getProperty("storage-config")+File.separator+"storage-conf.xml"; con
阅读全文
摘要:ExifTool by Phil Harveyhttp://owl.phy.queensu.ca/~phil/exiftool/index.html#related_progExifTool – Enhanced Java Integration for ExifToolhttp://www.thebuzzmedia.com/software/exiftool-enhanced-java-integration-for-exiftool/#sourcehttp://u88.n24.queensu.ca/exiftool/forum/index.php?topic=3527.0Moss: Col
阅读全文
摘要:Java Zip Compression Exampleshttp://www.example-code.com/java/zip.asphttp://hi.baidu.com/csacer/blog/item/329439311531bb02ebc4afb3.html/cmtid/2c6273fa98dc6511a8d311dahttp://www.keygenguru.com/serial/chilkat_zip_v7_0_3.htmlHow to extract Java resources from JAR and zip archiveshttp://www.javaworld.co
阅读全文
摘要:这几天研究了一下SQLite这个嵌入式数据库在多线程环境下的应用,感觉里面的学问还挺多,于是就在此分享一下。先说下初衷吧,实际上我经常看到有人抱怨SQLite不支持多线程。而在iOS开发时,为了不阻塞主线程,数据库访问必须移到子线程中。为了解决这个矛盾,很有必要对此一探究竟。关于这个问题,最权威的解答当然是SQLite官网上的“Is SQLite threadsafe?”这个问答。简单来说,从3.3.1版本开始,它就是线程安全的了。而iOS的SQLite版本没有低于这个版本的:3.4.0 - iPhone OS 2.2.13.6.12 - iPhone OS 3.0 / 3.13.6.22 -
阅读全文
摘要:在RCP中,view是张贴于perspective之上的。传统的方式是直接在perspective的createInitialLayout方法中按照类似如下的方式添加view并设置布局: Java代码 publicvoidcreateInitialLayout(IPageLayoutlayout){ StringeditorArea=layout.getEditorArea(); layout.setEditorAreaVisible(false); layout.addView(SelectedPsrInfoView.ID,IPageLayout.LEFT,IPageLayout.RATIO
阅读全文