I believe the problem lies in defining classpath variable which possiblydoes not have package A.Set it accordingly it should work fine.