How to transfer a Netbeans project to Eclipse?

I have been using Netbeans for my application for Java applications since several months. Now, in the middle of the project, I want to switch to Eclipse since Netbeans once messed up my GUI and I had to re-create several parts of the GUI and now it displays a compiler error as

code too large private void initComponents() { 1 error 

"code too large" is a strange error. My code, which he says is too big, is only 10,000 lines. I first found out that we cannot develop long code in Netbeans :)

So, instead of going into details, I want to switch to Eclipse. I have never used it before. So please tell me how to import my unfinished Netbeans project into eclipse.

+4
source share
4 answers

I don’t know if a plugin exists for this, but if you used the default Netbeans settings, most likely the GUI layout code and the form files will not be compatible.

I suggest you first reorganize your existing code to eliminate Netbeans features, as well as make it smaller and work.

For the GUI material, you must create several classes and beans so that your main GUI file is much smaller. 10,000 lines of GUI code are largely unmanageable.

+4
source

I believe that your main task is to transfer the material of the creator of the GUI, and not just your code. The latter would not be a problem, but I assume that the former is complex, if not impossible. In addition, as far as I know, eclipse does not have a standard GUI application.

+1
source

This must be solved by spitting on something, as others said.

I just got a similar error, and NetBeans struggled with the code, so I just tried to compile it on the command line with javac, and it yelled at me with the same error. So this is not an IDE problem, but a Java compiler problem.

If you get this error, you probably automatically generated most of your code.

+1
source

the easiest way would be to create a new project in eclipse and import the code base from the file system into the project. Eclipse has the ability to import from the file system.

0
source

Source: https://habr.com/ru/post/1299188/


All Articles