Here is the step by step guide for executing the java programs using TextPad tool, but before going further first just understand what TextPad tool is? And how it assists you in writing your first Java program.
TextPad tool is a shareware text editor created by Helios Software and first discharged in 1992. TextPad is simple to utilize text editor that has support for automatic block indent, syntax highlighting, macros, file compare, regular expression search support, text sorting, and substantially more.
Although, you require the accompanying 2 software to make your first Java Program
The Java SE Development Kit
The JDK download contains indistinguishable things from the JRE download plus additional tools for development. If the JRE isn’t installed or is certainly not the latest version, it very well may be installed as a major aspect of the JDK installation process.
A Text Editor
In this tutorial, we’ll utilize TextPad for java programming. it is a basic proofreader included with the Windows Operating System. You can utilize a different text editor like NotePad++ and so forth.
How to use TextPad for java programming?
Install Java JDK record.
Go through some tutorials to learn easy Java program and its setup.
Install the TextPad tool
Step 1: Launch TextPad editor as demonstrated as follows:
Step 2: Write any sample Java program in the editor tool as demonstrated as follows:
Step 3: Select ‘TextPad tools compile java’ choice from the Tools Menu – > External Tools Sub Menu (or you can likewise use Ctrl+1 alternate way key):
Step 4: Ensure that the ‘Sava As’ dialog is shown. In ‘Save As’ dialog, guarantee that ‘Save as Type’ is chosen as All Files, type ‘Simple.java’ into the ‘File Name’ field and tap on ‘Save’ button as demonstrated as follows:
Step 5: Repeat Step 3 to compile the saved Java document
Step 6: Select ‘Run Java Application’ alternative from the Tools Menu – > External Tools Sub Menu (or you can likewise use Ctrl+2 easy shortcut key)
Step 7: Observe that the outcome of the above composed Java program is shown in the command window as demonstrated as follows:
TextPad gives Java software engineers with a lightweight answer for altering Java code and compile the code into.JAVA code records. The TextPad tool contains a compile feature that orders class documents and any reliance classes in your Java application. In the case that the compiler finds any punctuation mistakes, these errors show and the classes don’t compile.
Recent Comments