Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7159357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:13:05+00:00 2026-05-28T13:13:05+00:00

Is it possible to force an already existing project to be a java project?

  • 0

Is it possible to force an already existing project to be a “java” project? For example, I have imported an existing maven project that does not have any associated eclipse files, but the project is not associated with “java”. It is hard to explain because I dont know the eclipse specific terminology. The problem I am having is that I am unable to ‘src’ directory as part of the build path because eclipse doesnt know that the project is a java project. In turn, I have to expand each directory of the namespace to get to the java files. The project is also not associated with any java sdk or libraries, etc.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:13:05+00:00Added an answer on May 28, 2026 at 1:13 pm

    Check your .project file. (This is a hidden file in your project’s root directory)

        <?xml version="1.0" encoding="UTF-8"?>
        <projectDescription>
        <name>myProject</name>
        <comment></comment>
        <projects>
        </projects>
        <buildSpec>
            <buildCommand>
                <name>org.eclipse.jdt.core.javabuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
        </buildSpec>
        <natures>
            <nature>org.eclipse.jdt.core.javanature</nature>
        </natures>
    </projectDescription> 
    

    You want to make sure that your project has the java “nature”, and set eclipse to build the project with the javabuilder (and not the maven builder, for example). Note that this will simply make eclipse see the project as a java project, if you want it working with maven as well, I’ll need some more information.

    For what its worth, I typically don’t run maven builds from w/in eclipse, i switch over to the command line. My reasons for doing so are that I prefer my command line’s aesthetics over eclipse’ and I’ve had some headaches in the past with eclipse and maven projects (though I’m not blaming eclipse, I’m certain I was at fault).

    Recently, Spring Source Tool Suite (an eclipse offering from the spring guys) has had my maven projects working in eclipse without much hassle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an interface that contain the method void DoCommand(); . now I'll force
Is it possible to force a column in a SQL Server 2005 table to
Is it possible to force the iPhone to shutdown ( programmatically , of course)?
I would like to know whether it is possible to force LWP::UserAgent to accept
In a Web application, is it possible to force a PDF file to be
In SQL Server 2000/2005, Is it possible to force the default value to be
Even when BorderStyle is set to 0, it is possible to force a window
If a class defined an annotation, is it somehow possible to force its subclass
this may be a very simple question, but is it possible to force a
Is it possible to prevent user from writing letters to a textbox (i.e. force

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.