Installing eclipse IDE for Java EE developers on Linux Mint - linux

I'm new to the Linux method of program installation. I have found instructions on how to install several different Eclipse versions such as JDK and CDK from the terminal but can't seem to find the package name for the Java EE version.
ex. 'sudo apt-get install eclipse-cdt' installs the C++ version
I need the the option for Java EE, so what do I fill in the "option" below with?
'sudo apt-get install eclipse-option'

You will need to get a few packages to get it working.
eclipse
eclipse-jdt
eclipse-pde
eclipse-platform
eclipse-rcp
To install them:
sudo apt-get install eclipse eclipse-jdt eclipse-pde eclipse-platform eclipse-rcp
You can also find all packages that start with the name eclipse by using
apt-cache search eclipse | grep ^eclipse

Linux Mint 17,Qiana, with MATE Desktop manager:
bring cursor to 'Menu'.
Left click on "Menu" in the panel.
Slide cursor half way down left side of menu,
Find and click on "Program Manager"
It will ask for your password.
Then, in the search box, you type "java ee eclipse" and it will display 8 different packages, which yo0u can again click on to read the descriptions below, and/or, check mark, to install.
Some have tools, some are servers, sure to please...

The correct package for Java EE is
eclipse-wtp
Whereas "wtp" stands for web tool platform: http://projects.eclipse.org/projects/webtools
Imho you should not use apt to install eclipse, but download it directly from the eclipse website for the following reasons:
At the time of writing the apt eclipse installation is last years release (Luna), though this years release (Mars) has already been around for half a year
Eclipse has its own update tool
There are no dependencies to be fulfilled in the apt package

Related

Intellij IDEA 2017.2 can't add openjk 9 on Linux Mint 18

I am using Intellij IDEA 2017.2.5 on Linux Mint 18.2 and trying to add new openjdk-9 SDK but IDEA does not accept openjdk 9 as valid JDK:
I have installed all of my SDKs using apt-get from ppa standard repositories.
This is my update-alternatives --config java/javac output:
Although Intellij declared it would support JDK 9 here, but it seems it is not yet fully compatible with at least opensdk-9.
Maybe refactoring SDK directory and removing 'jre' folder misleads the IDEA to find the SDK 9 home folder.
Any idea why Intellij IDEA claims 'The selected directory is not a valid home for JDK' ?
“ Ubuntu PPA for OpenJDK” currently has very old build of openjdk-9(9~b115-1ubuntu1).
So the IDEA does not recognize it as a valid SDK.
I removed current installed version:
sudo apt-get remove '^openjdk-9.*'
Then I have downloaded newer .deb build(9~b181) files including jre,jre-headless,... from launchpad build archive.
sudo dpkg -i openjdk-9-jre-headless_9_b181-4_amd64.deb
openjdk-9-jre_9_b181-4_amd64.deb
openjdk-9-jdk-headless_9_b181-4_amd64.deb
openjdk-9-jdk_9_b181-4_amd64.deb
Just Execute the above command at a single line, line breaks are for better readability.
Ignore any error complaining about:
"Package libpng16-16 is not installed."
Next execute the following:
sudo apt-get install -f
Now after installing this build of openjdk-9 the IDEA is happy with SDK home.
Thanks #y.bedrov for his useful comment.
Update:
However this solution enables you to declare openjdk-9 in the mentioned IDEA version(2017-2) but you are not able to compile any class within the IDEA itself.
You can only compile your application with elder jdk and run it with openjdk-9. There is an other issue which indicates this here.
In the newer IDEA versions(I have tested 2017.3) this build of openjdk is not allowed to be used as new SDK any more, see this issue.
The short reason is an issue in Debian package which contains incorrectly compiled lib/jrt-fs.jar file.
See this Answer for more information

How to install kate5

