Home > Back-end >  Java small white study use notepad to write the first application, modify notepad suffix for. Java,
Java small white study use notepad to write the first application, modify notepad suffix for. Java,

Time:12-19

According to the network video lesson I use notepad to compile a "Hello, world" to run the program, the notepad suffix. TXT instead. The discovery after the Java file icon display abnormal, with CMD runtime error: need to class, interface, enum,
Think there is something wrong with the notepad coding, after finding out information my notepad coding is utf-8
Install the JDK and environment variable is according to the online classes step
Wish elder give directions, thank you very much!

CodePudding user response:

1. Automatic image data acquisition system, the article data acquisition
2. Master of BBS ranking system automatic post post automatically open
3. Mobile phone self-build system multi-user version
4. Message registered members, dial-up registered members, APP generated
Contact QQ85403498 http://kelink.com

CodePudding user response:

You don't write in Chinese is no utf-8, post your code to the
First of all, you this is a class file, inside the code is also need to write the class

CodePudding user response:

refer to the original poster gaodianli response:
lesson according to the network video I use notepad to compile a "Hello, world" to run the program, the notepad suffix. TXT instead. The discovery after the Java file icon display abnormal, with CMD runtime errors: also need to class, interface, enum,
Think there is something wrong with the notepad coding, after finding out information my notepad coding is utf-8
Install the JDK and environment variable is according to the online classes step
Wish elder give directions, thank you very much!


Notepad try save as, choose utf-8 encoding, and then save

CodePudding user response:

You write the code must have a problem, and finally is written in the IDEA, can you check out the problem in advance

CodePudding user response:

The name of the class or interface name

CodePudding user response:

Onlookers... Suggest to stick down the code, perform commands and errors

CodePudding user response:

bosses, this is the code I wrote,

CodePudding user response:


This is changing. My exception after the Java icon and the teacher's normal icon contrast