Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable to find method getTempDirectory

Habib EslamiJun 2 2015 — edited Jun 2 2015

Hi everyone,

I use jdev 11.1.1.7.0

my question was discussed here: Unable to find methods getFile and getTempDirectory but I'am really confused about it.

I'm working with images through this useful tutorial: https://tompeez.wordpress.com/2014/12/13/handling-imagesfiles-in-adf-part-5/#comment-3563

I added the latest version of apache.commons.IO(commons-io-2.4.jar) to my project from Oracle Distilled (first I added the jar file to the jdeveloper and then added it to my project),but in my java class getTempDirectory() method doesn't recognized.

I have just added the library to the project, have created a simple java class and  I've imported org.apache.commons.io.FileUtils, also when I open FileUtils class by clicking on it in below class(Class1), I don't see getTempDirectory() method but if I open it directly from the jar file I can see the method. I don't know what's wrong and how I can solve it.

package com.asr.view;

import java.io.File;

import org.apache.commons.io.FileUtils;

public class Class1 {

    public Class1() {

        super();

        File tempdir = FileUtils.getTempDirectory(); //method getTempDirectory not found

    }

}

Regards

Habib

This post has been answered by Timo Hahn on Jun 2 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 30 2015
Added on Jun 2 2015
28 comments
4,210 views