Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2005

Tip: Looking for answers? Try searching our database.

jar problem

Thread view: 
Daisy - 03 Oct 2005 15:53 GMT
I'm struggling with a bug and am writing to see if someone has an idea
that
hasn't occurred to me.

I wrote some report generation software using Quest's JClass product.
It
produces a beautiful .pdf report as long as I run the code in Eclipse.
When
I create a .jar then run the .jar, it runs fine.  But when I open the
generated report in Adobe Reader, it produces the error "invalid
restore".
I can view the report but the content of the tables are blank.

Because the code produces a valid .pdf in Eclipse, I know I have all
the
code necessary on my machine.  However, when I create the .jar
something
goes subtly wrong.  I've tried carefully checking all my classpaths,
etc.
I'm a bit concerned about Eclipse path filters.

Has anyone struggled with similar symptoms? If so, how did you resolve
it?

Thanks
Andrea Desole - 03 Oct 2005 16:24 GMT
> Has anyone struggled with similar symptoms? If so, how did you resolve
> it?

the times I had a problem like this it usually was because I was using
different versions of some files, whereas I was thinking I was using the
same files. I remember once having a war file with two different
versions of the same class files. I know you carefully checked, but I
still think this is the most likely cause.
Anyway, besides checking again, I want to suggest to debug your jar (you
can do that with eclipse), and see what happens. I don't know if you did
it already, but even if you really made no mistakes you can more likely
find out what went wrong
Roedy Green - 03 Oct 2005 18:26 GMT
>Has anyone struggled with similar symptoms? If so, how did you resolve
>it?

I have not had this problem, but if I did here in what I would do.

Look in the eclipse working directory for the jars IT creates.

do a Jar -t myproject.jar to get a contents list.
Dump the manifest with winzip

Now do the same with the jar you created outside Eclipse.

Compare.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.