<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Invoke Javac At Runtime</title>
	<atom:link href="http://juixe.com/techknow/index.php/2006/12/12/invoke-javac-at-runtime/feed/" rel="self" type="application/rss+xml" />
	<link>http://juixe.com/techknow/index.php/2006/12/12/invoke-javac-at-runtime/</link>
	<description>Break Coders Block!</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:29:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Umesh</title>
		<link>http://juixe.com/techknow/index.php/2006/12/12/invoke-javac-at-runtime/comment-page-1/#comment-66285</link>
		<dc:creator>Umesh</dc:creator>
		<pubDate>Mon, 19 Dec 2011 12:24:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/12/12/invoke-javac-at-runtime/#comment-66285</guid>
		<description>How to set classpath ?
I am not able to access source files using classpath.

I get following message :
javac: file not found: User.java
Usage: javac  
use -help for a list of possible options

I have written code like this :
String[] options = new String[] {&quot;-classpath&quot;, &quot;D:/My Documents/&quot;, &quot;-d&quot;, &quot;D:/My Documents/classes&quot;, &quot;User.java&quot;};</description>
		<content:encoded><![CDATA[<p>How to set classpath ?<br />
I am not able to access source files using classpath.</p>
<p>I get following message :<br />
javac: file not found: User.java<br />
Usage: javac<br />
use -help for a list of possible options</p>
<p>I have written code like this :<br />
String[] options = new String[] {&#8220;-classpath&#8221;, &#8220;D:/My Documents/&#8221;, &#8220;-d&#8221;, &#8220;D:/My Documents/classes&#8221;, &#8220;User.java&#8221;};</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: konichiwa</title>
		<link>http://juixe.com/techknow/index.php/2006/12/12/invoke-javac-at-runtime/comment-page-1/#comment-255</link>
		<dc:creator>konichiwa</dc:creator>
		<pubDate>Sat, 27 Sep 2008 07:57:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/12/12/invoke-javac-at-runtime/#comment-255</guid>
		<description>why, oh WHY isn&#039;t javac included in the JRE (and tool.jar et. al.) so that dynamic code generation could be assumed on a user&#039;s machine?  there are just some things that are much harder if not impossible to do without the ability to generate code at runtime ... arrrgh. !$##!$!$*!!</description>
		<content:encoded><![CDATA[<p>why, oh WHY isn&#8217;t javac included in the JRE (and tool.jar et. al.) so that dynamic code generation could be assumed on a user&#8217;s machine?  there are just some things that are much harder if not impossible to do without the ability to generate code at runtime &#8230; arrrgh. !$##!$!$*!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mohan</title>
		<link>http://juixe.com/techknow/index.php/2006/12/12/invoke-javac-at-runtime/comment-page-1/#comment-254</link>
		<dc:creator>mohan</dc:creator>
		<pubDate>Mon, 04 Jun 2007 20:11:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/12/12/invoke-javac-at-runtime/#comment-254</guid>
		<description>Hi All,

PLEASE SUGGEST ME SOME TIPS....!

I have been trying since 3 days to solve this problem...every thing is fine with tools .jar, web.xml and every thing even classpath also

please kindly help me to solve this ....



HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.NoClassDefFoundError: sun/tools/javac/Main
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	com.auth.servlets.Controller.doPost(Controller.java:330)
	com.auth.servlets.Controller.doGet(Controller.java:58)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause

java.lang.NoClassDefFoundError: sun/tools/javac/Main
	org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
	org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
	org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
	org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	com.auth.servlets.Controller.doPost(Controller.java:330)
	com.auth.servlets.Controller.doGet(Controller.java:58)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.


--------------------------------------------------------------------------------

Apache Tomcat/6.0.13</description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>PLEASE SUGGEST ME SOME TIPS&#8230;.!</p>
<p>I have been trying since 3 days to solve this problem&#8230;every thing is fine with tools .jar, web.xml and every thing even classpath also</p>
<p>please kindly help me to solve this &#8230;.</p>
<p>HTTP Status 500 -</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>type Exception report</p>
<p>message</p>
<p>description The server encountered an internal error () that prevented it from fulfilling this request.</p>
<p>exception</p>
<p>javax.servlet.ServletException: java.lang.NoClassDefFoundError: sun/tools/javac/Main<br />
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)<br />
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<br />
	com.auth.servlets.Controller.doPost(Controller.java:330)<br />
	com.auth.servlets.Controller.doGet(Controller.java:58)<br />
	javax.servlet.http.HttpServlet.service(HttpServlet.java:690)<br />
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)</p>
<p>root cause</p>
<p>java.lang.NoClassDefFoundError: sun/tools/javac/Main<br />
	org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)<br />
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)<br />
	org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)<br />
	org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)<br />
	org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)<br />
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)<br />
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)<br />
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<br />
	com.auth.servlets.Controller.doPost(Controller.java:330)<br />
	com.auth.servlets.Controller.doGet(Controller.java:58)<br />
	javax.servlet.http.HttpServlet.service(HttpServlet.java:690)<br />
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)</p>
<p>note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Apache Tomcat/6.0.13</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Felipe Ortiz's Blog</title>
		<link>http://juixe.com/techknow/index.php/2006/12/12/invoke-javac-at-runtime/comment-page-1/#comment-253</link>
		<dc:creator>Felipe Ortiz's Blog</dc:creator>
		<pubDate>Mon, 30 Apr 2007 01:44:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/12/12/invoke-javac-at-runtime/#comment-253</guid>
		<description>&lt;strong&gt;Top Java SE 6 Features...&lt;/strong&gt;

Now that I have had some time to work with Java SE 6, I thought I share a list what I think are the top five features....</description>
		<content:encoded><![CDATA[<p><strong>Top Java SE 6 Features&#8230;</strong></p>
<p>Now that I have had some time to work with Java SE 6, I thought I share a list what I think are the top five features&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederick</title>
		<link>http://juixe.com/techknow/index.php/2006/12/12/invoke-javac-at-runtime/comment-page-1/#comment-252</link>
		<dc:creator>Frederick</dc:creator>
		<pubDate>Wed, 28 Mar 2007 00:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/12/12/invoke-javac-at-runtime/#comment-252</guid>
		<description>how do print out the errors received after programmatically compiling?</description>
		<content:encoded><![CDATA[<p>how do print out the errors received after programmatically compiling?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TechKnow</title>
		<link>http://juixe.com/techknow/index.php/2006/12/12/invoke-javac-at-runtime/comment-page-1/#comment-251</link>
		<dc:creator>TechKnow</dc:creator>
		<pubDate>Tue, 20 Mar 2007 21:04:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/12/12/invoke-javac-at-runtime/#comment-251</guid>
		<description>@Soham - AFAIK you need the qualified class name to load the class via the ClassLoader.

To you second question, try using the com.sun.tools.javadoc.Main class to invoke JavaDoc from your own code/classes in a similar manner which I described here.</description>
		<content:encoded><![CDATA[<p>@Soham &#8211; AFAIK you need the qualified class name to load the class via the ClassLoader.</p>
<p>To you second question, try using the com.sun.tools.javadoc.Main class to invoke JavaDoc from your own code/classes in a similar manner which I described here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Soham Sengupta</title>
		<link>http://juixe.com/techknow/index.php/2006/12/12/invoke-javac-at-runtime/comment-page-1/#comment-250</link>
		<dc:creator>Soham Sengupta</dc:creator>
		<pubDate>Tue, 20 Mar 2007 10:48:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/12/12/invoke-javac-at-runtime/#comment-250</guid>
		<description>Can I access reflection Information about a Java Class whose qualified name has not been given?
Please do let me know at your earliest.
I searched the web but in vain
By the way your article very much helped me, but I want the Java DOCs of this tools.jar API.
How to get it?</description>
		<content:encoded><![CDATA[<p>Can I access reflection Information about a Java Class whose qualified name has not been given?<br />
Please do let me know at your earliest.<br />
I searched the web but in vain<br />
By the way your article very much helped me, but I want the Java DOCs of this tools.jar API.<br />
How to get it?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

