Japan says it will comply with whaling ruling