• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting javac options in Eclipse

 
Timothy Toe
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Timothy Toe
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
eclipse uses its own compiler, not javac.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic