[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] Re: Converting normal project to a java project
|
Here is a somewhat hacky way to do it.
Turn off automatic build.
Go in the navigator view.
Open the .project file.
Add the following to it (check an existing Java project for sample)
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
Save.
Create a .classpath file at the root of the project.
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
</classpath>
Save.
Go in the project properties, and adjust your source & output folders, an
build path.
Turn on automatic build.
Done!
This is a bit hacky, but works.
Or create an empty java project, and either import or copy/paste you sources
and lib in it.
I guess there should be a wizard to make a project a Java project, like
there is a way to make a project a plugin project. ;-)
I have added a enhancement request for that:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=97609
Vote for it if you want it!
"Martin Holmes" <martincanbe@xxxxxxxxxxx> wrote in message
news:d7htiq$cb3$1@xxxxxxxxxxxxxxxxxxx
> Hello,
> Is it possible to convert a Normal project to a Java project?
>
> thanks
>
>