Switch to desktop version  
Java 1.4 update - Printable Version

+- Ewon Technical Forum (https://techforum.ewon.biz)
+-- Forum: Development (https://techforum.ewon.biz/forum-50.html)
+--- Forum: Java (https://techforum.ewon.biz/forum-53.html)
+--- Thread: Java 1.4 update (/thread-871.html)



Java 1.4 update - tomT - 13-03-2019

Hi Simon,

Java 1.4 has been around since 2002. That is not only ancient in terms of various security issues, but also limiting in terms of library support.


It's pretty much impossible to find a library that still supports Java 1.4.

Why is the eWon version stuck at 1.4? Can you elaborate on any future plans to upgrade?

Thanks!


RE: Java 1.4 update - simon - 14-03-2019

Hi Tom,

Yes, I know.

This is actually the maximum version of the JVM we can run on our hardware platform.
We plan to support an up-to-date version of JVM on our next generation of Flexy.

Simon


RE: Java 1.4 update - tomT - 14-03-2019

next generation of Flexy? Can you elaborate on that?


RE: Java 1.4 update - simon - 21-03-2019

Not yet ;-)


RE: Java 1.4 update - tomT - 18-09-2019

Hi Simon,
any update on this?

Having Java 1.4 is really limiting for us, because there are virtually no 3rd party libraries that support it.

For example:
Want to use Azure Application Insights to send logs to? Needs Java 8
Want to use a JSON library? Needs Java 7
Want to use a modern HttpClient to make API calls? Needs Java 8
Want to hash something using SHA? Needs ...


RE: Java 1.4 update - simon - 20-09-2019

Tom,

No, no update for a new JVM version.

However we will release the firmware 14PR + a new JAVA ETK v 1.4.4 today.
This new ETK will support the MQTT getstatus() function (to know the status of your connection) and the string tags (Read/Write).

About your different examples :
Want to use Azure Application Insights to send logs to? Needs Java 8 --> Indeed, to connect Azure, you cannot use the Azure SDK but you need to use our JAVA MQTT client. See example on https://techforum.ewon.biz/thread-939.html
Want to use a JSON library? Needs Java 7 -->I have already used this JSON lib, which is compatible with 1.4 : https://developer.ewon.biz/content/parse-json-when-using-java-io-server
Want to use a modern HttpClient to make API calls? Needs Java 8 --> You have to use our proprietary RequestHTTPX fonction (in ScheduleActionManager class)
Want to hash something using SHA? Needs ... --> Indeed, this is missing but could be done natively with a proprietary function (just an idea).


RE: Java 1.4 update - ntnunk - 20-09-2019

Does anyone know where I can get a copy of Java ETK 1.4.4? All I see on the site at the moment is the 1.4.2 download, the same one that's been available for a while.

Simon: Do you know if the documentation was (finally) updated to include the MQTT client?

Tom: I don't know if it's helpful or not but I'm using this JSON library in my project. It's been working well.

Thanks,
Noel


RE: Java 1.4 update - simon - 24-09-2019

Noel,

Sorry, this one is not online yet.
This will be done tomorrow.
No, the MQTT doc is still not there unfortunately but you know how it works already ;-).

Simon


RE: Java 1.4 update - simon - 25-09-2019

It is online : https://developer.ewon.biz/content/java-0


RE: Java 1.4 update - ntnunk - 27-09-2019

Thanks Simon, I just found it.

Actually most of the MQTT documentation appears to exist now. There are entries for MqttClient and MqttMessage class that weren't there before. The docs aren't complete though, because the release notes say the MqttClient.getStatus() method was added but it isn't in the docs.

Still, it's an improvement!


RE: Java 1.4 update - hernfiry - 24-03-2020

I second the request about the getStatus() function not being in the documentation. It would be helpful to understand what the return values are for this function so that we can properly account for all situations.

Looks like 5 means that it is connected, but what about the other return values?


RE: Java 1.4 update - simon - 24-03-2020

Hi,

Indeed that is something missing :-(

Here are the values :

• mqtt_STATE_EXISTS (0),
• mqtt_STATE_HAS_SEM (1),
• mqtt_STATE_HAS_LOCK (2),
• mqtt_STATE_LOOP_STARTED (3),
• mqtt_STATE_DISCONNECTED (4),
• mqtt_STATE_CONNECTED (5)

Actually, only 4 and 5 are used, the rest is internal.


RE: Java 1.4 update - hernfiry - 24-03-2020

Thanks for this, simon!