Under Ubuntu using Unity, you can find it in the Launcher. Run TextPad under WINE, from the WINE menu, or however it’s done in your distribution. You should see the path to the JDK bin folder on the path. You can check that the PATH environment variable has been set correctly by opening the WINE command terminal from a Linux terminal, and echoing it using the command: wine cmd If you accepted all the defaults when you installed the JDK, your path will be the same as mine. In the dialog box that appears, enter the path to your JDK’s bin folder:
Remember that Windows path entries are separated by semi-colons.Īssuming you’re adding a new Path value, simply right click on the “ Path” value and select “ Modify“. If a value for “ Path” (or “ PATH” or “ path” or whatever) already exists, you will just need to modify its data. Now, assuming that you can’t see a value for “ Path” (case insensitive, remember), right-click on the right-hand panel and select New > Value. Select HKEY_CURRENT_USER/Environment in the tree view in the left hand panel. To do this you have to use regedit unfortunately. Therefore you need to make sure that the JDK’s bin folder is included in your Windows path under WINE. TextPad simple calls javac.exe and java.exe when it compiles and runs Java files you are working on. Setting the Windows PATH environment variable Once again, you should just follow the defaults during installation. Navigate to the location of the unzipped setup executable and then run it by executing: wine setup.exe I unzipped it to a directory off my downloads directory called, unimaginatively, ‘ textpad‘.
The TextPad download is a zip archive containing a file called setup.exe, so navigate to the location of the zip file and unzip it to somewhere convenient. Just substitute (in place of jdk-7u11-windows-i586.exe) the name of the installation executable that you downloaded.Īccept all the defaults during the installation.
The file name may have changed by the time you read this, or if you have the 64 bit version. The file name above is correct for JDK 7 (32 bit) at the time of writing. Change directory to the location of the installation file you downloaded and then execute: wine jdk-7u11-windows-i586.exe The Oracle JDK download file is a Windows executable, which you run in the normal way under WINE. If not, simply grab it from your package manager (Synaptic, YaST, etc). These are the latest versions at the time of writing. The links go to the downloads for JDK 7 (32 bit) and TextPad 6. The first thing to do is to download the latest versions of the installation programs for the Windows version of the Oracle JDK (or a suitable alternative) and TextPad. Do it the normal way, via My Computer or whatever Microsoft call it on your Windows version. If you do have to alter it, though, don’t use regedit. You may also find that you will not have to alter the Windows PATH variable, because it will be done for you during installation. Just ignore the references to WINE and issue the commands directly. The following instructions, though, apply just as well to Windows users. Never being one to refuse to help a friend, I agreed. In the classes, they use Windows and TextPad, so my friend asked me if I could help him set up a similar environment on his Linux box (Ubuntu 12.04) under WINE. A friend of mine recently started a Java programming class.