Java program size

@tpreder
Hi Todd,

Doug reached out to me forwarding the following request:

But I am wondering about practical size of the JAR file that the Flexy can work with.
For example: I added a Java library that I was thinking about using and it ballooned the resulting JAR file to 2.8MB.

Is 2.8MB too much? Or what is the max recommended size?

The theoretical limit of the Java Jar would be the size of the USR directory typically 20MB. A 20MB jar file would be a really big and you would most likely start running into other issues.

I don’t have a recommended size but a few megabytes should work fine. My colleague mentioned seeing one as big a 5MB. It really comes down to how the program is written and how much memory it uses.

Deryck

Thanks, that info helps. Another question my customer asked:

It appears that the Flexy supports Java 1.4, which is a really old version (like 2002).
The issue with that is that many of the libraries out there do not support such an old version.
Am I missing something? Or are the plans to upgrade the JDK on the Flexy?

Hi @tpreder ,

Sorry for the delay. Unfortunately, Java 1.4 is most recent version available for the Flexy. I am not aware of any planned updated to the JDK supported at this time.

Deryck