wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes How to use other compiler with eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to use other compiler with eclipse" Watch "How to use other compiler with eclipse" New topic
Author

How to use other compiler with eclipse

Swapnil Shroff
Ranch Hand

Joined: Mar 07, 2006
Posts: 58
Can we use other compiler like jbuilder compiler(bmj) with Eclipse.

If so how to configure eclipse for it.

Thanks in advance.

Swapnil


SCJP 5, SCDJWS<br /> <br />It's amazing how premature optimisation is both seductive and destructive; even when you know
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

Yes, you can use use not only alternate Java compilers (such as jikes), but also completely different language environments (I've done C/C++, python, perl and shell scripts). However I don't remember specifically how to use an alternate java compiler. I think it involves setting the alternate jdk as one of the available jdks to eclipse -- I know that I do that when I need Eclipse to do java 1.4 and 1.5 projects. Then I think you can select the desired jdk as part of the project properties. Unlike languages like C, the libraries and java compiler are tied pretty tightly together, so it definitely should be a jdk selection.


Customer surveys are for companies who didn't pay proper attention to begin with.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Tim Holloway:
Yes, you can use use not only alternate Java compilers (such as jikes), but also completely different language environments (I've done C/C++, python, perl and shell scripts). However I don't remember specifically how to use an alternate java compiler. I think it involves setting the alternate jdk as one of the available jdks to eclipse -- I know that I do that when I need Eclipse to do java 1.4 and 1.5 projects. Then I think you can select the desired jdk as part of the project properties. Unlike languages like C, the libraries and java compiler are tied pretty tightly together, so it definitely should be a jdk selection.


You can change the JDK Eclipse is using, but it will *not* use the compiler coming with that JDK. It always uses its own, internal java compiler. Many of the advanced features of Eclipse are depending on this special compiler.

Why do you want to use a different compiler, anyway?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Swapnil Shroff
Ranch Hand

Joined: Mar 07, 2006
Posts: 58
Why do you want to use a different compiler, anyway?


I am trying to port an application development environment that is in jbuilder 6 to eclipse. As jbuilder uses bmj internally for compilation. So i also thinking to implement it in the same way.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use other compiler with eclipse