Java drug management system