Hello,
This is my first post and from what I can tell the only ( recent ?) one.
I originally learned of this forum through Raspberrypi and Bluej
IDE on pi4.
I sent the following to BlueJ support before realizing I could get some help here.
It looks promising.
I appreciate ANY suggestions. Thank you in advance.
Installation Details
BlueJ version 4.2.1
Java version 11.0.13
JavaFX Version 11.0.10-internal+0 2021-02-03-151839
Virtual Machine: OpenJDK Server VM 11.0.13+8-post-Raspbian-1deb11u1 (Raspbian)
Running on: Linux 5.10.63-v7l+ (arm)
Java Home: /usr/lib/jvm/java-11-openjdk-armhf
Problem Details
-BlueJ Quick Introduction Interactive Tutorial completed
-Successfully created compiled and ran CatView Class as a JavaFX Application in BlueJ IDE
-Created a JAR File of CatView Class
-In Windows 10 double clicked on CatView.jar executable file and no output
-running command line interface from the directory where CatView.jar located using "java -jar CatView.jar" recevied error message
"Error: Could not find or load main class CatView Caused by: java.lang.NoClassDefFoundError: javafx/application/Application"
According the the tutorial a Main class is not required to run a JavaFX executable such as the one created in BlueJ interactive tutorial
.
As far as an instructional beginners tutorial this statement seems to me to be very misleading at this point.
-Also imported CatView.jar into NetBeans 12.6 IDE.
Not sure if this was done correctly so some suggestion on a correct way to create a NetBeans project with an imported and accessible JAR file would be appreciated.
Started a new project and added CatView.jar to it as a Java Application.
Set the libraries for JavaFX in the properties for the project. Build was successful however on running the project with CatView.jar in it, kept receiving runtime error:
"javafx.controls not found"
Main question is: will this BlueJ interactive tutorial run as a standalone executable JAR file anywhere outside of a BlueJ IDE.
I have run nonJar NetBeans JavaFX projects successfully inside of NetBeans but my goal here is to run a JAR file in NetBeans and outside of it.