aspose file tools*
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
Author

Jar errors

Mark Lockery
Greenhorn

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
Sheriff

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


JavaBeginnersFaq
"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: 1121

Mark,
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,
Avi.
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).

Jules
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jar errors
 
Similar Threads
help in runnin sample code version 2 in mehran habibis book
Ant task ejbjar for Websphere
Can't display large amounts of text - help
Oh classpath, why do you hate me?
JVM launcher error