Results 1 to 2 of 2
  1. #1
    MCinPgh is offline Member
    Join Date
    Sep 2011
    Location
    Pittsgurgh, PA
    Posts
    4
    Rep Power
    0

    Exclamation Import WAR file into project & view classes

    Using Eclipse Java EE IDE for Web Developers

    New to java and eclipse here. I have a WAR file which contains a service, I will call this projectA. I need to import the WAR file and create a project from it so i can open the classes, view the code and run the project.

    I have to say that since I'm a java newbie I dont really know how to do this. I can import the war file but then I cannot open the classes, in fact I cannot see the classes.

    What I did was went to File->Import, selected the WAR file and it created a project and imported the contents of the file into my workspace.

    Using Eclipse, when I look in the Project Explorer I see the projectA from the imported WAR file and when I change to "Navigator" view I can see the .class files, however when I try to open any class file that I imported I get an error "Source Not found. There is no source file attached to the class file RemitBalance class".

    how do I resolve the "source not found" error?.

    Does anyone have suggestions for me?

    thanks
    MC
    Last edited by MCinPgh; 01-16-2013 at 02:49 PM.

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    760
    Rep Power
    8

    Default Re: Import WAR file into project & view classes

    The WAR file basically a binary version of your application. Unless the creator of the war file includes the source files in it you will usually not have the source files in the war file. It will contains binary files such as the classes and the required dependencies and web related files.

Similar Threads

  1. Best Way To Import a Project?
    By Allan Ocelot in forum Eclipse
    Replies: 2
    Last Post: 03-15-2012, 08:41 PM
  2. Replies: 10
    Last Post: 01-27-2012, 09:28 PM
  3. How can I import my classes?
    By Pojahn_M in forum Eclipse
    Replies: 3
    Last Post: 10-07-2011, 01:53 AM
  4. static import only from classes and interfaces
    By balajir in forum New To Java
    Replies: 3
    Last Post: 12-13-2010, 06:31 AM
  5. how to hide .project file in my plugin view
    By manju.aries in forum Eclipse
    Replies: 0
    Last Post: 04-03-2009, 11:22 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •