Thanks to Rick Hofstede cubeSQL can now be natively accessed from any Java app. Java library is available in the download section.