I tried to install the latest version of kde editor kate, but nothing changed.
I took the source code: git clone git://anongit.kde.org/kate;
I followed http://kate-editor.org/get-it/'s instructions;
Now, when I run ~/kde/usr/bin/kate-v is the same version that was:
$ ~/kde/usr/bin/kate -v
Qt: 4.8.6
Plataforma de desenvolvimento KDE: 4.14.1
Kate: 3.14.1
How I do to install the lastest version?
Grateful
First of all: the version in the About dialog is built from the KDE version, so it does not all reflect whether you are running a self-compiled one or not. Second, you should run Kate with all environment variables properly set - just running the executable will probably load the wrong ktexteditor.so library.
The easiest way to get Kate5 is to install a distribution that ships Kate5 (probably along with Plasma 5).
If you already have a KDE Frameworks 5 (KF5) environment available, then you can also build Kate5 from sources by following the build instructions. These were updated in June 2015.
If you are still on KDE 4.x and you have no KDE Frameworks 5 packages installed, then you also need to build KDE Frameworks 5 from sources. In this case, you have to follow the KF5 build instructions. If you've questions, feel free to ask on kde-frameworks-devel#kde.org and/or on the Kate mailing list.

Plone Unified Installer missing Python

I'm trying to install plone 4.3.4 on a SLES 11 SP3 64bit server via the Unified Installer. I've fullfilled all the dependencies listed in the readme.txt, but when I try to get the installer running with the command sudo ./install.sh --password=******* standalone I get the error message: which: no python2.7 in (/usr/bin:/bin:/usr/sbin:/sbin) Unable to find python2.7 on system exec path.
I find that rather strange as in the description of the unified installer it is said "The new Zope/Plone install will use its own copy of Python, and the Python installed by the Unified Installer will not replace your system's copy of Python. You may optionally use your system (or some other) Python, and the Unified Installer will use it without modifying it or your site libraries." on the Plone-Website.
So - what am I doing wrong???
I've just tried adding the parameter --build-python but had to find out that the libxml2-devel and libxslt-devel libraries that are available for SLES-11-SP-3 are sadly not up-to-date enough 2.7.6 instead of 2.7.8 and 1.1.24 instead of 1.1.26 respectively. So no joy there either. :-(
Is there any way to install the current version of plone on SLES 11 SP3 64bit?
Kate
The installer command:
./install.sh standalone --build-python --static-lxml=yes
worked perfectly for me. The installer downloaded and built the Python and libxml2/libxslt components necessary to remedy the terribly out-of-date (and vulnerable) versions included with sles11sp3.
System packages needed for the build were:
gcc-c++
make
readline-devel
libjpeg-devel
zlib-devel
patch
libopenssl-devel
libexpat-devel
man
All installed via zypper.
I'd advise not using sudo for the install. If you want to, you'll need to create the plone_daemon and plone_buildout users and the plone_group group in advance due to oddities in SUSE's adduser implementation.

Android Studio not correctly rendering font on Ubuntu

