Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 12th, 2006, 11:07 PM
Registered User
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default New to jasper reports

I am new to this forum also to jasper reports. I downloaded the following
2.jasperreports-1.2.0.jar in the following directory.

C:\Documents and Settings\Administrator.
When I open this file I got the following error message.

Failed to Load Main-Class manifest attribute form
C:\Documents and Settings\Administrator\jasperreport-1.1.1-applet.jar

Why do i have this kind of error?
Old February 13th, 2006, 06:25 AM
Authorized User
Join Date: Jan 2006
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to longjava

Did you open the file by double-click on the .jar file?
The error means that this jar file(jasperreport-1.1.1-applet.jar) is not an application. Since on Window platform you can create a jar file and allow it to be launched by double-click on it by specifying the "Main-Class" attribute in the Manifest file.

This jar file is just a regular jar file, technically it is a zip file since it uses the same compression method. You can use a WinZip utility on Window to open and extract it or using the jar command to extract its content.

To extract the content of the jar file by using the Java's jar command type the following at the command prompt(Make sure your PATH contains the path to you Java JDK):

jar xvf jasperreport-1.1.1-applet.jar

Hope this help.

Old February 20th, 2006, 03:01 AM
Registered User
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

I've tried what you've suggested...but Windows cannot find .jar why is that so..what else do i need to install. I have already a JDK


Old March 7th, 2006, 07:43 AM
Authorized User
Join Date: Dec 2005
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts

There has good tutorial about jasper report


JAVA Email
Old March 9th, 2006, 10:59 AM
Registered User
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Check out this article. Has some good explanation of the various aspects of Jasper Reports. Also links to good tutorials. Information about cross-tab reports is provided. Also details of the various GUI tools to generate Jasper Reports are also given.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Jasper Reports devi.g@india.com J2EE 4 December 4th, 2007 11:02 PM
Jasper Reports bcg J2EE 1 October 30th, 2007 04:05 AM
jasper reports hrishi J2EE 3 August 4th, 2006 04:53 AM
jasper reports hrishi BOOK: Beginning JavaServer Pages 0 May 29th, 2006 04:51 AM
New to Jasper reports laviananth J2EE 0 April 7th, 2005 04:10 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.