1 2 Previous Next 28 Replies Latest reply on Jun 2, 2015 12:38 PM by aJohny

    Unable to find method getTempDirectory

    Habib Eslami

      Hi everyone,

      I use jdev


      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() {
              File tempdir = FileUtils.getTempDirectory(); //method getTempDirectory not found




        1 2 Previous Next