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 how to load app java classes in javax.tools.JavaCompiler? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "how to load app java classes in javax.tools.JavaCompiler?" Watch "how to load app java classes in javax.tools.JavaCompiler?" New topic
Author

how to load app java classes in javax.tools.JavaCompiler?

Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1291

I have condition on web application where I am upload a .java source file and compiling this source based on the dependencies with jar files resides in WEB-INF/lib folder.

I am able to load this jar file by using this code able to compile successfully and move .class in proper package with the help of this thread.How to set classpath when I use javax.tools.JavaCompiler compile the source?.



the only problem I having here when I upload a .java source file which actually have an association with my current application java file comipler didn't find the reference of this source and complaining the error.



package com.saif does not exist.

Any help would be appreciated.
Thanks,

Saifuddin..
[Linkedin] How To Ask Questions On JavaRanch My OpenSource
 
 
subject: how to load app java classes in javax.tools.JavaCompiler?
 
Threads others viewed
analog javascript's eval function
bang head error
javac api
web application error in netbeans
redirect .class files programatically
IntelliJ Java IDE