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 9 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 9 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

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Possible memory leak in file dlms.c, getCompactArrayItem(), getCompactArrayItem2()
  • Official Gurux.DLMS.Client.Example.Net fails during High GMAC secure association (Invalid PDU), while Gurux Director connects successfully
  • gurux_dlms.GXDateTime.GXDateTime object Error in Python
  • T_APPL_DATA_LN_N1 subtest 3 fails on an LN-only server regardless of the response to a non-existing-object GET
  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
More

Who's new

  • ukTdwoUGQDQQrJ…
  • BZkgDZWFTOQDQbqrgeb
  • iPhNSvwRtQuMxJ…
  • JtzmnnGrXuHStIifO
  • AFVCepooxRHqhZHtRg
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin