For java programming in Ubuntu, in addition to text editors (vim, emacs, and gedit), most of them still use IDE (integrated development environment, however, the IDE issue in Ubuntu is a little big .. Eclips is the first one to give up, and it is also the first one to give up. Founder is not a perfect fit, and there are always various problems .. The simplest IDE configuration is MyEclipse (which comes with a java compiler, tomcat, and so on, saving jdk installation ).
For java programming in Ubuntu, in addition to text editors (vim, emacs, and gedit), most of them still use IDE (integrated development environment, however, the IDE issue in Ubuntu is a little big ..
Eclips is the first one to give up, and it is also the first one to give up. Founder is not a perfect fit, and there are always various problems ..
The simplest IDE configuration is MyEclipse (which comes with a java compiler, tomcat, and so on, saving jdk installation). Double-click the plug-in for linux and install it, starting from the installation, you will find that you cannot click "next" with the mouse. After the installation is complete, you cannot click "next" in some interfaces, the solution is as follows:
Create a new starter. Right-click the desktop and choose "Create a starter ".
The name is self-filled, so you do not need to note it. The key is "command "!
Enter the command: env GDK_NATIVE_WINDOWS = 1 + space + "MyEclipse path"
Example:
MyEclipse in/home/xyou/Genuitec/MyEclipse 8.x Latest/myeclipse
Therefore, write the following command: env GDK_NATIVE_WINDOWS = 1/home/xyou/Genuitec/MyEclipse \ 8. x \ Latest/myeclipse
Note: there is a space before "8" and "L" in "MyEclipse 8.x Latest". The Escape Character "\" must be added to the command !!
Tip: Find myeclipse, drag it into the "command" bar of the starter, and complete the escape characters and other commands. Double-click it and try it first...
I personally feel that MyEclipse is simple and convenient, and has a good impression. If you want to talk about its shortcomings, it is not free... Later, I had a chance to try NetBeans and found that it was no worse than MyEclipse. After all, java was still developed by sun, and it was mainly free of charge. This does not violate the Open Source spirit .. (Although sun was acquired by Oracle, I am still optimistic about sun's open-source projects)
Start to install NetBeans
Step 1: Install jdk first
Terminal:
Sudo apt-get install sun-java6-jdk
Jdk installation in 9.10 and 10.04 does not require any environment variables! At least on my machine is like this =, but the environment variable configuration method is still provided.
Configure JAVA environment variables:
Sudo gedit/etc/environment
Add the following two lines:
JAVA_HOME =/usr/lib/jvm/java-6-sun
CLASSPATH =.: $ JAVA_HOME/lib
Finally, enter "java" or "javac" on the terminal to test whether the installation is successful.