RText is a programmer's text editor written in Java. It has all the features you would expect:
RText uses Gradle to build. To compile, run all unit tests, create the jar, and run the app:
./gradlew build installDist
java -jar build/install/rtext/RText.jar
Note that RText requires Java 25 or later to build.
To create the Windows version of the application, run the generateWindowsStarterExe
task in addition to installDist. This ensures a trimmed-down JRE is generated,
and a starter RText.exe file is added into build/install/rtext:
./gradlew clean build installDist generateWindowsStarterExe
The generateWindowsStarterExe task uses a JDK 21 install and launch4j as defined in
gradle.properties.
Note this gradle task runs jlink directly and uses launch4j rather than using
jpackage since our app needs loose files and jpackage seems to require all files
being wrapped into the generated .exe. This is different than our macOS app task
(discussed below) which uses jpackage.
After building the installable image, you can create the win32 installer by
running the MakeRTextInstaller.nsi NSIS
script at the root of the project.
To build the .app bundle intobuild/install/RText-<version>.dmg:
./gradlew clean build generateMacApp
The generated RText-<version>.dmg can be used to install RText.app to the Applications
folder. Note that this app currently isn't signed, so Gatekeeper will likely prevent
you from installing. To get around this you'll need to tweak your security policy to
allow installing of apps from outside the App Store.
$ claude mcp add RText \
-- python -m otcore.mcp_server <graph>