L
Lionel
This is related to another post but I think I need to rephrase the title
as I've shed some further light on the problem.
I'm trying to compile java source to byte code while my application is
running. This works fine unless I am using JWS, in which case the
compiler can't find my applications class files - this is what it seems
to me as I get the compilation error:
1. ERROR in \UserDefinedGentamicin.java (at line 2)
public class UserDefinedGentamicin extends
tciworks.drugmodel.CommonDerivnFunction {
I have now discovered that I can load the class using the class loader
that loaded my application. For example:
System.err.println("-->" +
this.getClass().getClassLoader()
.loadClass("tciworks.drugmodel.CommonDerivnFunction")
.getName());
Is successful.
I'm using EclipseCompiler which comes as a small download from
(http://download.eclipse.org/eclipse/downloads/drops/R-3.4-200806172000/index.php#JDTCORE)
and implements the JavaCompiler interface.
Is there some way I can force these class files to be visible?
Thanks
Lionel.
as I've shed some further light on the problem.
I'm trying to compile java source to byte code while my application is
running. This works fine unless I am using JWS, in which case the
compiler can't find my applications class files - this is what it seems
to me as I get the compilation error:
1. ERROR in \UserDefinedGentamicin.java (at line 2)
public class UserDefinedGentamicin extends
tciworks.drugmodel.CommonDerivnFunction {
I have now discovered that I can load the class using the class loader
that loaded my application. For example:
System.err.println("-->" +
this.getClass().getClassLoader()
.loadClass("tciworks.drugmodel.CommonDerivnFunction")
.getName());
Is successful.
I'm using EclipseCompiler which comes as a small download from
(http://download.eclipse.org/eclipse/downloads/drops/R-3.4-200806172000/index.php#JDTCORE)
and implements the JavaCompiler interface.
Is there some way I can force these class files to be visible?
Thanks
Lionel.