Results 1 to 4 of 4
  1. #1
    ashhush is offline Member
    Join Date
    Aug 2011
    Posts
    3
    Rep Power
    0

    Default java.io does `nt have File class

    Hi,

    i am using netbeans 7.0, java 1.6.26. I am trying to use File class for java Sun Spot programming, but I cannot see File class when I click dot (.) after import java.io , I want to read a file through it.
    Help in this regard is appreciated in advance.

    Kind Regards
    ashhush

  2. #2
    bnson is offline Artemis
    Join Date
    Jul 2011
    Posts
    26
    Rep Power
    0

    Default

    You check setting jdk on netbeans,

    Tool -> Java Platform

    If the JDK not exist, you can add it's.

  3. #3
    ashhush is offline Member
    Join Date
    Aug 2011
    Posts
    3
    Rep Power
    0

    Default

    I have j2SE platform,
    platform name jdk 1.7 (Default)
    and platform folder C:\Program Files\Java\jdk1.7.0

    which seems to be fine.

    Any comments

    Kind Regards
    Ash

  4. #4
    Dark-Redd is offline Member
    Join Date
    Oct 2011
    Posts
    19
    Rep Power
    0

    Default Re: java.io does `nt have File class

    Hi,

    Do not wait for auto complete from netbeans, sometimes it hangs. Just type it in full, i.e.
    Java Code:
    import java.io.File;
    that should work if your jdk is correct.

    regards
    Dark-Redd

Similar Threads

  1. Replies: 1
    Last Post: 01-25-2011, 05:38 AM
  2. cannot run the class file using the java command
    By kulangotski in forum New To Java
    Replies: 3
    Last Post: 01-23-2011, 05:40 AM
  3. need help.. java class file...
    By Madz in forum New To Java
    Replies: 3
    Last Post: 11-21-2009, 03:42 AM
  4. converting java class file to exe file
    By satheeshtech in forum Advanced Java
    Replies: 5
    Last Post: 07-18-2009, 11:47 PM
  5. .class file to .java file
    By makpandian in forum New To Java
    Replies: 1
    Last Post: 02-20-2009, 06:46 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •