I'm currently using JCreator 5.0 and JDK 1.7.0_51. I haven't had any issues when coding, and this time I decided to adventure myself in the realms of JavaFX, but it seems I can't reach any of its content. Here's the error I get when I press the "Build File" button:
H:\Tareas\Projects\Test\Test1.java:1: error: package javafx.stage does not exist
import javafx.stage.*;
^
1 error
So, my questions are:
I actually haven't coded anything yet, it just seems the import is not working. This is the code so far, by the way, irrelevant I guess:
import javafx.stage.*;
public class Test1 {
public Test1() { }
}
Thanks in advance!!
By the way, javafx.stage.* is not the only thing that gets me errors, in general, anything coming from javafx.* does the same :C, even "javafx.*" itself, I'm just using that as an example. Cheers!
edit:
I solved it now! and I did it thanks to @MadProgrammer, after reading the thread he provided me! Thanks very much =) it was so simple!
So what I found after reading the thread is that I needed to tell JCreator that such package existed, so I went through these steps in JCreator:
Too long, didn't read: added "jfxrt.jar" to my JDK Profile in JCreator Options =)
Thanks very much!
I will be posting this as an answer soon, I just have to wait a couple hours due to having not enough reputation points, cheers everyone!
Too long, didn't read: add "jfxrt.jar" to your JDK Profile in JCreator Options =)