Mule 4.4 Java Version

0 views
Skip to first unread message

Jules Altier

unread,
Aug 5, 2024, 3:59:39 AM8/5/24
to nesovedis
Asa developer in need of several Java jdk's (or at least the latest LTS), I need a different approach. Firstly, you need to know that Anystudio only works with jdk8 (pre-installed), or jdk11 (configurable). You can forget about the rest. Secondly, being a derivative from Eclipse, your JAVA_HOME needs to point towards the correct jdk or you'll get the afformentioned error where the 61 means the user had jdk17 configured.

This should work when your JAVA_HOME points to the correct jdk. If, like me, you need to switch to other versions, it can be bothersome to constantly change it manually. For this, I created .bat-files which I execute before starting up Anystudio. Make sure that your computer's path references JAVA_HOME instead of a hardcoded path. Otherwise the steps below won't be enough.


Keep in mind, you'll need 2 of those .bat-files. One for downgrading your JAVA_HOME (execute before opening Anystudio) and one for restoring it (execute it after you're done working in Anystudio). Both system settings and commandlines don't show a changed JAVA_HOME path directly. close/reopen them to see that the changes have been applied.


If you are using Mule standalone, either use a compatible Java version and set it first in the operating system PATH environment variable, or alternatively configure the full path of the Java executable in the configuration file wrapper.conf (example: wrapper.java.command=/bin/java).


Note: some posts advise to change mule runtime version to 4.2.x, but that will break some functionalities, like database connector. In my case the mule services become very unstable when some features like that were added to the project.


The mule in question is MuleSoft, a recent Tomcat convert that has altered the way Tomcat is started by the Linux distos. Tomcat will now no longer be invoked via JSVC but with catalina.sh script instead.


Other changes are designed to cut down the amount of package fiddling required by users. Authbind is now the standard method for binding Tomcat to ports lower than 1024 so Tomcat can be run entirely as an unprivileged user. The security manager will default to the disabled state, and reliable restarts are now implemented in the init script.


MuleSoft is a recent convert to the cause of Tomcat. The company started life in 2006 as MuleSource and sprang out of an open-source Enterprise Service Bus (ESB) project stated by MuleSoft's chief technology officer Ross Mason in 2003.


MuleSoft's Apache conversion started in September 2009, when the company changed its name from MuleSource and released its MuleSoft Tcat Server beta. The server spiced Tomcat with features for enterprise customers in deployment, configuration management, and diagnostics. MuleSoft followed that in February this year with Tomcat for the Amazon and GoGrid clouds, called Cloudcat - a supported virtual image with a management console. Price starts at $0.30 per hour.


The move into Tomcat follows SpringSource, the company founded on the Spring Framework that released its Tomcat-based SpringSource dm server in 2008 and also added management and development features for businesses along with paid support.

3a8082e126
Reply all
Reply to author
Forward
0 new messages