Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

exporting Intellij-Idea UI Form to Eclipse

I have a Java Project to do for Class. So I decided to use the Designer in Inltellij-Idea to help me get the forms and windows quickcly done, and have more time developping the application.

The problem I am facing, is the fact that the teacher uses Eclipse, So I thought that at the end of the developpement I could export my Intellij-Idea project (UI and Classes) to make it work on Eclipse.

I have no problem exporting the classes, but what about the .form files ? how do I reference them in my code, so that the eclipse project could be Buildable ?

like image 439
Abderrahmane TAHRI JOUTI Avatar asked Dec 06 '12 13:12

Abderrahmane TAHRI JOUTI


People also ask

Is IntelliJ compatible with Eclipse?

You will need install the Eclipse plugin in IntelliJ in order to see the "Export to Eclipse" menu. Note that this method will not convert your entire project and put it into a new directory. It'll simple add additional files into your existing IntelliJ directory so it will also run when opened in Eclipse.

Is IntelliJ IDEA faster than Eclipse?

The more plugins installed in the IDE make it more heavy for your computer. However, Eclipse handles the large projects faster as compared to IntelliJ Idea because it indexes the entire project on start-up. But, when you are working on an existing project, IntelliJ Idea works faster and smoother as compared to Eclipse.

How do I save an IntelliJ project as a Java file?

From the main menu, select File | Save File as Template. In the Save File as Template dialog, specify the new template name and edit the body, if necessary. Apply the changes and close the dialog.


1 Answers

You can use File | Settings | GUI Designer | Generate GUI into: Java source code.

Rebuild the project, sources will be generated from the .form files. Now your app can be compiled in any IDE. Don't forget to add a dependency on the forms_rt.jar file (bundle it with the project). It's required to compile and run your application when using GUI Designer (IDEA_HOME\redist\forms_rt.jar).

like image 76
CrazyCoder Avatar answered Oct 18 '22 01:10

CrazyCoder