Help i made a simple generic class | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Help i made a simple generic class

It works well in sololearn playground but not in note pad commandline or eclipse... Plis can anyone tell me why it does not run in commandline or eclipse. The error message say something like javafx should extend application.Application. https://code.sololearn.com/c4YwZKvIq8xd/?ref=app

13th Jan 2019, 7:14 AM
stephen haokip
stephen haokip - avatar
1 Answer
+ 3
It seems that you're creating a javafx project in eclipse. That kind of project needs main extending Application class. You need a normal console project. Perhaps you right-clicked on project name and select from menu javafx->add javafx nature. Try to create a new project without that option and copy-paste your code in it.
13th Jan 2019, 9:19 AM
Javier Felipe Toribio
Javier Felipe Toribio - avatar