Without knowing it, I have a little time to learn JAVA. The embarrassment and confusion of beginners are still coming to me.
Some of them are funny. It seems that there is no specific solution in some forums, probably because
Those problems are too simple. No prawn is willing to talk about them.
Well, it's too late to write down some tips for those who are just getting started with JAVA...
Let me write a little bit first to see the response. If no one needs it, let it go.
First, let NEWBIE know that jdk... won't be like vc or bcb ide, it's just
Development tools are not integrated with various controls, so do not count on any graphical interface...
If you want a GUI, you can use JCreator pro or JBuilder
Second, you should configure CLASSPATH after installing JDK. If 98 appears to be in SYSTEM. INI
Or use the SET command to implement... well, such as set classpath = C: jdk1.3.1libools. jar.
I am using W2K and can directly add "system features"> "advanced"> "environment variables".
Add PATH = C: JDK1.3.1BIN, which is convenient for compilation, saving you the need to go to JDK every time.
Run in BIN
Here I want to talk about CLASSPATH not only can set C: jdk1.3.1libools. jar, this is just SUN's
Standard Package. If you generate a. CLASS in another path, you can select either
With The-cp parameter and a long string path, you can either add the Directory of the generated class in your PROJECT to CLASSPATH.
(Of course, this parameter should not be too many. I think you will not put the CLASS around the world if you are familiar with programming)
This should be easier :)
If you always encounter JAVA. LANG... CLASSNOFOUND... when you use JDK to run the CLASS, forget the specifics.
It probably means an Exception because the generated class is not found, so you should take a look at what I wrote above, if not... check your case again. java is very sensitive :)
In some forums, we often see people asking: how does one let Java compile the. Exe file?
It is always said that files like "..." cannot be cross-platform. Why? Fainting, exe.
It is the encoding format of pe2 (haha, this name is the one I just asked my classmates. If it is wrong, don't hit me). It cannot be recognized by platforms like linux, the byte stream file generated by java can be .... well, you should read the java teaching material.
Isn't it true that all java-generated classes must be implemented using java? It's so troublesome. (Ah, don't let me go. Is this article intended for beginners? It's like I 've been there for a long time to know what's going on... who told me to start using jbuilder? I don't know what to do. Later I used jdk to get familiar with it)
You should know that Java W of jdk does not eat white food, so for example, if you write
Edit. java for writing. First, javac Edit. java => generates Edit. class and several other related
. Class files, and these files are all in the d: aa Directory, type:
Jar cvf Edit. jar-C d: aa/
In this way, you can get an Edit. jar package, which has been associated with javaw.
Double-click it.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service