facebook

How to set javac -encoding UTF-8

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #287981 Reply

    kulkarni_ash
    Member

    Hi
    How do i set java compile option
    javac -encoding UTF-8 for compiling my java classes

    Ash

    #288012 Reply

    Loyal Water
    Member

    You want to set this in the IDE ? You can’t set this for the JDT compiler but if your running the javac Ant task and want that, you can set the javac task as an argument for encoding.

    #288013 Reply

    kulkarni_ash
    Member

    Hi
    Normally when i save java source code in ecplise it compiles this java source into a class file, is it possible to change this compiler to compile with -encoding UTF-8,
    I can use ANT and add -encoding to javac command, but what happens is every time i change some java source i wil have to run this ant command, as normally ecplise does not compile with UTF-8 as encoding

    Ashish

    #288014 Reply

    Loyal Water
    Member

    Normally when i save java source code in ecplise it compiles this java source into a class file, is it possible to change this compiler to compile with -encoding UTF-8,

    Im sorry thats not possible.

    #288044 Reply

    kulkarni_ash
    Member

    Hi
    Is it possible to disable compilation option from eclipse, so even if i save a java file, it wont be compiled and then i would use ant to compile my programs using -encoding=UTF-8 option

    #288050 Reply

    Loyal Water
    Member

    You can go to Project > Build Automatically and make sure the Build Automatically is unchecked.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: How to set javac -encoding UTF-8

You must be logged in to post in the forum log in