J2EE with Netbeans and Tomcat with Ubuntu Mate

You should have installed a recent java jdk. If you want also use java FX install the Oracle jdk. Open jdk has some trouble with java FX cause licences.
J2EE may not be downloaded from Oracle separately.
Install Netbeans from the Ubuntu repository and download tomcat .gz file from http://tomcat.apache.org/download-80.cgi.
Netbeans will be version 8.1 and I use tomcat 8.5.15. My OS is Ubuntu Mate 17.04.
Extract the apache-tomcat-8.5.15.tar.gz to your home-folder or where ever you want.
Start Netbeans and select from the Tools menu Plugins.
Add Java EE Base and EjB and EAR plugins.

(click to enlarge)

Without the EjB and EAR plugin an „javaee-endorsed-api-7.0.jar missing error“ will raise, when you start a new project.

Go to the Tool menu and choose Servers.
Click on Add Server .. down left in the window and choose Apache Tomcat or TomEE.
The server location is the root directory where tomcat was extracted to, i.e. the tomcat folder in your home folder.
Enter a username and a password and leave the option „Create user …“ checked.

There is also a well known bug in the tomcat configuration you have to fix.
Open the server.xml in <tomcat-folder>/bin set the connector tag as comment and define the connector like this:

<Connector
connectionTimeout=“20000″
port=“8080″
protocol=“HTTP/1.1″
redirectPort=“8443″
server=“Apache-Coyote/1.1″
/>

(click to enlarge)

That’s it.
Now you can start a new project and test the installation. When click on the green arrow for „run project“ the code will be deployed, tomcat is starting and a new browser-window or tab opens with the result of your code.
This setup is so much easier than with MS Windows. And except download times you will be back at work in less than 15 minutes.

(click to enlarge)

 

Ubuntu Mate Green Plank Theme

 

Download : MateGreenPlankTheme.tar.gz

I have made a small theme for Plank in Ubuntu Mate green.
I think it looks better than the grey default background of Plank.
This is the default Plank theme in Ubuntu Mate 16.04 Xenial Xerus.
Compositing should be activated.

PlankMateGreen(click to enlarge)

Installation

Download and unpack MateGreenPlankTheme.tar.gz (Right click in caja -> extract here)

Open the extracted folder MateGreenPlankTheme.
Open install.txt
Open a terminal in the MateGreenPlankTheme folder.
Copy and paste the two commands from install.txt or here to the terminal and press enter (you must enter your password):

sudo tar zxf MateGreen.tar.gz -C /usr/share/plank/themes
sudo chmod -R 755 /usr/share/plank/themes/MateGreen 

You can also extract the second tar.gz and copy the containing folder MateGreen to /usr/share/plank/themes and give the right permissions with caja.
Click on Plank preferences and choose MateGreen theme.

How to install more screensavers on mate desktop

This should work for all Ubuntu linux versions. It’s testet with Linux Mint Mate 17.1 Rebecca.

Install srceensaver packages:

sudo apt-get install xscreensaver-data-extra xscreensaver-gl-extra

Make them usable with Mate:

cd /usr/share/applications/screensavers
sudo perl -p -i -e 's/OnlyShowIn=GNOME;/OnlyShowIn=GNOME;MATE;/g' *.desktop

Now you have a big selection of screensavers in your preferences.

Credits to Sergey Potapov and bladerunner6978.
http://greyblake.com/blog/2013/02/02/install-more-screensavers-on-mate-desktop/