File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Structuring a .class file to jar on Run time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Structuring a .class file to jar on Run time" Watch "Structuring a .class file to jar on Run time" New topic
Author

Structuring a .class file to jar on Run time

Natraj Aggas
Greenhorn

Joined: Jul 11, 2011
Posts: 15
Hi,
I need to construct a java program which will intake a .java file, execute, compile and will return a .class file. Again I need to take the .class file and make it to a jar - All these should happen on Run time. Can anyone please help me?


Thanks,
-N
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36478
    
  16
Too difficult a question for “beginning”—moving thread.
Ivan Jozsef Balazs
Rancher

Joined: May 22, 2012
Posts: 865
    
    5
javax.tools.ToolProvider
java.util.jar
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Structuring a .class file to jar on Run time
 
Similar Threads
running a class in a jar ......
How to create a jar file of a java project that uses Derby database
unable to compile class for JSP
Run the .jar file
Specify classpath when run class in jar file