How to save and run a Java file in PuTTY?

后端 未结 2 1664
离开以前
离开以前 2021-01-15 23:01

I m a complete newbie on AWS(Amazon Web Services) so this might be a basic question.

I created an EC2 instance on AWS. I have a windows machine so I\'m usin

2条回答
  •  清歌不尽
    2021-01-15 23:40

    I am using putty since almost 2 years..

    U should open the vi editor using "vi filename.java"

    Type the program and then say "Esc : wq" ignore the spaces.. And Esc is the Esc button on keyboard..

    Then compile your program using "javac filename.java"

    N then run using java filename.java

提交回复
热议问题