I am using: Windows XP Netbeans 5.0 JDK and JRE 1.5_06
Before coming here I have checked tutorials on the matter, if there was a solution in the java forums and here.
I have been building a program that is a Java GUI interface to communicate with a PostgreSQL 8.1 database and print reports with Jasper Reports.
Problem: It works fine in Netbeans when I hit run but if I use first it cried that an inner class didn't exist. So I checked and I fixed the manifest file classpath. Second that the driver for Postgres didn't exist. Added more things to the classpath and third now main doesn't exist.
So this is the manifest file: Manifest-Version: 1.0 X-COMMENT: Main-Class will be added automatically by build Class-Path: Program.jar lib\commons-beanutils.jar lib\commons-collections-3.1.jar lib\commons-digester-1.7.jar lib\commons-logging.jar lib\itext-1.4.jar lib\jasperreports-1.2.1.jar lib\jfreechart-1.0.1.jar lib\poi-2.5.1-final-20040804.jar lib\postgresql-8.1-404.jdbc3.jar lib\swing-layout-1.0 C:\Program Files\Java\jdk1.5.0_06\bin
These same files are included in the library folder in the Netbeans Project. I have to deploy this in another computer so I was going for using a batch file to just java -jar -program.jar but I have no idea on how to fix this problem.
Any help is greatly appreciated and thanks for your time.
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop