File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Java in General
Author
Compiling and jaring up a .java file from code
Vassili Vladimir
Ranch Hand
Joined: Mar 08, 2007
Posts: 1585
posted
Nov 12, 2008 08:56:00
0
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: 3011
9
posted
Nov 12, 2008 09:10:00
0
You can use the
JavaCompiler
interface for compiling and the
JarFile
class for creating jar files.
Joanne
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Compiling and jaring up a .java file from code
Similar Threads
about java decompiler
File Upload thru jsp page
question on java files
from class file to java file
conversion
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter