• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use other compiler with eclipse

 
Swapnil Shroff
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we use other compiler like jbuilder compiler(bmj) with Eclipse.

If so how to configure eclipse for it.

Thanks in advance.

Swapnil
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17995
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Swapnil Shroff
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic