L
Lionel
Hi all,
I'm using EclipseCompiler (open to suggestions of alternatives, as long
as they are smaller as this is only 1.6MB) to compile source code that I
write at runtime I get the following error:
1. ERROR in \UserDefinedGentamicin.java (at line 2)
public class UserDefinedGentamicin extends
tciworks.drugmodel.CommonDerivnFunction {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tciworks.drugmodel.CommonDerivnFunction cannot be resolved to a type
The background.
tciworks.drugmodel.CommonDerivnFunction is an Abstract class that is
compiled and included as a class file in the application jar file.
tciworks.drugmodel.UserDefinedGentamicin.java is created at runtime and
it is while I am attempting to compile UserDefinedGentamicin.java that
the above error occurs. The error occurs when I run the application, but
when I test it with JUnit/Ant, it is fine!
Clearly the CommonDerivnFunction class can't be found, I would have
thought this would automatically be in the classpath?
I also wrote sample program based on my code and I got the same error
once or twice, but I can't reproduce it now so unless anyone thinks it
will be of use (it's fairly large still) then there isn't much point
posting it.
Any ideas? How can I debug this?
Thanks
Lionel.
I'm using EclipseCompiler (open to suggestions of alternatives, as long
as they are smaller as this is only 1.6MB) to compile source code that I
write at runtime I get the following error:
1. ERROR in \UserDefinedGentamicin.java (at line 2)
public class UserDefinedGentamicin extends
tciworks.drugmodel.CommonDerivnFunction {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tciworks.drugmodel.CommonDerivnFunction cannot be resolved to a type
The background.
tciworks.drugmodel.CommonDerivnFunction is an Abstract class that is
compiled and included as a class file in the application jar file.
tciworks.drugmodel.UserDefinedGentamicin.java is created at runtime and
it is while I am attempting to compile UserDefinedGentamicin.java that
the above error occurs. The error occurs when I run the application, but
when I test it with JUnit/Ant, it is fine!
Clearly the CommonDerivnFunction class can't be found, I would have
thought this would automatically be in the classpath?
I also wrote sample program based on my code and I got the same error
once or twice, but I can't reproduce it now so unless anyone thinks it
will be of use (it's fairly large still) then there isn't much point
posting it.
Any ideas? How can I debug this?
Thanks
Lionel.