| Author |
Setting javac options in Eclipse
|
Timothy Toe
Ranch Hand
Joined: Oct 19, 2002
Posts: 156
|
|
I would like to use the javac encoding option : javac -encoding utf8 NewMain.java How do I set this option in Eclipse so that it compiles with that option ? Thanks.
|
 |
David Ulicny
Ranch Hand
Joined: Aug 04, 2004
Posts: 724
|
|
Pretty strange, I tried to find these settings in Eclipse and nothing . Looks like you will need to compile the classes manually or with Ant/Maven build tools.
|
SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14568
|
|
|
I think that you should be able to set this this as a VM option on your JRE settings (Menu Window/Preferences-Java/Installed JREs-Edit->Default VM Arguments)
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
Timothy Toe
Ranch Hand
Joined: Oct 19, 2002
Posts: 156
|
|
Hi all, My question is not limited to the -encoding javac option but other javac options as well. (Although the encoding option is the one I want to use currently.) Holloway, is what you wrote...about runtime (JRE) as oppose to compile time (javac) ? My question is for javac. Thanks all for time and effort.
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14568
|
|
|
It's for places where Eclipse internally invokes "javac", not "java". You'd set Eclipse's own VM args on the eclipse command line, and for debugging, uou can set up whatever options you want on the debug profile you create.
|
 |
Mr. C Lamont Gilbert
Ranch Hand
Joined: Oct 05, 2001
Posts: 1170
|
|
|
eclipse uses its own compiler, not javac.
|
 |
 |
|
|
subject: Setting javac options in Eclipse
|
|
|