Factsheet
eclipse - How do you install JDK? - Stack Overflow
Which Eclipse download should I install?
Why is Eclipse generating argument names as arg0, arg1, arg2 in methods when implementing interfaces?
What is your weapon of choice - IntelliJ IDEA vs Eclipse: Which Is Better for Beginners?
For beginners I think the best is netbeans, it has great support for Java. I currently use Intellij, it was a quite a switch from Netbeans but none the less a great improvement. Either way both are great
More on reddit.comVideos
To setup Eclipse to use the JDK you must follow these steps.
1.Download the JDK
First you have to download the JDK from Suns site. (Make sure you download one of them that has the JDK)
2.Install JDK
Install it and it will save some files to your hard drive. On a Windows machine this could be in c:\program files\java\jdk(version number)
3.Eclipse Preferences
Go to the Eclipse Preferences -> Java -> Installed JREs
4.Add the JDK
Click Add JRE and you only need to located the Home Directory. Click Browse... and go to where the JDK is installed on your system. The other fields will be populated for you after you locate the home directory.
5.You're done
Click Okay. If you want that JDK to be the default then put a Check Mark next to it in the Installed JRE's list.
You don't need a separate compiler, eclipse already compiles the application for you. What you probably want to do is to create an "executable" JAR file, which you can do in eclipse by selecting File->Export->Runnable JAR file.
Note, however, that the resulting JAR file is not a "real" (i.e. Windows binary) executable - it still needs a JRE installed on the target computer. There isn't really a way to create windows binaries; that's not how Java works. On the upside, it will work without recompilation on a Linux or MacOS machine (if it has a JRE installed).
Hi. I programmed in Java many years ago back in college. Decided to get back to it just for fun. Now which one should I download and install?
Eclipse IDE 2020β06
or
Eclipse IDE for Java Developers
or both?
Here are all instructions. You have to create a desktop file, see the last point in my answer.
Download the installer here
Extract the archive, e.g the 64-bit version
tar xf eclipse-inst-linux64.tar.gzChange your folder
cd eclipse-installerRun the installer WITHOUT
sudoto UPGRADE the installer./eclipse-instNote the yellow exclamation mark in the top right corner.
Activate the hamburger menu to upgrade the installer.
Close the installer after the upgrade
Install Eclipse without OR with
sudorightsWithout
sudoto install Eclipse in your home folder./eclipse-instselect your Eclipse distribution
and use a path inside your home folder
OR with
sudoto install Eclipse in/opt.sudo ./eclipse-instselect your Eclipse distribution
and use
/optas installation path
Finished
Create a desktop file
Crazy, we have a installer but no desktop files. Perhaps, this will be fixed in future versions of the installer. In the meantime:
nano ~/.local/share/applications/eclipse.desktopand add the configuration below. Note, you have to change the pach for
Execand/orIconif you have used a different location.[Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=Eclipse IDE Comment=Eclipse Integrated Development Environment Icon=/opt/eclipse/java-mars/eclips/icon.xpm Exec=/opt/eclipse/java-mars/eclips/eclipse StartupNotify=true StartupWMClass=java-mars
Unfortunately I don't have enough points to write a reply to the above answer by A.B. There is only one more step that you need to take if you want to install the application for all users under /opt:
You need to switch to the advanced mode and change the bundle pool folder to something like /opt/eclipse/.p2/pool. This is because when installing it with sudo, the installer chooses /root/.p2/pool by default for the bundle pool location, which can't be opened by your user. After that you should be able to open eclipse from your regular user. Hope this helps.