java - "Error: Could not find or load main class" JavaFX Terminal -


i'm using following class javafx tutorial:

import javafx.application.application; import javafx.stage.stage;  public class hellofxapp extends application {     public static void main(string[] args) {         // launch javafx application         application.launch(args);     }      @override     public void start(stage stage) {         stage.settitle("hello javafx application");         stage.show();     } } 

i'm using ubuntu , have correct path .java file in terminal..
when type "javac hellofxapp.java" works fine , new "hellofxapp.class" file created. when try "java hellofxapp" receive following error:

error: not find or load main class hellofxapp

i checked java version typing "java -version" , looks have latest one:

java version "1.8.0_45" java(tm) se runtime environment (build 1.8.0_45-b14) java hotspot(tm) server vm (build 25.45-b02, mixed mode) 

please tell me if missed something! thank in advance..

you missing the package while firing java command. (implied comments, since not included in question)

after compiling, navigate src folder , append package class name :

java com.jdojo.intro.hellofxapp 

Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -