Search

Dark theme | Light theme

March 26, 2008

Use Janel to create Windows executable launcher for Java apps

Starting a Java application as executable in Windows, without the use of .bat or .cmd files, can now easily be done using Janel. With Janel we can launch Java applications with an .exe file, just like any other application in Windows. I use JEdit a lot and I always wanted to start it with something like jedit.exe. And as it turned out it only took my one minute of configuring Janel to get my jedit.exe.

We need to follow the following steps:

  • First we must download Janel and extract the downloaded file to a directory.
  • Then we must copy the files JanelWindows.exe, JanelWindows.lap and msvcr71.dll to the JEdit directory.
  • We rename the files JanelWindows.exe and JanelWindows.lap to jedit.exe and jedit.lap.
  • Now we only have to open jedit.lap in a text editor and set the properties:
    • -Djava.class.path to the jedit.jar file,
    • janel.main.class to org.gjt.sp.jedit.jEdit
    • and janel.main.argument to -reuseview.
We can now use jedit.exe to run JEdit.