Below is the picture of Android Studio when I first installed it:
I'm using Ubuntu 12.04 with Oracle Java 7. But the fonts are looking very ugly. They are not looking like they look when I see them on eclipse.
Earlier when I installed NetBeans, I had same problem too.
There actually is a solution. You need to install JDK font fix as follows:
sudo add-apt-repository ppa:no1wantdthisname/openjdk-fontfix
sudo apt-get update
sudo apt-get install openjdk-7-jdk
Then, open studio.vmoptions and optionally studio64.vmoptions in your android-studio/bin directory, and add following lines to both of them (the first one might be already there):
-Dawt.useSystemAAFontSettings=on
-Dswing.aatext=true
-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
After you reboot, the font rendering is just fine. To get the most Eclipse-like experience, go to File, Settings, Editor, Colors & Fonts, Font. Save the current scheme as a new one, and change the font to "Monospaced" with size of 14.
I've tried several suggested tweaks, tried using FontFix Patched JDK, FontForge, and editing studio.vmoptions; though some of these could show some improvement, it does not come close to the font rendering quality of the non-swing apps like eclipse.
I've found this to be the easiest and cleanest solution:
rm -r ~/.AndroidStudioBeta
If you have installed openjdk-fontfix, or made changes to studio.vmoptions, it is better you revert back those changes to their defaults.
sudo add-apt-repository ppa:no1wantdthisname/openjdk-fontfix
sudo apt-get update
sudo apt-get install ppa-purge
sudo ppa-purge ppa:no1wantdthisname/openjdk-fontfix
Remove all custom-added JAVA environment variables ($JAVA_HOME, $PATH:$HOME/bin:$JAVA_HOME/bin). Check in files, /etc/profile, ~/.profile, ~/.pam_environment
Install the latest Oracle Java via launchpad ppa
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
This ppa installer will usually do more than what a manual JDK configuration will do.
[]
Monospaced fonts like 'Inconsolata' and 'Source Code Pro' works best for me.
You do not need to install OpenJDK or the above-mentioned fix .deb for correct font rendering. Simply launch the Studio with:
_JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=lcd -Dsun.java2d.xrender=true' path/to/studio.sh
.. and fonts should render right under Ubuntu with Oracle's JDK 7. Looks even better when you change theme to GTK+ under File -> Settings -> Appearance.
In studio.sh, find this line at the bottom of the file:
eval "$JDK/bin/java" $ALL_JVM_ARGS -Dawt.useSystemAAFontSettings=lcd -Djb.restart.code=88 $MAIN_CLASS_NAME "$#"
and change it to
eval "$JDK/bin/java" $ALL_JVM_ARGS -Dawt.useSystemAAFontSettings=on -Djb.restart.code=88 $MAIN_CLASS_NAME "$#"
This means changing the parameter
-Dawt.useSystemAAFontSettings=lcd (if present)
to
-Dawt.useSystemAAFontSettings=on
Or simply add this param if you don't have it.
What you should do is configure the fonts in the settings as follows:
File > Settings > Editor > Colors & Fonts > Font
In that screen then you save a new scheme clicking in Save as, and putting a name on it, lets say "Custom".
Then below you'll find all the settings you need, you can tweak the font family and the size as well.
Android Studio 1.2 Preview 1 has been released a few hours ago (Mar 9th 2015):
http://tools.android.com/recent/androidstudio12preview1
It also includes several really important fixes that have been requested by Android Studio users, such as high density (retina) support for Windows and Linux.
It is based on IntelliJ IDEA 14.1, and according to the IntelliJ release notes, includes "The HiDPI support for Windows/Linux (scaled icons/font-size, no blur)".
However, I tried this on my machine (Ubuntu 14.10), and could not see any improvements. Maybe someone else has information on how to make it work?

How to install Maven 2 plugin for Eclipse on 64-bit linux?

I have Fedora 11 (x86 64) installed with Eclipse. I need a Maven plugin, preferrably m2eclipse, but I cannot find out how to install it. I've tried going through yum, but to no avail (I can't even find any maven plugins).
On my other laptop, I've tried installing the plugin using yum on a 32 bit install of Fedora 11, and while the package shows as being installed, I still don't see it in Eclipse. I've even tried starting eclipse with the clean flag.
Could anyone provide me with help? I've got maven 2.0.4 installed. Thanks in advance!
I was able to install the core components of the m2eclipse plugin after I first installed the ganymede packages from their update site:
http://download.eclipse.org/releases/ganymede/
Apparently "Fedora Eclipse" is not a flavor of the ganymede build.
Use the following update site: http://m2eclipse.sonatype.org/update/
It's typically under Help -> Software Updates… and then you can add a new update site. Use the one above and you should have the option to install the plugin.
Goto Eclipse->Help->Install New Software...
Add the following update site in Eclipse
http://m2eclipse.sonatype.org/sites/m2e
and enable the repository for your release of eclipse under "Available Software Sites" as well (which is disabled in Fedora by default).
Afterwards the installation in Eclipse should work without any missing dependencies.
I was hitting the same problem; evlipse installs it but the plugin isn't visible in the list nor are any of the features it should offer (such as a maven import wizard).
java 6, ubuntu, eclipse downloaded from the official site.
I removed ~/.eclipse/org.eclipse.platform_3.5.0_1020258342
Started eclipse again
added the EMF update site
added the IAM site
installed eclipse IAM core, said no to resarting the workspace, quit eclipse
started eclipse
and its working.

Resources