This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Changing Default Compiler in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Changing Default Compiler in Eclipse" Watch "Changing Default Compiler in Eclipse" New topic
Author

Changing Default Compiler in Eclipse

Fidel Edwards
Ranch Hand

Joined: Mar 19, 2008
Posts: 231
Dear Members,

I want to change the default compiler from javac to vbjc in Eclipse Europa.I dig it in internet but failed to find any .Please help me .I am desperately looking to solve this problem.

I also want to change the run command from 'java' to
vbj -DSVCnameroot=Test com.xxx.xx.ClassName.

Thanks in advance !


God Gave Me Nothing I Wanted, He Gave Me Everything I Needed.
OCPJP6
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Eclipse does not use javac (the Java compiler from the JDK). It has its own built-in compiler (based on IBM's jikes). As far as I know, it is not possible to change this in Eclipse.

Ofcourse you can use for example an Ant build script to compile your code, and use the Ant script from Eclipse.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Fidel Edwards
Ranch Hand

Joined: Mar 19, 2008
Posts: 231
Originally posted by Jesper Young:
Eclipse does not use javac (the Java compiler from the JDK). It has its own built-in compiler (based on IBM's jikes). As far as I know, it is not possible to change this in Eclipse.

Ofcourse you can use for example an Ant build script to compile your code, and use the Ant script from Eclipse.


Thanks Jasper!! for early reply but i am not getting it that how can i compile my java files from vbjc *.java rather than javac *.java in ant .

Please help !!
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Have a look at the Ant manual. You could use the 'apply' or 'exec' task to call vbjc (by the way, I don't know what vbjc is and how it works).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Changing Default Compiler in Eclipse
 
Similar Threads
add/edit parameters to the java compiler in Eclipse IDE.
Java versioning problem
How to use Glassfish with Wicket in Eclipse?
JBoss installation
Eclipse 2.0.2 - changing default compiler