Since Oracle Java can no longer be available in the various Linux distributions, for licensing reasons, a number of more or less complicated guides have been written about how to install Oracle Java manually. This is another such guide, but less ambitious and hopefully easier to understand and use. It only describes how to install the JRE (the Java Runtime Environment), integrate it with Firefox and create a shortcut to the Java Control Panel.
When your Java program attempts to connect to a server that has an invalid or self signed certificate, such as an application server in a development environment, you may get the following exception:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
To make your Java runtime environment trust the certificate, you need to import it into the JRE certificate store.
Whenever you do something, anything, in NetBeans, it will write to the uigestures file in the NetBeans log directory, .netbeans/8.2/var/log for NetBeans 8.2. I finally got tired of hearing my disk being written to every time I pressed a key so I decided to put the log directory on a temporary file system in memory. I imagine this will also be good for the future health of an SSD drive.
I'm using OpenSUSE Leap so there may be variations on other distros.
For some time now, it has not been possible to copy GUI components in the NetBeans GUI editor. Apparently, the KDE clipboard doesn't play well with NetBeans GUI copying. Until Plasma 5 arrived, the clipboard tray icon was provided by klipper and you could get GUI copying to work by just selecting Quit from the tray icon popup menu. Klipper was even nice enough to ask if you want it to start again automatically at next login. Of course, you didn't need to log out and log in again, you just called up krunner with Alt+F2 and typed klipper.
This guide describes how you create a service menu to allow you to right click a file in Dolphin and create a new mail with the file as an attachment.
Smb4K is my favorite tool for browsing and mounting SMB shares. Up until openSUSE 12.2 it mounted shares without prompting for the root password, through sudo rules. With openSUSE 12.2, this did not work out of the box anymore. The following post by Alexander Reinholdt helped me with the local policy override settings needed:
After installing Thunderbird I found that although I had installed myspell-swedish from the package repositiory I didn't get Swedish as an option in Thunderbird. I checked the file list for the thunderbird package and it showed a directory called /usr/lib64/thunderbird/dictionaries. This directory contained symbolic links to /usr/share/myspell/en_US.aff and /usr/share/myspell/en_US.dic but not to the files for Swedish. Perhaps it would if I had installed the dictionary before thunderbird, don't know.
When you are developing GUI components you may want to create some nice bean customizers and property editors for them. But how do you debug them? The NetBeans developers may smile at this, knowing that there is a much better way, but I don't so smile away...
The trick is to start a new NetBeans instance in debugging mode. This is a built in feature of NetBeans module projects so we first need a simple NetBeans module. It doesn't have to do anything so you can create it in less than a minute using the New Project wizard:
When you have entered a value into a form, Firefox will remember it and suggest it the next time you use the form. When such a value is incorrect or for some other reason not relevant anymore you probably want to delete it. Very simple but not very well documented. Here is how it is done: