Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using both Eclipse and NetBeans on the same project

People also ask

Can you have both Eclipse and NetBeans?

There are no issues at all with having them on the same system. However, each have their own project specific files, so using them on the same project isn't seamless. This is made a lot easier if you're using source control and keep your (non-source code) project files separate.

Which is better for Java NetBeans or Eclipse?

NetBeans can be more beginner-friendly than Eclipse. It has a simpler user interface. And you can get started without all the plugins.

Can I use Eclipse instead of NetBeans?

NetBeans and Eclipse Java IDEs both offer excellent debugging capabilities, open-source coding, plugins, and extensions. NetBeans is easier to learn and has more features out of the box than Eclipse, but Eclipse can handle larger projects and is more customizable.


Create your GUI with Netbeans. copy a Eclipse .project file (like below) into the project folder change the MyProjectName. Open Eclipse and import the project into your workspace, so you can open the projekt from your Eclipse workspace with Netbeans. Now you able to use Netbeans to create and change the GUI and editing the code with Eclipse.

<?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>

MyEclipse offers an integration of the Netbeans GUI editor (Matisse) with Eclipse.

See http://www.myeclipseide.com/module-htmlpages-display-pid-5.html


Echoing @Tom I'd use an external build tool (Maven 2 would be my pick). I've done this on projects before and as long as you don't walk all over Eclipse's .Xxxx files and folders you'll be fine. Then you get the full power of Netbeans (which integrates with Maven 2 really nicely) or Eclipse and also have the added value of an external build which can also be run by your CI tool. Everybody wins!


Cloud Garden makes a GUI editor called Jigloo that is quite nice if you are into that sort of thing (and the price is very, very reasonable). If that's all that's missing for you from Eclipse, I'd recommend that you take a look. Netbeans does a ton of stuff with source code that you aren't allowed to edit, etc...

One other thing that I will mention: I have used GUI editors like Matisse and Jigloo for super rapid prototyping. However, within 3 or 4 iterations, I always find myself dropping back to hand coding the layouts. I also find that when I'm doing rapid prototyping, I am almost always more productive when I change the layout manager to absolute and just place components. Once the design starts the gel, implementing the design by hand coding using a good layout manager (I strongly recommend MiG Layout) is pretty easy, and gives much better results.

I know that dragging and dropping a GUI layout is really enticing - but MiG Layout is incredibly productive for hand wiring GUIs, and I suspect that almost any developer will be more productive within a week going down that path.


import project in netbeans create gui and then again open the project in eclipse

it works with no error