Results 1 to 8 of 8

Thread: Dr.Java er

  1. #1
    sasaanali is offline Member
    Join Date
    Apr 2014
    Posts
    1
    Rep Power
    0

    Default Dr.Java er

    I typed this

    Java Code:
    public class Variables
    {
        public static void main(String[] arges)
        {
         int myInteger = 5;
         System.out.println(myInteger);
        }
    }
    Then I Compiled then Run and I got this messages
    Current document is out of sync with the Interactions Pane and should be recompiled!

    When I type in the Interaction (Java Variables) I get this msg
    Static Error: Undefined class 'Java'

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    4,417
    Rep Power
    7

    Default Re: Dr.Java er

    I can see nothing wrong with the program. The code must be in a file named "Variables.java." The error message you get is probably IDE specific. Unfortunately, I am unfamiliar with DrJava.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    18,080
    Rep Power
    26

    Default Re: Dr.Java er

    When I type in the Interaction (Java Variables) I get this msg
    Static Error: Undefined class 'Java'
    Looks like it thinks that a class name (Java) was entered.
    Try entering: Variables
    If you don't understand my response, don't ignore it, ask a question.

  4. #4
    PrinceT is offline Member
    Join Date
    Dec 2014
    Posts
    17
    Rep Power
    0

    Default Re: Dr.Java er

    Dr Java was detected by MBAE exploit protection & firewall blocked its access to internet.
    Working in NetBeans 8.
    Last edited by PrinceT; 12-31-2014 at 06:10 PM.

  5. #5
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,189
    Rep Power
    4

    Default Re: Dr.Java er

    Quote Originally Posted by PrinceT View Post
    Dr Java was detected by MBAE exploit protection & firewall blocked its access to internet.
    Working in NetBeans 8.
    Wait wut?
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  6. #6
    PrinceT is offline Member
    Join Date
    Dec 2014
    Posts
    17
    Rep Power
    0

    Default Re: Dr.Java er

    Quote Originally Posted by SurfMan View Post
    Wait wut?
    Sorry it might be complicated if you're not in security related things, MBAE is Maleware Bytes Anti Exploit. It detected a Java exploit to be executed on my machine when I tried Dr Java & Windows Firewall blocked its communication to internet as it was suspicious.

  7. #7
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    4,417
    Rep Power
    7

    Default Re: Dr.Java er

    Quote Originally Posted by PrinceT View Post
    Sorry it might be complicated if you're not in security related things, MBAE is Maleware Bytes Anti Exploit. It detected a Java exploit to be executed on my machine when I tried Dr Java & Windows Firewall blocked its communication to internet as it was suspicious.
    What does that have to do with a Java error reporting an undefined class?

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  8. #8
    PrinceT is offline Member
    Join Date
    Dec 2014
    Posts
    17
    Rep Power
    0

    Default Re: Dr.Java er

    Quote Originally Posted by jim829 View Post
    What does that have to do with a Java error reporting an undefined class?

    Regards,
    Jim
    It has nothing to do with that Sir!

Posting Permissions

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