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: methodcreateTempFile(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File; notfound.

Why is this?

The latest version of Java supported by Microsoft Internet Explorerand Netscape Navigator/Communicator is JDK 1.1.x.File.createTempFile() is not present in JDK 1.1 and was only justadded 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 featuresin applets. However, you will run into problems with the securitymanager because applets are generally not allowed to access the localfile system. You will have to familiarize yourself with thepermissions APIs specific to each browser to bypass this restriction.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


The Latest

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS