This week's giveaway is in the OCPJP forum.
We're giving away four copies of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) and have Paul Anilprem on-line!
See this thread for details.
Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

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.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic