File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Jar errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Jar errors" Watch "Jar errors" New topic

Jar errors

Mark Lockery

Joined: Jun 04, 2004
Posts: 19
When creating a jar using the Eclipse program, it gives me the message
"JAR export finished with warnings. See details for additional information.
Problem writing /SplashTest/FILENAME to JAR: duplicate entry: FILENAME" for every single i file i add.

When the jar is finished i run it and i get the error message "Fatal exception occurred. Program will exit." (useful....)

Does anyone know 1) If my first errors are related to the second error.
2) How i might go about fixing this.

- Mark

EDIT: On an unrelated note i noticed i can use this line in an application
" repaint(1); ".
Does that do anything different to just " repaint(); " ?
[ August 16, 2004: Message edited by: Mark Lockery ]
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
I think you would be better off to ask an unrelated question in a separate post.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1141

While I don't use eclipse (I use a competing IDE -- that shall remain nameless :-), I don't like to use any IDE "wizards", since I don't know what it's doing, and when something goes wrong (like has happened to you), you're up sh*t creek (so to speak).

Let me (humbly) suggest using the command line. See the documentation for the "jar" command.

Regarding your "unrelated" question. Again, I suggest the javadoc for the "java.awt.Component" class (which defines the "repaint()" and "repaint(long)" methods).

Good Luck,
Julian Kennedy
Ranch Hand

Joined: Aug 02, 2004
Posts: 823
Hi Mark,

I'm guessing you've got the same thing in your classpath twice somehow. The same thing has happened to me in the dim and distant past (with Forte as was).

I agree. Here's the link:
subject: Jar errors
It's not a secret anymore!