Results 1 to 4 of 4
  1. #1
    awney is offline Member
    Join Date
    Nov 2012
    Posts
    2
    Rep Power
    0

    Default HELP!! Major Java Malfunction

    Right, so, I'm not even sure exactly what I did.

    i use eclipse indigo.

    I was doing a simple switch statement but was using a string rather than a char which showed up an error, that's fine, i'm not bothered about that, but i STUPIDLY clicked on the quick fix (without even really reading it) and now all my code is coming up with error after error.
    it said something about 1.7 so i went:

    window -> preferences -> Java -> compiler

    and compiler compliance level is set at 1.6 and default compliance settings are being used., but still there are errors in every class.

    most errors are "cannot be resolved to a type"

    anybody know what i did? or better yet how to undo it??

    I tried cleaning all projects - no joy.

    and the tab at:
    project --> Properties --> Java Build Path --> Libraries tab
    is blank.

    p.s. i'm a total noob with java

    somebody please help!

  2. #2
    eRaaaa is offline Senior Member
    Join Date
    Oct 2010
    Location
    Germany
    Posts
    787
    Rep Power
    5

    Default Re: HELP!! Major Java Malfunction

    Quote Originally Posted by awney View Post
    and the tab at:
    project --> Properties --> Java Build Path --> Libraries tab
    is blank.
    blank is not good. try to click "Add library..." -> "JRE System Library" -> Workspace_default (is that 1.6 or 1.7?) or use the alternative JRE -> Finish

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: HELP!! Major Java Malfunction

    Moved from New to Java.

    Please go through the Forum Rules -- particularly the third paragraph.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    awney is offline Member
    Join Date
    Nov 2012
    Posts
    2
    Rep Power
    0

    Default Re: HELP!! Major Java Malfunction

    Quote Originally Posted by eRaaaa View Post
    try to click "Add library..." -> "JRE System Library" -> Workspace_default (is that 1.6 or 1.7?) or use the alternative JRE -> Finish
    you are a legend, thank you ... that has fixed the problem for me :)

Similar Threads

  1. Scanner malfunction - Reading a file
    By Noceo in forum New To Java
    Replies: 10
    Last Post: 10-30-2012, 06:49 PM
  2. Replies: 2
    Last Post: 06-25-2012, 08:01 PM
  3. Replies: 0
    Last Post: 05-08-2012, 07:13 PM
  4. Need major help!
    By noncon in forum New To Java
    Replies: 3
    Last Post: 02-01-2012, 02:04 PM
  5. Major number
    By lobodelbosque in forum New To Java
    Replies: 1
    Last Post: 11-27-2009, 05:55 AM

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
  •