User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 423,076 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,336 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 344 | Replies: 4
Reply
Join Date: Apr 2008
Posts: 8
Reputation: guerreronoli is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
guerreronoli guerreronoli is offline Offline
Newbie Poster

JasperREport not working in .jar file

  #1  
Jul 4th, 2008
The project is completed, the report is working in the JCreator, but not when i run jar file..
I've searched the forum but i couldn't find to my requirements. I want to know to how to make the jar file that the report should also work..
Help needed plz..
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2007
Location: Mumbai(Bombay), India
Posts: 245
Reputation: stephen84s will become famous soon enough stephen84s will become famous soon enough 
Rep Power: 3
Solved Threads: 34
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Posting Whiz in Training

Re: JasperREport not working in .jar file

  #2  
Jul 4th, 2008
Try running the Jar file via on the command line and check the error.
To run an executable jar file from the command line you will need to type:
java -jar filename.jar
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
Reply With Quote  
Join Date: Apr 2008
Posts: 8
Reputation: guerreronoli is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
guerreronoli guerreronoli is offline Offline
Newbie Poster

Re: JasperREport not working in .jar file

  #3  
Jul 5th, 2008
thankz, it could be work!... but how come to run it in LINUX??
Reply With Quote  
Join Date: Jul 2007
Location: Mumbai(Bombay), India
Posts: 245
Reputation: stephen84s will become famous soon enough stephen84s will become famous soon enough 
Rep Power: 3
Solved Threads: 34
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Posting Whiz in Training

Re: JasperREport not working in .jar file

  #4  
Jul 5th, 2008
Same way, Provided your Linux distribution has a valid JVM, and the path to "java" set correctly.
Last edited by stephen84s : Jul 5th, 2008 at 3:52 am.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
Reply With Quote  
Join Date: Apr 2007
Location: Singapore
Posts: 42
Reputation: lucky1981_iway is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 3
lucky1981_iway's Avatar
lucky1981_iway lucky1981_iway is offline Offline
Light Poster

Re: JasperREport not working in .jar file

  #5  
Jul 7th, 2008
You should try adding your executable class (main method) to manifest file. build the jar file again with -M option and you are done.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Java Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Java Forum

All times are GMT -4. The time now is 5:32 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC