Wild guess ... If you are using SQLLite or any JDBC provider that embeds their own DLL's/.so's in the jar and exports to $TMP - That might be an issue of $TMP is set as noexec.
When the .so/.dll can't load ... It may manifest as a classnotfound since the class didn't initialize we can cause a chain reaction to other classes not loading.