![]() ![]() If you are still using Notepad for Java development it is recommended to switch to some advanced text editor like Notepad++ or use a development IDE. If an application is present in a directory which is not set in environment variable PATH then you can specify complete path of application. You can launch other applications using exec method, for example exec(“calc”) will launch calculator application. ![]() ![]() You can also specify a file while opening notepad such as exec(“notepad programming.txt”) where ‘programming.txt’ is the file you wish to open, if the file doesn’t exist in current working directory then a dialog box will be displayed to create file. in the menu bar, as shown in Figure 2-1, select NppExec in the pop-up window, and then Install. This java program import java.util.* Įxplanation of code: getRunTime method is used to get reference of current RunTime object, exec method can be used to execute commands. Open Notepad++, select Plugin > Plugin Admin. You may be developing java programs in it but you can also open it using your java code. How to open Notepad through java program: Notepad is a text editor which comes with Windows operating system, It is used for creating and editing text files. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |