Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compiling and jaring up a .java file from code

 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to write a java class that will compile a .java file to a .class file and then jar it up.

Can you tell me how to do that ?

Regards,
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the JavaCompiler interface for compiling and the JarFile class for creating jar files.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic