• Post Reply Bookmark Topic Watch Topic
  • New Topic

Compiling a Java Project using Compiler API  RSS feed

 
Mike Campos
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to compile a whole java project dynamically using the Compiler API. My initial thoughts of achieving this is to first know how to compile it in one-line using command line, then apply the same principle/parameters on the compiler object. Problem is, I never did, err, compiled using CLI. (Disadvantage of using an IDE? Haha)

So, am I on the right track? Moreover, can the project compilation achieved in one line execution? I'm having a hard time figuring this out because of the fact that it's a project, it contains packages galore.

(First time to be here at JavaRanch, BTW. So, Hi! )
 
Ivan Jozsef Balazs
Rancher
Posts: 999
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Disadvantage of using an IDE?



It is an often given piece of advice (which I must admit to agree with) is not to ignore the command line tools and to know the underlying stuff like compile options, class path issues etc.
That is, not to entirely rely upon an IDE.


Haha

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!