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 ?
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.
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.
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.
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
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With