Multiple Java application using Adruino serial data

Is there a way to feed Adruino serial data to multiple Java programs?
Velleman's PCRU01 has a dll which deals with opening the port. An endless number of Java applications can load this dll through JNA and using pcru01 data feed. This is a one way communication were pcru01 send voltages reading to endless Java applications.

Is there a way to do the same with Adruino? Like for instance having a dll which will open the port and have methods like readAnalogInput() which will return the analog input in real time. This dll will open the port and endless number of applications can load it with no problems

Assuming all java apps are on a single computer, the functionality you're trying to achieve doesn't have anything to do with the Arduino - it's all about how you design the software on the computer that has to broadcast the serial data to the separate java apps.

I suggest having a "server app" that opens the Arduino USB port, accepts the serial data, sets up a localhost server, and serves out the serial data in json format. This is extremely scale-able and easy to implement in a language like Python

[/quote]

Breebrains:
endless number of applications can load it with no problems

How do you have more than one application on an Arduino? And by the way, it is "Arduino" and not "Adruino".

You mentioned DLL so perhaps you meant many applications on a PC, but then why drag Arduino into it? I am confused.

Multiple Java programs on pc which only needs to read Adruino serial.println strings

Breebrains:
Multiple Java programs on pc which only needs to read Adruino serial.println strings

Make one of the Java programs so it communicates with the Arduino and passes on the data to the others - perhaps by writing it to a shared text file.

...R

Sounds like a job for Node-Red. You can feed the serial port data to several nodes at the same time and depending on the complexity you can use a function node for each java program.

Node red for Arduino:

https://nodered.org/docs/faq/interacting-with-arduino

Robin2:
Make one of the Java programs so it communicates with the Arduino and passes on the data to the others - perhaps by writing it to a shared text file.

...R

Reply #1 has the same functionality with higher reliability

Power_Broker:
Reply #1 has the same functionality

Agreed - I had not absorbed it - sorry.

...R