wood burning stoves
The moose likes IDEs, Version Control and other tools and the fly likes Netbeans Quest to make the JAR file work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Netbeans Quest to make the JAR file work" Watch "Netbeans Quest to make the JAR file work" New topic

Netbeans Quest to make the JAR file work

George Reyes

Joined: May 10, 2006
Posts: 1
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.
I agree. Here's the link: http://aspose.com/file-tools
subject: Netbeans Quest to make the JAR file work
It's not a secret anymore!