I'm trying to use gcj
to generate a stand alone executable. It works fine with java 1.5 that comes with gcj-4.8 when installed on Ubuntu 14.04. However if I want to use a later version of Java (such as 1.8) gcj doesn't understand the latest language libraries. I tried using -I
, --classpath
, and --bootclasspath
to force it to use the 1.8 jdk (which is installed).
Any suggestions, or alternatives, to compile Java to a native executable?