File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jar errors

 
Mark Lockery
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9059
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you would be better off to ask an unrelated question in a separate post.
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 823
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic