aspose file tools*
The moose likes Java in General and the fly likes Compiling  and jaring up a .java file from code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Compiling  and jaring up a .java file from code" Watch "Compiling  and jaring up a .java file from code" New topic
Author

Compiling and jaring up a .java file from code

Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
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,


Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3533
    
  15
You can use the JavaCompiler interface for compiling and the JarFile class for creating jar files.


Joanne
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Compiling and jaring up a .java file from code