×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

INDI for Java still alive?

  • Posts: 9
  • Thank you received: 2
Hi,

my name is Andreas and I am new to this forum.

A while ago I have built my own mount controller based on a RaspberryPi and an Arduino Due.
I have already written an ASCOM driver for it and it works fine. Now I would like to write an INDI driver for my controller.
As I am an experienced Java developer I would like to do that in Java. So I looked at the INDI for Java website and the corresponding Sourceforge repository. It looks as if there has not been much activity recently. Has this project come to halt? Does it still make sense to use it or would it be better to use the standard C/C++ approach?

I have downloaded the distribution 1.5 and tried to start the server (via the i4j-server-interactive script) but when I tried to connect to it from CdC I get the following message:

Debugger failed to attach: handshake failed - received ><getProperties< - expected >JDWP-Handshake<

Any input would be appreciated.

Best regards
Andreas
6 years 9 months ago #17229

Please Log in or Create an account to join the conversation.

Please use the official INDI library (C++ based) to develop any new drivers.
6 years 9 months ago #17231

Please Log in or Create an account to join the conversation.

  • Posts: 9
  • Thank you received: 2
Hi Jasem,

does your answer mean that INDI for Java is dead?
That would be a shame, because it seems perfect for a platform independent approach.

Best regards
Andreas
6 years 9 months ago #17233

Please Log in or Create an account to join the conversation.

  • Posts: 314
  • Thank you received: 95

Replied by Oleg on topic INDI for Java still alive?

Hi Andreas,
is you the author of Regime?
www.andreasroerig.de/
You can try my open project Astronomy Linux
6 years 9 months ago #17234

Please Log in or Create an account to join the conversation.

  • Posts: 9
  • Thank you received: 2
Hi Oleg,

Yes I am the author of Regim.

Regards
Andreas
6 years 9 months ago #17235

Please Log in or Create an account to join the conversation.


I can't comment on the status of INDI for Java, you have to contact its author. If you need any help in the official implementation, let me know.
6 years 9 months ago #17236

Please Log in or Create an account to join the conversation.

  • Posts: 155
  • Thank you received: 10
I fully agree, I believe that JAVA and Python integrations into KStars are important and should be supported. If there is a bug, it should be repaired.
6 years 9 months ago #17254

Please Log in or Create an account to join the conversation.

  • Posts: 9
  • Thank you received: 2
Hi,

ok, I was playing a bit around and it seems that the issue is related to the documentation.
I am now able to start an INDI server and load the telescope simulation driver with the following command from within the lib directory:
java -jar i4j-server-main-1.50-SNAPSHOT.jar -ji4j-driver-telescope-1.50-SNAPSHOT.jar

After that I was able to connect to the Server from within CdC and perform goto actions.
That is good news so now I can start to write my driver in Java.

Best regards
Andreas
The following user(s) said Thank You: Dan Holler
6 years 9 months ago #17258

Please Log in or Create an account to join the conversation.

  • Posts: 1957
  • Thank you received: 420
I started looking into this as well but I keep on getting the same exception and I don't know how to solve this despite my considerable Java knowledge (if I may say so myself). I am using Java 8 u151 and when I execute exactly that same command I get
i4j-all-in-one-1.50-SNAPSHOT/lib $> java -jar i4j-server-main-1.50-SNAPSHOT.jar -ji4j-driver-telescope-1.50-SNAPSHOT.jar
INDI for Java Basic Server initializing...
14:45:09.741 [main] INFO  o.i.i4j.server.main.INDIBasicServer - command print: INDI for Java Basic Server initializing...
Exception in thread "main" java.lang.IllegalStateException: no server access available
	at org.indilib.i4j.server.api.INDIServerAccessLookup.indiServerAccess(INDIServerAccessLookup.java:66)
	at org.indilib.i4j.server.main.INDIBasicServer.<init>(INDIBasicServer.java:86)
	at org.indilib.i4j.server.main.INDIBasicServer.main(INDIBasicServer.java:121)

Any idea what may be causing this?
6 years 1 month ago #22810

Please Log in or Create an account to join the conversation.

  • Posts: 1957
  • Thank you received: 420
Never mind, I contacted the i4j developers and asked for help with this.
6 years 1 month ago #22822

Please Log in or Create an account to join the conversation.

Time to create page: 0.620 seconds