eWON jvmrun: Configuring Multiple Java Applications

Karen Mitchell1 min read
HMI / SCADAOther ManufacturerTechnical Reference
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Confirmed jvmrun Constraint

An eWON device can run only one Java program through jvmrun. Adding two Java launch lines does not create two independent processes: the device executes only the first line.

Why the Two-Line Configuration Fails

The attempted configuration defines separate applications with the same heap-size setting but different classpaths:

-heapsize 1M -classpath /usr/FilesManagement.jar -emain MainClass
-heapsize 1M -classpath /usr/ModbusRTU.jar -emain MainClass

This arrangement is unsupported. The limitation also applies when one component acts as an IOServer and the other is an application; that role separation does not allow both Java programs to run independently.

Supported Resolution

Merge the two add-ons into one add-on and launch that single program from jvmrun. The combined program must incorporate both the file-management and Modbus RTU functions under one entry point.

  1. Combine both add-ons into one Java program.
  2. Define one entry point that initializes both required functions.
  3. Configure jvmrun with only the combined program's launch command.
  4. Restart or launch the Java program, then verify that both functions operate from the single running add-on.

FAQ

Can eWON jvmrun start two Java applications?

No. eWON supports only one Java program through jvmrun, so only the first of two launch lines executes.

Can an IOServer and a Java application run separately on eWON?

No. Making one program an IOServer and the other an application does not bypass the single-program limitation.

How do I run FilesManagement.jar and ModbusRTU.jar together?

Merge both add-ons into one Java program with one entry point, configure a single jvmrun launch command, and verify that the combined program provides both functions.

Back to blog