- Wrong Subtraction
- In Search of an Easy Problem
- Anton and Letters
- Stones on the Table
- Sasha and Sticks
- Nearly Lucky Number
- Bus to Udayland
I use Far Manager to create, compile and run my java code.
Far Manager have a file associations feature to simplify you to compile and run source code (just press enter and it will automatically compile and run your program file).
Step by step to create file associations in Far Manager:
- Go to top bar (click your current directory at the top of your Far Manager)
- Choose
Commands
tab - Click
File associations
option - Create a new file associations by pressing an
Insert
button in your keyboard (if you use laptop, pressfn
+delete
button) - In the first line (one / several mask files), type
*.java
to select all java files in your directory to be compiled and run. - In the second line (description), you can leave it empty
- And in the third line (execute command -> used for enter), use the command below to compile and run java file.
javac -Werror -deprecation -d ../out !.java && java -cp ../out !
The command above will compile java file into .out
directory and execute java program with classpath from that directory.