Posted by
Ray Barlow on
Feb 05, 2006; 10:55pm
URL: http://ofbiz.116.s1.nabble.com/Users-Hello-NetBeans-tp137245p137254.html
Vinay,
Not to play down Netbeans as I don't really use it but it does seem that
you've followed a troubled path with Eclipse. In it's defence I would
like to say that you can get OFBiz working in Eclipse with the use of
only a few simple actions:
1) Import the project file from the root of the OFBiz code base. (can
take a few minutes depending on hardware)
2) Use menu "Window - Show View - Ant" so that you can see the ant tab
if not already visible and add the root build.xml file.
3) Run the default ant target and Eclipse will call ant as an external
command and it should work fine. Any errors will display in the console
window and can be clicked on to jump to the source file and line in
question, not usually needed if you are editing the file as the real
time Eclipse compiler still picks up errors.
NB: If you are running Eclipse using JDK 1.5 then you will also need to
ensure Eclipse knows where to find your JDK 1.4 install:
"Windows - Preferences - Java - Installed JREs" add it and make sure it
is checked as the default.
The wiki did and still does have this information, albeit was in a
slightly less than intuitive order so I have rearranged it a little,
hopefully that will make it easier for others to follow.
There might be a few quirks, like Eclipse thinks there may be errors
when ant doesn't, but in all honesty these really don't stop you getting
the best from the tool as it is still capable of providing full IDE
features like type ahead, syntax checking, refactoring, real time
debugging etc.
Ray
Vinay Agarwal wrote:
>Hello,
>
>After spending hours trying to configure Eclipse, I learned that Eclipse has
>limited/poor support for Ant based projects and, hence, probably not the
>best option for OFBiz. On the other hand, NetBeans natively uses Ant for its
>project configuration. I succeeded in configuring OFBiz after several hours
>with NetBeans 5.0.
>
>It requires two steps. The first is to import an external Ant based
>("free-form") project like OFBiz which takes a few seconds. The catch is
>that NetBeans' project still needs to be configured if one wants to use code
>assist and debugger capabilities. After few hours of trying that, I finally
>figured out what NetBeans wanted and then I was able to do the second step
>in 10 minutes. Anyway, if anyone wants to use NetBeans 5.0, use these two
>steps:
>
>1. Create project: File-New Project-Web-Web Application with Existing
>Ant Script
>2. Edit nbproject/project.xml similar to the one shown below.
>
>The file contents may be mangled up by the email, so if anyone wants
>original file, I can email directly to them.
>
>Regards,
>Vinay Agarwal
>
>
>
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users