I'm fresh to Java and cannot get this right.
I've got only a .java file from a Java study book, that represents a Java project. There seems to be no option to input such file from Netbeans interface, that would automatically compile corresponding class and enable project to run.
I've spend a long time to figure this out, copying files manually, changing the automatically created class names and packages, moving this around - but I don't find a solution.
If someone can help - this will be great.
Pawel
main classwhich is the class that includes themain methodwhich happens to bepublic static void main(String[] args) {}in java language. I suspect that this file is missing this particular method. Hence I recommend you to open the java file with Notepad++. With this you can look at the source and understand it. If again you face some issues edit your question and add the source code.