Some mac users are reporting this error. What version can I build the applet so that Mac users can use it?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the cross-compilation options of
javacto compile the code compatible for a particular version of Java.Then use the
deployJava.jsscript (linked from the info. page on applets) to check the user has the minimum version.As others have mentioned (/alluded to), Macs might support a variety of Java versions. Perhaps a more relevant question is this.
What is the minimum Java version required to run the app.?
The cross-compilation options (especially using
-bootclasspath) should answer that question definitively.I did not mention the
-bootclasspathinitially since you might have been running a 1.7 SDK that now warns to use it when-source/-targetare specified. Using the option requires that you have anrt.jar(the core J2SE classes) of the relevant version to compile against. It checks that the classes, methods & attributes in the code actually exist in the supplied RT jar.So the upshot is that if you have a 1.6 (or latest) compiler and a JRE of the relevant target version (for the
rt.jaras well as run-time testing), it should be possible to compile code compatible for any version.