-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: creating my jar application
PostPosted: Thu Mar 02, 2006 11:04 am 
Newbie

Joined: Thu Mar 02, 2006 10:32 am
Posts: 4
I am using Eclipse 3.1 and Hibernate 3. My application is working very well. But now I want to use this application in another computer (with Windows OS). I will use Java Web Start, but firstly I need to export my application into a .jar file or into a file that lets me to use it without eclipse.

I was looking for some tutorial about how to create this package in order to be used by users in several different machines.

I tried to export my project into a jar file but I have problems with the xml files. If I export only the .java file I do not have any problem, but when I try to export the org/revenge directory (that contains the .java and hbm.xml files with the databse objetcs), the jar generation failed. Some of the errors are:

--------------
JAR creation failed. See details for additional information.
Exported with compile warnings: /investigacion/src/java/AsignarEstimulo.java
Problem writing /investigacion/bin/AsignarEstimulo.class to JAR: duplicate entry: AsignarEstimulo.class
Exported with compile warnings: /investigacion/src/java/ConsultaCategorizacionesDocentes.java
Problem writing /investigacion/bin/ConsultaCategorizacionesDocentes.class to JAR: duplicate entry: ConsultaCategorizacionesDocentes.class
Exported with compile warnings: /investigacion/src/java/ConsultaDocentes.java
Problem writing /investigacion/bin/ConsultaDocentes.class to JAR: duplicate entry: ConsultaDocentes.class
--------------------------------

And so on....

Thanks !!!
Agustina


Top
 Profile  
 
 Post subject: ant
PostPosted: Thu Mar 02, 2006 1:07 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
Create Ant build file that would be independent of Eclipse and have there your packaging steps (jar task in the Ant documentation)

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.