資源簡介
htlibrary.rar

代碼片段和文件信息
/*
?*?htLibrary:?海天圖書館管理系統
?*?Copyright?(C)?2005?Zhangqiwen
?*?
?*?tabSize=8:?indentSize=4:?noTabs=false
?*?
?*?This?program?is?free?software;?you?can?redistribute?it?and/or
?*?modify?it?under?the?terms?of?the?GNU?General?Public?License
?*?as?published?by?the?Free?Software?Foundation;?either?version?2
?*?of?the?License?or?any?later?version.
?*?This?program?is?distributed?in?the?hope?that?it?will?be?useful
?*?but?WITHOUT?ANY?WARRANTY;?without?even?the?implied?warranty?of
?*?MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.??See?the
?*?GNU?General?Public?License?for?more?details.
?*
?*?You?should?have?received?a?copy?of?the?GNU?General?Public?License
?*?along?with?this?program;?if?not?write?to?the?Free?Software
?*?Foundation?Inc.?59?Temple?Place?-?Suite?330?Boston?MA??02111-1307?USA.
?*/
/**
?*?This?is?the?main?entry?point?for?the?htLibrary?application.
?*?@author?wenwen
?*/
package?net.sfte.htlibrary;
import?java.awt.frame;
import?java.io.FileInputStream;
import?java.io.IOException;
import?java.util.Properties;
import?javax.swing.Jframe;
import?javax.swing.JOptionPane;
import?javax.swing.UIManager;
import?net.sfte.htlibrary.ui.FlashWindow;
import?net.sfte.htlibrary.ui.LoginDialog;
import?net.sfte.htlibrary.ui.Mainframe;
import?net.sfte.htlibrary.util.HtLibraryAuthorInfo;
import?net.sfte.htlibrary.util.SingleApplicationLock;
/**
?*?The?main?class?of?the?htLibrary?management?system.
?*?
?*?@author?wenwen
?*/
public?class?HtLibrary?{
public?static?void?main(String[]?args)?{
//?check?HtLibrary?MIS?is?active.
String?lockFile?=?“.lck“;
SingleApplicationLock?appLock?=?new?SingleApplicationLock(lockFile);
if?(appLock.isAppActive())?{
//?HtLibrary?system?is?active
JOptionPane.showMessageDialog((frame)?null?
HtLibraryAuthorInfo.getLibraryFullName()?
+?“已經運行?同時只允許啟動一個!“?“系統錯誤“?
JOptionPane.ERROR_MESSAGE);
System.exit(1);
}
//?check?for?java?1.5?or?later.
String?javaVersion?=?System.getProperty(“java.version“);
if?(javaVersion.compareTo(“1.5“)?0)?{
System.err.println(“You?are?running?java?Version:?“?+?javaVersion
+?“.“);
System.err.println(“htLibrary?requires?java?1.5?or?laters.“);
System.err.println(“You?need?download?a?new?one?from?“
+?“[java.sun.com]“);
System.exit(1);
}
//?Test?database?connection.
Properties?prop?=?new?Properties();
try?{
FileInputStream?in?=?new?FileInputStream(“database.properties“);
prop.load(in);
in.close();
}?catch?(IOException?e)?{
System.out.println(“數據庫配置文件丟失!“);
System.out.println(“重建配置文件...“);
SetupDB.createDBConfigFile();
System.out.println(“請重新啟動本管理系統!“);
System.exit(1);
}
String?s?=?prop.getProperty(“jdbc.ok“);
if?(!s.equals(“true“))?{
boolean?success?=?SetupDB.setupDB();
if?(!success)?{
System.out.println(“數據庫安裝失敗!?請重新啟動本系統!“);
System.out.println(“聯系zhangqiwen1234@163.com“);
System.exit(1);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????341??2007-01-18?20:45??htlibrary\.classpath
?????文件????????385??2007-01-18?20:42??htlibrary\.project
?????文件????????223??2005-12-11?19:23??htlibrary\databa
?????文件????????347??2005-12-11?19:24??htlibrary\databa
?????文件????????187??2005-12-11?19:17??htlibrary\databa
?????文件????????110??2005-12-11?19:19??htlibrary\databa
?????文件????????347??2005-12-11?19:28??htlibrary\databa
?????文件?????????16??2007-04-05?23:11??htlibrary\databa
?????文件?????????54??2007-04-05?23:10??htlibrary\databa
?????文件????????436??2007-04-05?23:10??htlibrary\databa
?????文件???????6140??2007-04-05?23:10??htlibrary\databa
?????文件????????187??2007-01-17?22:29??htlibrary\databa
?????文件???????1306??2007-01-16?22:23??htlibrary\Help
?????文件???????1007??2007-04-16?11:57??htlibrary\htlibrary.iml
?????文件????????343??2007-01-18?18:55??htlibrary\HtLibraryAuthorInfo.properties
?????文件??????24513??2006-01-09?18:56??htlibrary\images\about.png
?????文件??????24687??2006-01-09?19:25??htlibrary\images\admin.png
?????文件??????21888??2006-01-09?19:26??htlibrary\images\backbook.png
?????文件??????21479??2006-01-09?19:26??htlibrary\images\borrowbook.png
?????文件??????22509??2006-01-09?19:27??htlibrary\images\cancel.png
?????文件??????23627??2006-01-09?19:27??htlibrary\images\clear.png
?????文件??????21902??2006-01-09?19:27??htlibrary\images\deletereader.png
?????文件??????23525??2006-01-09?19:27??htlibrary\images\exit.png
?????文件??????22922??2006-01-09?19:28??htlibrary\images\hangup.png
?????文件?????408548??2007-01-18?18:41??htlibrary\images\htMM.png
?????文件??????68375??2005-11-19?15:38??htlibrary\images\library.jpg
?????文件??????21357??2006-01-09?19:28??htlibrary\images\library.png
?????文件??????24685??2006-01-09?19:29??htlibrary\images\login.png
?????文件??????22187??2006-01-09?19:29??htlibrary\images\lostbook.png
?????文件??????21842??2006-01-09?19:32??htlibrary\images\modifybook.png
............此處省略284個文件信息
- 上一篇:OK2.exe
- 下一篇:CommTest.zip
評論
共有 條評論