What is jNPad?
jNPad is a Simple Text Editor written in Java. It is designed to be easy to use, highly customizable and flexible.

  • Drag and Drop
  • Multi-Document
  • Multi-View
  • Multi-Mode (Default, Basic, Minimalist, Distraction Free)
  • Multi-Keymap
  • Auto indent, and syntax highlighting
  • Support of DOS/Windows, Unix and Mac newline formats
  • Auto codeset detection (UTF-8 and some codesets)
  • Auto-completion
  • Bookmarking
  • Highly configurable and customizable

System requirements
  • Minimum JRE: 1.6.0

jNPad on an eComStation machine with Open JDK

Installing jNPad
Download jnpad-0.3.zip. Make a directory/map with the name "jnpad". Open the zip file and go into the directory "jnpad-0.3". Copy the subdirectories "props", "doc" and "icons" and the files "readme.txt", "build.xml" and "jnpad-0.3.jar" to the new directory "jnpad". That's all! An other way is to copy the directory "jnpad-0.3", rename this directory and delete all files in the root of the directory which are not named in the list above. In this directory are files for other OS systems, but which can be started in OS/2 with in the end an error.

The used cmd file
jNPad text editor works with Open JDK in OS/2-eCS. I have a jnpad.cmd file with the following contents;
@echo off
set BEGINLIBPATH=[drive: java]\JAVA160ga5\bin
set path=[drive: java]\JAVA160ga5\bin
[drive: jnpad]
cd [drive: jnpad]\jnpad
java -Duser.home=[drive: jnpad]\jnpad -Xms64m -Xmx128m -jar jnpad-0.3.jar 2>jnpad-bugs.txt 
I use 2 separate folders (directories), one for Java and one for jNPad with the files created by this program. The references used in the cmd file;

  • [drive: java] = drive with Java
  • [drive: jnpad] = drive with jNPad

should be replaced with real drive letters. Save the file and name it "jnpad.cmd" or use the file from the distribution. This file is copied to the "jnpad" folder (directory). Furthermore, different paths?, adjust according to your needs. Create a new program object. Specify the path and file name: "[drive: jnpad]\jnpad\jnpad.cmd". In the tabpage Session check the boxes "OS/2 window", "Running as an icon" and "Close Window to end program". In the tabpage General you can enter the name "jNPad".

Parameters / options explained
  • The statement "-Duser.home=[drive: jnpad]\jnpad" will ensure that jnpad will save all necessary files in own directory instead of saving them in the home directory.
  • The "-Xms64m" specify the initial size of the memory allocation pool.
  • The specification "-Xmx128m" indicates the maximum limit of the used memory.
  • The addition "2>jnpad-bugs.txt" ensures that errors are saved in the file "jnpad-bugs.txt". The 2 in "2>" is not a typo!

In the file you can find the above command files (all drive letters are on set to C:) and an OS/2 jnpad icon: jnpad-ecs.zip.

revision June 17, 2017