• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Unable to execute jar file....got following stack trace.

 
Ranch Hand
Posts: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

i'm using jasper report for generating report.

following is my java class for displaying report,



i have created jar(JR.jar) file

the entry of MANIFEST.MF



when i double click on JR.jar file it gives me the following error



I have tested the Jr.jar file with following command and got the following stack trace




i'm also bundeling all the requeired jar file in my JR.jar file



I'm using JBoss Eclipse IDE 1.6, Jasper Assist for creating jasper report.

and i have tried to create jar file from dos as well as IDE but getting the same error.

can anybody help me out ???
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You cannot include jars in a jar. The classloaders will not find classes inside of multiple jars.
To do this, you'll need to write ( or find) a custom classloader or better add classes to your JAR File's Classpath according to

http://java.sun.com/docs/books/tutorial/deployment/jar/downman.html
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not an advanced question. Moving...
 
Everyone is a villain in someone else's story. Especially this devious tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic