This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 38519
    
  23
Too difficult a question for “beginning”—moving thread.
Ivan Jozsef Balazs
Rancher

Joined: May 22, 2012
Posts: 867
    
    5
javax.tools.ToolProvider
java.util.jar
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Structuring a .class file to jar on Run time