I'm doing a Coursera course that require you to submit programming assignments.
The specification says the following.
We recommend that when testing your solution locally, you use the same compiler flags for compiling. This will increase the chances that your program behaves in the same way on your machine and on the testing machine (note that a buggy program may behave differently when compiled by different compilers, or even by the same compiler with different flags).
javac -encoding UTF-8
java -Xmx1024m
I read many answers online instructing how to set flags for C++/C code.
Go to Project > Properties > C/C++ Build > Settings > Cross G++ Compiler > Miscellaneous
But I couldn't find a similar option (eg - Java Build) in Java.
How do I add this flag when compiling the program.
I'm using Neon version of eclipse.