fix class type in java deployment