import a web project using ant build file - java

I have a web project from TrortoiseSVN. When I import this project into workspace using ANT build.xml it become a simple java project. It is not recognize the web-inf and web root folder.
How I import this project into workspace?

You can make an empty project like you want, and then copy the file to the project which you created. And then enter "F5" to see it or not success!

For Juno, do File->New->Other, then select File -> New -> Other, and at the New dialog, select Java Project from Existing Ant Buildfile

try importing the project in a different way, maybe import it as an existing project into eclipse

Related

Adding Java builder to .project file in Eclipse

I need to add a Java builder to mt .project file in Eclipse. However, there is no such file in my project folder. I don't know where this file is, maybe you can help me out?
In Eclipse, the .project file is kept in the root directory of your project, which is in your workspace. It's easy to see if you do a directory listing in your underlying filesystem. If you want to find out where your workspace is, find it by looking at the project in the Package Explorer. right-click > Properties > Resource > Location.
It might be better to use Eclipse itself to add a builder to your project, for example, using the Package Explorer - project right-click > Properties > Builders feature.
Convert the project into a faceted project. This generally happens when you import a project from git and the project is not a java project.
Steps:
Right Click -> Properties -> Project Facets
Click on convert project into a faceted project
Select the builder as java builder.

How do i import a source code into eclipse

I have a folder called src and somehow i have to import it in to eclipse to work with the code.
This is how it comes from github:
I've tried to put the src folder in an existing project still cant read it. What should i do?
Im not so familiar with java :/
The final jar file stuctures should look like this:
(its a bukkit plugin)
File -> Import -> Maven -> Existing Maven Projects
And point it to the root folder of the projects (the one containing the top pom.xml).
You'll need a Maven plugin for Eclipse for this.
In Eclipse: right click on src -> Build Path -> Use as Source Folder

DynamicReports: How to import the libraries to use with NetBeans in a new project?

How do I import DynamicReports library to a netBeans project?
http://www.dynamicreports.org/getting_started.html#step9
I found this link:
http://www.dynamicreports.org/documentation/documentation.html#examples_netbeans
But it shows how to import existing examples. If I want to build a dynamic report from scratch i.e. a new project instead of an existing one, in NetBeans, how do I import DynamicReports libraries after I have downloaded dynamicreports-3.1.0-project-with-dependencies?
For example if I use iText I can do as below:
http://www.youtube.com/watch?v=WMVx3MIUApU
Thanks
Got the ANSWER:
Create a new project : Go to Libraries -> Add Jar/Folder then copy all files from dynamicreports-3.1.0\dist and dynamicreports-3.1.0\lib
How to run the examples in Netbeans
Download dynamicreports-5.0.0-project-with-dependencies from the download page
Copy
/examples/netbeans/dynamicreports-examples
from the archive to your NetBeansProjects folder e.g.
/NetBeansProjects/dynamicreports-examples
Copy all files from /lib and /dist folders from the archive to
/NetBeansProjects/dynamicreports_examples/lib/
Run NetBeans and open the project
Build the project

How to import and run ivy+ant project in eclipse juno

this is my first use of ivy+ant and after building the project from command line, i want to import it into eclipse juno.
the project folder (trunk) contains the following folders/files:
build
dist
src
WebContent
build.properties
build.xml
ivy.settings.xml
ivy.xml
i tried to import the trunk folder that contains the above files/folder using import existing projects into workspace, but i get the error that no projects found.
pleases advise how to import this project.
UPDATE: i tried to configure the project for eclipse before importing using the following command:
ant eclipse-default
but i get the following error:
Target "eclipse-default" does not exist in the project
UPDATE 2:
i was able to import the project in eclipse as follows
File > New > Other > Java Project From Existing Ant Buildfile
but when trying to run the project on server, i can't find run on server in the run options, please advise.
You may try this:
Install IvyDE from http://www.apache.org/dist/ant/ivyde/updatesite (ref: http://ant.apache.org/ivy/ivyde/download.cgi)
IvyDE may not recognize your setting and properties file. At Window -> Preference -> Ivy -> Settings, check reload the setting on demand, add Ivy setting path ivysettings.xml or your Ivy setting file, Property files build.properties or your Ant properties file.
Add new Java project you want to work on, point the path to your project.
At the new project wizard, Libraries tab -> Add Library -> IvyDE Managed Dependencies.
You can not import a project of you do not have the eclipse project information in your code.
Either create a new eclipse project from existing source.
Or a new java project from ant buildfile (your update 2).
For running need configuration of server (hard to know what youneed there), you may need to create new server (preference/server/run time environnement) (or from view server, right click "new")

Cannot import spring mvc project property into eclipse

I am trying to import the project at http://www.javaworld.com/javaworld/jw-04-2009/jw-springmvc-cms-src.zip into eclipse.
I do File -> New -> Project.. -> Java Project From Existing Ant Buildfile. I give the path of the build.xml of the project.
It imports the project into eclipse and shows the src and test folders. However, it does not show the WEB-INF, css etc. folders. Why? How can they also be viewed in the project structure in Eclipse.
You should try creating "by hand" the missing folders into your newly created project, then you can use Import -> File system to add the missing files into the respective folders...

Categories

Resources