Fixed Javaruntime issue with multiple profiles.