Unconsciously, learning Java also has a little time, the embarrassment and confusion of beginners now think of it or
Some funny, to many forums to see, there seems to be no specific solution, presumably because
Those problems are too simple, no prawns are willing to spend time to say.
Hey, for those shrimp who just started to touch Java, write a little bit of experience .... Time is too late.
I'll write a little, see how it reacts, and if no one needs it, let it go.
The first thing to tell you newbie, jdk ... No IDE like VC or BCB, it's just a
Development tools, not integrating various controls or anything, so don't expect any graphical interface ...
If you want GUI, you can use JCreator Pro or JBuilder
Second, after you install the JDK, you should configure the classpath. If 98 seems to be System.ini
Or use the set instruction to implement .... Well, like set Classpath=c:\jdk1.3.1\lib\tools.jar.
I'm using W2K, direct "system Features"-〉 "Advanced"-〉 "Environment variables" add to it.
and add Path=c:\jdk1.3.1\bin, this is easy to compile with, save you every time to the JDK
Bin in the execution
Here I want to say is classpath not only can set C:\jdk1.3.1\lib\tools.jar, this is only Sun's
Standard package, and if you generate it under a different path. CLASS, then 2 choices, either after the Java directive
Follow the-CP parameter and a long string of paths, or add the directory of the generated classes in your project to the classpath.
(of course, such parameters should not be too much, I think the programming habit of good you do not put class all over the place)
This should be more convenient:)
If you use JDK to run class time always encounters Java.lang ... Classnofound ... Hey, specifically, forget what?
Probably meant to be a exception because the generated class was not found, then you should see what I wrote above, if not ... Check your case again, Java is very sensitive:
In some forums, people often see this question: "How to make the Java EXE file", this method
Always be scolded by others ... Oh, exe such a file is not cross-platform ... Why? Fainted, exe these things
Is the Pe2 code form (hehe, this name is I just asked my classmate, wrong don't hit me ah), can not be such as Linux platform recognition, and Java generated byte stream file can ... Hey, you'd still look at the Java textbook.
So it is not all Java generated class have to use Java ... To achieve it? Good trouble Oh (ah, prawns do not lose me, this article is originally for beginners to see it, like that I was a long time before I know how it happened ... Who told me to start using the JBuilder, do not know how to do ah, and then switch to the JDK to gradually become familiar with it.
No, you have to know that JDK's JAVAW is not freeloader, so for example, if you write a
Edit.java, first Javac Edit.java =〉 generates Edit.class and a number of other related
. class files, which are in the D:\AA directory, type in cmd mode:
Jar CVF Edit.jar-c d:\aa/
In this way, you can get a Edit.jar package that has been associated with JAVAW, so hehe, now
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