Setting up TextPad for Java

The following instructions will help you to set up Java in Textpad

OS used: Windows 7 (64 bit)

1. Download JDK from Oracle's website
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
2.  I have downloaded JDK 7 and install it on your computer
3. Once the JDK installation is over, verify the folder in which JDK has been installed. In my case it was C:\Program Files\Java\jdk1.7.0_75

Now set the system variables PATH and JAVA_HOME
1. Click on the windows "Start" button and select "Control Panel" on the right column.
2. Select "Performance and Maintenance", and "System".
3. In the pop-up window, select the "Advanced" tab, and then click on "Environment Variables" button.

Under System variable, create a 'JAVA_HOME' by clicking on the New button and type in the value as C:\Program Files\Java\jdk1.7.0_75 and then click 'OK' button













Now add the %JAVA_HOME%\bin;  to the beginning of the Path system variable














To verify the path setting, go to command prompt and type in "java -version" it will display the installed  version of java









Install TextPad

I have downloaded the version 7.4.0 that runs on 64 bit.

1. Start TextPad.
2. Under 'Configure' at the top menu, select 'Preferences'.
3. In the pop-up menu, click on 'Tools'.
4. On the right hand side click on "Add" button and then click on 'Java SDK Commands' as shown below.







 5. That would populate the following options in Tools, now click on 'Apply' button.


















6. Now expand  'Tools'.
7. In the sub-menu, select 'Compile Java'.
8. In 'Parameters' on the right pane, add in front of $File " -classpath . " so that the whole thing in the box looks like "-classpath . $File". Be sure to put a space before and after .
9. Click OK.
10. Now if you go to Tools --> External Tools, you can see the compile and run options.








Hope this helps :)

No comments:

 Python Basics How to check the version of Python interpreter mac terminal

Popular in last 30 days