aspose file tools
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse 2.0.2 - changing default compiler Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "Eclipse 2.0.2 - changing default compiler" Watch "Eclipse 2.0.2 - changing default compiler" New topic
Author

Eclipse 2.0.2 - changing default compiler

John Fairbairn
Ranch Hand

Joined: May 30, 2002
Posts: 55
Hi,
I'm using eclipse 2.0.2. I like the fact that Eclipse shows compile errors in the Task pane. It's easy to navigate to the error. Where do you specify the compiler that Eclipse uses? I'd like to use the javac compiler that comes with the J2SE v1.4.1 I've downloaded which I could do by running an external tool like ant. But, I want the errors to be displayed in the task pane as is. If I can't change the compiler, are there any optimization options (like -o with the javac) that come with the Eclipse compiler that I can use.
Regards,
John
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11945
In this thread, Ilja implied that you couldn't change the compiler.


Author of Test Driven (Manning Publications, 2007) [Blog] [HowToAskQuestionsOnJavaRanch]
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
In Window -> Preferences -> Java -> Compiler -> Compliance and Classfiles, you can change which compiler the byte code should be compliant with. I'm not aware of any optimization options though.


Matthew Phillips
John Fairbairn
Ranch Hand

Joined: May 30, 2002
Posts: 55
Thanks for your answers. I went to Windows -> Preferences -> Java -> Compiler -> JDK Compliance to verify that the compiler was compliant with JDK 1.4.
I'm using ant to deploy my web app to JBoss and running ant as an external tool from Eclipse. I guess I'll have to add another ant task if I want the optimization options.
Regards,
John
 
 
subject: Eclipse 2.0.2 - changing default compiler
 
Threads others viewed
Ant in Eclipse
error: package junit.framework does not exist
Generic Inner class doubt
Need help building my first maven project in Eclipse
compile unchecked
developer file tools