Menu

Compiling Java

2008-02-06
2012-11-13
  • Nobody/Anonymous

    Hi there,

    I know it is possible to compile Java code from within the editor..

    I use Run.. (F5) > cmd /c javac "$(FULL_CURRENT_PATH)" && pause

    It works fine (it compiles) except for one thing: when there is an error in my source file, the cmd will close directly. So I can't see the compilers output about the error (error message)

    I know I can just use: Run.. (F5) > cmd /k javac "$(FULL_CURRENT_PATH)", but then I have to close the cmd manualy everytime I have compiled something.

    Has anyone got the solution?

    Thanks

     
    • Nobody/Anonymous

      Notepad++ has been wonderful for my HTML and PHP editing needs, but I don't see Notepadd++ being effective for use as a Java IDE. If your looking for a functional IDE for Java programming, I'd recommend using Netbeans or Eclipse.

       
      • Nobody/Anonymous

        That didn't answer the question...  I have tried other Java IDE's and Notepad++ is just one step away from being the ideal IDE for any language, it just needs a plugin or change in code to allow piping programs through compilers to be easier to set up.  Although there are tools in the program, there is no set tutorial or method to create the same external tool caller that Textpad has.  Anyone who is more advanced in this field needs to fix this problem please.

         
        • Nobody/Anonymous

          Are you sure there is no such plugin? Please look closer. Look in the Plugins menu. (hint: Plugins -> NppExec -> Help/About..., and, PLEASE, don't be shamed to read the notes in the dialog you'll see)

           
        • Nobody/Anonymous

          Yep. Me too - I want the Notepad++, but with Textpad's ctrl+1 (compile) and ctrl+2 (run) functionality. The perfect combo of them both.

          And an IDE is just NOT the answer. I don't want an IDE. I want a text editor. One that folds, like Notepad++, but compiles like Textpad.

           
    • Nobody/Anonymous

      Yeah use:

      (F5) > cmd /c javac "$(FULL_CURRENT_PATH)" || pause

      instead.

      The || means only execute pause when javac fails.. which is just what you want.
      Take a look here: http://technet.microsoft.com/en-us/library/bb490954.aspx under the "Using multiple commands and conditional processing symbols" section.

      -Steven R / TOAST

       
    • Nobody/Anonymous

      Thanks! It works perfectly, just what i needed