Tenho uma applet que compilei com o jdk5 e não funciona com o jre1.4, se compilar com o jsdk1.4 já funciona com jre >=1.4, alguém sabe o porque?!
Estou também a utilizar o RetroGuard 1.1.16 depois de compilar.
A applet não utiliza nenhum metodo que não exista desde a versão 1.4 do java, daí a minha dúvida.
Penso que devas usar a opção “-target” ao compilar tuas classes.
Por exemplo, -target 1.4
C> \jdk1.5.0\bin\javac -help
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are u
sed
-classpath <path> Specify where to find user class files
-cp <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system