As new versions of Java are released, the Java updater automatically installs them. The number of Java installations on your computer increases. Normal PC housekeeping dictates that you delete the old versions because they are no longer in use.
I used the Window's Add and Remove Programs option in the Control Panel to un-install all the old JREs leaving only the latest versions. I do a lot of Java programming and I rely on the environment variable JAVA_HOME
to tie together a lot of my build scripts and development environments.
When I tried to load Spring Tool Suite (STS) it wouldn't load and gave the message:
A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run STS. No Java virtual machine was found after searching the following locations: c:/Java/Java/jdk1.6.0_16/javaw.exe
The path of javaw.exe
was one of the versions I had un-installed. Even though I had reset the JAVA_HOME
and updated the path to point to the new JAVA_HOME/bin
it still wasn't picking up the correct path of the Java installation.
So here is how to fix it:
- Find your installation of Spring Tool Suite
- Change to that directory.
- Load the file
STS.ini
into your favourite text editor. - Change the old command line path from the old version of Java. In your set up the version will be different. Where 1.6.0_18 is the full path to my latest Java installation.
-vm C:/Java/Java/jdk1.6.0_16/bin/javaw.exe
to the new Java path:-vm C:/Java/Java/jdk1.6.0_18/bin/javaw.exe
- Save file and re-run Spring Tool Suite (STS)
C:\>copy file.txt \\remote-host\c$ Logon failure: unknown user name or bad password. 0 file(s) copied.You have tried to access a share that is password protected. You must connect to the share and authenticate yourself. It’s easy to do this via Windows Exploder->Tools->Map Network Drive… but how do you do it without using the Windows user interface? As with all Windows commands it is overly complicated and not very simple to remember, so here are a couple of cheat sheets to connect to, view and disconnect from windows shares. Connect to a share
net use z: /user:domain\user \\host\share passwordSee the status of a share
net user z:Disconnect from a share
net use z: /deleteIf you don’t specify a drive letter to map the share on to then you can only reference the share by its full name (
\\host\share
). You must also disconnect using the full path as well, for example:
net use \\host\share /deleteSo to copy a file to a remote machine you can use the following lines:
net use z: /user:domain\user \\host\share password copy my-file.txt z:\their-file.txt net use z: /deleteor
net use /user:domain\user \\host\share password copy my-file.txt \\host\share\their-file.txt net use \\host\share /deletedepending on whatever floats your boat! Well ok, it’s not that complicated.
/usr/share/psa-horde/imp/templates/mailbox
Edit: mailbox.html
Change table row element to:
<tr id="row<tag:messages.uid>" class="<tag :messages.bg>" onclick="selectRow(<tag :messages.uid>);">
and remove the onClick from the checkbox element changing it to:
<tag:overflow_begin><input id="check<tag:messages.uid />" type="checkbox" class="checkbox" name="indices[]" value="<tag :messages.uid><if :search_mbox><tag :idx_separator><tag :messages.mbox></tag></tag></if>" /><if :messages.status><tag :messages.uid>"><tag :messages.status></tag></tag></if><tag:overflow_end>
Next edit javascript.inc
and search for “function selectRow".
Change the if statement to:
if (rowOb.className.indexOf('selectedRow') != -1) {
rowOb.className = rowColors[rowId];
rowOb = document.getElementById('check' + rowId);
rowOb.checked = false;
} else {
rowColors[rowId] = rowOb.className;
rowOb.className = 'selectedRow';
rowOb = document.getElementById('check' + rowId);
rowOb.checked = true;
}
All done!