ECOS Java and Scala interface