#931 javac Shows Error But Compile Button works fine

closed-wont-fix
nobody
None
5
2012-10-09
2012-10-09
vishal
No

Well the problem is very weird. Whenever I used manual way to compile a java program by using "javac". I get error Something like this.

javac Hello.java
Invalid top level statement

But However when I use the "Compile" Button it compiles successfully. Also when I compile using "javac" in my Command prompt. It works Fine without any error. So I am really confused What is Wrong.

Not a big problem. But a bug indeed. Would be great if you would provide me a way to fix it.

Thanks,
Vishal

Discussion

  • vishal

    vishal - 2012-10-09

    The program I used.

     
  • vishal

    vishal - 2012-10-09

    I am using the drjava-stable-20120818-r5686
    OS : Windows 7 Ultimate 64 Bit SP 1
    Java Platform (JDK) 7u7

     
  • Mathias Ricken

    Mathias Ricken - 2012-10-09
    • status: open --> closed-wont-fix
     
  • Mathias Ricken

    Mathias Ricken - 2012-10-09

    The interactions pane is not a fully functional Unix or DOS shell. It evaluates Java expressions and statements, and it provides a limited number of commands as syntactic sugar:

    - java <className> <arguments>
    - applet <className> <arguments>
    - run <className> <arguments>

    http://drjava.org/index.php?page=/docs/user/ch05.html

    javac is not a supported command.

     

Log in to post a comment.