• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is it possible to create an eclipse project from an existing EAR file?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an ear file written a couple years ago on another computer. Is it possible to use this ear file (which contains the source) to generate a new eclipse project containing the ear contents? If so, how? TIA
 
Ranch Hand
Posts: 148
Hibernate Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

you can simple go to import menu of eclipse and import the ear file

1.browse ear
2.Select project
and 3.Select target runtime

Thanks
 
Jeffrey Cole
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried that with no active project open. Eclipse complained that I had to have an open project to import into (I really want this created from the ear file, which has all the relevant info). I created an Enterprise Application project, and then imported an archive. It extracted the EAR file, but left the WAR file compressed, so clearly I am not making Eclipse understand what I need it to do.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jeffrey Cole wrote:I have an ear file written a couple years ago on another computer. Is it possible to use this ear file (which contains the source) to generate a new eclipse project containing the ear contents? If so, how? TIA


You would have to manually extract those sources - Eclipse does not have any idea where to find them because there is no standard for storing sources in an EAR. The specs for an EAR file, and its embedded WAR and JAR files, does not specify any location for source files.

You can also extract the various configuration files.

Then create new projects in Eclipse and add the sources and config files to those projects. It is a completely manual process, but it can be done since you have the sources.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic