• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Netbeans Quest to make the JAR file work

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic