Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. How To Kick Start a Simpleclient.java

How to kick start a simpleclient.java

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By wseang , 22 October, 2019
Forums
Gurux DLMS for Java

I have downloaded gurux.dlms.client and uploaded to my Eclipse, however when i try to run the sampleclient.java, it seem not work very well.

Refer to the command line,
if I run GuruxDlmsSample -r SN -c 16 -s 1 -sp COM3 -i
error: Invalid reference option

Found SN should be small cap, then i change to
GuruxDlmsSample -r sn -c 16 -s 1 -sp COM3 -i
error: "For input string: "COM3".

Then i found the COM3 should use option -S, so I change to
GuruxDlmsSample -r sn -c 16 -s 1 -S COM3 -i
error: Failed to load file. win64/gurux.serial.javajava.lang.NullPointerException

Could you please guide me what is the correct command & parameter to run this sampleclient.java ?

Profile picture for user Kurumi

Kurumi

6 years 7 months ago

Hi,

Hi,

I believe that you have not installed Gurux.serial.java and that is causing the issue.
I asked to update help of client example to correct.

In general, command line parameters depends on what meter you try to read.
I believe that you don't need to use -sn. Are you using optical probe o direct serial port?
If you are not using optical probe, you can also skip -i parameter.

BR,

Mikko

wseang

6 years 7 months ago

I did install Gurux.serial

I did install Gurux.serial.java, beside that, I also install Gurux.net, Gurux.terminal, Gurux.sms & Gurux.common.

Moreover, from Eclipse, I did not see any command error or syntax error.

However, the getParameters(), i did amend arrayList to List.

After ensure no errors, then only I export it to Jar file, and I run from command line using java -jar xxxxx

Is it a must to import as a maven project ? (Cause i import it as Java Project as current)

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin