JFreeChart & Scala

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
manon
Posts: 1
Joined: Thu Oct 08, 2015 12:40 pm
antibot: No, of course not.

JFreeChart & Scala

Post by manon » Thu Oct 08, 2015 1:23 pm

Hello,

I've written a measuring tool for a project in Scala. As output of my tool, i have tables of XY data that i want to display in graphs.
My problem doesn't concern how to code using the jfreechart library, i've found useful sample codes doing what i want.
But i can't import jfreechart's library succesfully. I mean:
I'm working in scala IDE. Originally, i had in my workspace the scalismo library (a package written in Scala that i'm using in my tool). Scalismo library is divided into a Scala package and some Java files. My tool is written is Scala so myPackage is in the Scalismo-Scala folder and it's running and giving me the output tables. So i imported jfreechart library in the Scalismo-Java folder. Now i'd like to know if i have to write my display file in .java or .scala. How does it work? I tried both. When i wrote a .scala file i obtained Java Virtual Machine Launcher error saying "could not find the main class". Whereas i was running the file as a scala application.

Locked