aspose file tools*
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 Spring in Action this week in the Spring 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: 14266
    
  21

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 8 API documentation
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: 14266
    
  21

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).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing Default Compiler in Eclipse