Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Applets
Expertise: Beginner
Sep 21, 1999



Application Security Testing: An Integral Part of DevOps


I am attempting to use createTempFile and it works fine with JDK 1.2.2, but IE 4 and 5, and Netscape give me the following error:
java.lang.NoSuchMethodError: java/io/File: method
createTempFile(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File; not
Why is this?

The latest version of Java supported by Microsoft Internet Explorer and Netscape Navigator/Communicator is JDK 1.1.x. File.createTempFile() is not present in JDK 1.1 and was only just added in JDK 1.2 as part of the Java 2 Platform Specification.

You will need to use a Java 2 Plugin if you want to use JDK 1.2 features in applets. However, you will run into problems with the security manager because applets are generally not allowed to access the local file system. You will have to familiarize yourself with the permissions APIs specific to each browser to bypass this restriction.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date