Results 1 to 2 of 2
  1. #1
    imorio is offline Senior Member
    Join Date
    Aug 2010
    Posts
    127
    Rep Power
    0

    Default deleting a class

    How do you delete a class in eclipse? I want to create a "scanner" class (yes, I know the convention is an upercase letter) to act as a wrapper for the Scanner class of the standard library. However I accedently used an upercase S. This conflicts with the Scanner class of the standard library. so it gives an error. I tried creating a scanner class, but it won't allow 2 custom classes in the same package only differing in upper- and lower-case. So I tried deleting the Scanner class I made by deleting the .class and .java files. But it still somehow finds the .java file and won't allow me to create a scanner class. What do I have to do to get rid of the last traces of the Scanner class?

    ps: yes I tried emptying the bin.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,361
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by imorio View Post
    How do you delete a class in eclipse? I want to create a "scanner" class (yes, I know the convention is an upercase letter) to act as a wrapper for the Scanner class of the standard library. However I accedently used an upercase S. This conflicts with the Scanner class of the standard library. so it gives an error. I tried creating a scanner class, but it won't allow 2 custom classes in the same package only differing in upper- and lower-case. So I tried deleting the Scanner class I made by deleting the .class and .java files. But it still somehow finds the .java file and won't allow me to create a scanner class. What do I have to do to get rid of the last traces of the Scanner class?

    ps: yes I tried emptying the bin.
    Right click on the source of your class and select the 'delete' option (with a red cross icon).

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. File Not Deleting
    By Moncleared in forum New To Java
    Replies: 7
    Last Post: 02-21-2010, 08:28 PM
  2. deleting objects? how to free a class (JVM)
    By Sungron in forum New To Java
    Replies: 7
    Last Post: 02-02-2010, 02:07 PM
  3. Help deleting a file
    By 3speed in forum New To Java
    Replies: 4
    Last Post: 11-01-2008, 05:27 AM
  4. Deleting from an object
    By vitaminz in forum New To Java
    Replies: 7
    Last Post: 08-10-2008, 03:56 AM
  5. Deleting Contractions
    By theonly in forum New To Java
    Replies: 3
    Last Post: 04-27-2008, 07:44 PM

Posting Permissions

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