Java Servlets

HOW WE TELL PROGRAMMATICALLY IF I'M RUNNING IN 64-BIT JVM OR 32-BIT JVM

interact with external disk files and ftp in java

I have started with java but compiler gives erroer