我正在尝试从Eclipse中制作可执行的JAR文件(使用MySQL作为数据库)。
如何制作可执行的JAR文件?
我已经制作了一个,但是它显示了一些警告并且无法正常工作。我得到了一个很长的警告列表。以下是警告:
JAR export finished with warnings. See details for additional information.
Exported with compile warnings: AngalTask/src/org/isf/accounting/gui/PatientBillEdit.java
Exported with compile warnings: AngalTask/src/org/isf/accounting/gui/BillBrowser.java
Exported with compile warnings: AngalTask/src/org/isf/admission/gui/AdmissionBrowserOld.java
Exported with compile warnings: AngalTask/src/org/isf/admission/gui/AdmittedPatientBrowser.java
Exported with compile warnings: AngalTask/src/org/isf/admission/gui/AdmissionBrowser.java
Exported with compile warnings: AngalTask/src/org/isf/disease/gui/DiseaseEdit.java
Exported with compile warnings: AngalTask/src/org/isf/disease/gui/DiseaseBrowser.java
Exported with compile warnings: AngalTask/src/org/isf/exa/gui/ExamBrowser.java
Exported with compile warnings: AngalTask/src/org/isf/exa/gui/ExamEdit.java
Exported with compile warnings: AngalTask/src/org/isf/help/gui/AboutWindow.java
Exported with compile warnings: AngalTask/src/org/isf/lab/gui/LabNew.java
Exported with compile warnings: AngalTask/src/org/isf/lab/gui/LabBrowser.java
Exported with compile warnings: AngalTask/src/org/isf/lab/gui/LabEditExtended.java
Exported with compile warnings: AngalTask/src/org/isf/lab/gui/LabPrintFrame.java
Exported with compile warnings: AngalTask/src/org/isf/lab/gui/LabEdit.java
Exported with compile warnings: AngalTask/src/org/isf/lab/manager/Results.java
Exported with compile warnings: AngalTask/src/org/isf/medicals/gui/MedicalBrowser.java
Exported with compile warnings: AngalTask/src/org/isf/medicals/gui/MedicalEdit.java
Exported with compile warnings: AngalTask/src/org/isf/medicalstock/gui/MovStockBrowser.java
Exported with compile warnings: AngalTask/src/org/isf/medicalstock/gui/MovStockInserting.java
Exported with compile warnings: AngalTask/src/org/isf/medicalstockward/gui/WardPharmacy.java
Exported with compile warnings: AngalTask/src/org/isf/medicalstockward/gui/WardPharmacyEdit.java
Exported with compile warnings: AngalTask/src/org/isf/menu/gui/UserEdit.java
Exported with compile warnings: AngalTask/src/org/isf/menu/gui/Menu.java
Exported with compile warnings: AngalTask/src/org/isf/menu/gui/MainMenu.java
Exported with compile warnings: AngalTask/src/org/isf/menu/gui/Login.java
Exported with compile warnings: AngalTask/src/org/isf/menu/gui/UserBrowsing.java
Exported with compile warnings: AngalTask/src/org/isf/menu/gui/SubMenu.java
Exported with compile warnings: AngalTask/src/org/isf/menu/gui/SplashWindow3.java
Exported with compile warnings: AngalTask/src/org/isf/opd/gui/OpdEdit.java
Exported with compile warnings: AngalTask/src/org/isf/opd/gui/OpdBrowser.java
Exported with compile warnings: AngalTask/src/org/isf/opd/gui/OpdEditExtended.java
Exported with compile warnings: AngalTask/src/org/isf/operation/gui/OperationEdit.java
Exported with compile warnings: AngalTask/src/org/isf/operation/gui/OperationBrowser.java
Exported with compile warnings: AngalTask/src/org/isf/patient/gui/PatientInsertExtended.java
Exported with compile warnings: AngalTask/src/org/isf/patvac/gui/PatVacEdit.java
Exported with compile warnings: AngalTask/src/org/isf/patvac/gui/PatVacBrowser.java
Exported with compile warnings: AngalTask/src/org/isf/priceslist/gui/PricesBrowser.java
Exported with compile warnings: AngalTask/src/org/isf/serviceprinting/print/MedicalStockSelection.java
Exported with compile warnings: AngalTask/src/org/isf/serviceprinting/print/MedicalPrintSelection.java
Exported with compile warnings: AngalTask/src/org/isf/stat/reportlauncher/gui/ReportLauncher.java
Exported with compile warnings: AngalTask/src/org/isf/therapy/gui/TherapyEdit.java
Exported with compile warnings: AngalTask/src/org/isf/therapy/gui/TherapyEntryForm.java
Exported with compile warnings: AngalTask/src/org/isf/utils/jobjects/JAgenda.java
Exported with compile warnings: AngalTask/src/org/isf/utils/jobjects/ShadowBorder.java
Exported with compile warnings: AngalTask/src/org/isf/utils/jobjects/FixedFrame.java
Exported with compile warnings: AngalTask/src/org/isf/utils/time/TimeComboBox.java
Exported with compile warnings: AngalTask/src/org/isf/vaccine/gui/VaccineBrowser.java
Exported with compile warnings: AngalTask/src/org/isf/vaccine/gui/VaccineEdit.java
Exported with compile warnings: AngalTask/src/org/isf/video/gui/VideoDevicesPanel.java
java -jar the.jar
的命令从命令行启动应用程序。 - Andrew Thompson