资源简介
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
相关资源
- CommTest.zip
- OK2.exe
- vs2005-camshift.rar
- V3.4(源码).e
- 4532.rar
- AUTOSAR_SWS_CANNetworkManagementAUTOSARCAN总线
- 21987909FTP.rar
- 第11章益智游戏——推箱子.rar
- SINGLEYS2.rar
- 1987ASaltpilestabilityamathematicalmodel.pdf
- Clock.rar100619
- BusHound_v6.0.1正式版(串_并_IDE_SATA_US
- englishpde.pdf
- jjcohuidalang_10024782.zip
- 局域网即时通讯软件.rar
- 同步专家网吧版破解.rar
- 99273910opengl-3d-car.zip
- 文艺青年搜索引擎V2.zip
- Km_System.rar
- Modscan32.zip
- 华为杯第十五届中国研究生数学建模
- SmaliInjector_Src_自己写的smali注入工具
- _电子万年历DS12C887温度18B20LCD12864显示
- ye776t.rar
- Saber_H-2012.12安装说明和破解.zip
- jixinyuan2007_5314826.zip
- Virtuoso版图设计基础教程.rar
- myeclise-2017-CI8破解文件-new.zip
- 最优化理论与算法答案.rar
- Djangobook2.0中文版.pdf
评论
共有 条评论