Ewon TechForum
Providing technical solutions to technical requests


Java 1.4 update
tomT Offline
Junior Member
#1
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!
Reply

simon Offline
eWON Support
#2
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
Reply

tomT Offline
Junior Member
#3
next generation of Flexy? Can you elaborate on that? Smile
Reply

simon Offline
eWON Support
#4
Not yet ;-)
Reply

tomT Offline
Junior Member
#5
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 ...
Reply

simon Offline
eWON Support
#6
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...-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).
Reply

ntnunk Offline
Junior Member
#7
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
Reply

simon Offline
eWON Support
#8
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
Reply

simon Offline
eWON Support
#9
It is online : https://developer.ewon.biz/content/java-0
Reply

ntnunk Offline
Junior Member
#10
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!
Reply

hernfiry Offline
Junior Member
#11
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?
Reply

simon Offline
eWON Support
#12
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.
Reply

hernfiry Offline
Junior Member
#13
Thanks for this, simon!
Reply



Possibly Related Threads…
04-04-2020, 11:51 AM
Last Post: LewisH304
04-04-2020, 11:45 AM
Last Post: LewisH304
13-03-2020, 01:12 PM
Last Post: simon
05-03-2020, 02:11 PM
Last Post: simon
03-03-2020, 11:35 PM
Last Post: simon
23-12-2019, 06:03 PM
Last Post: simon
  JAVA Azure IOTHub Connector Started by simon
1 Replies - 1.003 Views
11-12-2019, 12:19 PM
Last Post: simon
10-12-2019, 05:50 AM
Last Post: Kanduri Shouri
  Download Java ETK 1.4.3 Started by woodyjon
2 Replies - 396 Views
14-11-2019, 10:13 AM
Last Post: woodyjon
30-10-2019, 07:52 PM
Last Post: IceControls



Users browsing this thread:
1 Guest(s)



Theme © Ewon 2019 - Forum software by © MyBB - Cookie policy