• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using java Runtime  RSS feed

 
Abed Rabie
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir,
I made a project like JCreator which is an editor for java code and i need to make the compilation process I need to call the javac command from it's path to make the compilation.

So please inform me the correct path to follow to accomplish this task.

thanks in advance

best regards

Aabed
 
Mattias Arthursson
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A good exaple of running javac from inside a java program can be found at:
javaworld.
 
omar bili
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abed you can call use :
Runtime.getRuntime().exec(" /* here you can put javac ... */ ") ;
hope it helps
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!