Dynamic compilation problem
hi ,
Here is my problem scenario
Im having three classes
Class A,Class B,Class C,Abstract class D
class c extends Class D
class A belongs to package abc and
class B belongs to package xyz
in both the classes im creating the instance of Class C
now i want to dynamically compile the classes
I tried after some googling ,but i found that if all are in the same package it works fine
but if it is as original it is throwing some error like
"Java cannot find symbol
symbol : Class c"
help me solving this issue
Re: Dynamic compilation problem
What have you tried? Are you doing this by command line? Have you tried compiling all of the classes at once?
Re: Dynamic compilation problem
hi,
Actually i was dynamically compiling the classes through web server( Tomcat ) externally.yes im compiling all the classes at once
thanx for reply
Re: Dynamic compilation problem
Sorry, I don't know anything about Tomcat. Can you get it to work using the command prompt directly?
Re: Dynamic compilation problem
hi,
if you have any working example please update.