Basic Introduction: some tips for beginners of JAVA-Linux general technology-Linux programming and kernel information. The following is a detailed description. I have been learning JAVA for a short time, but I have nothing to do with my original things. Today I will start with writing IDE development tool usage skills. I hope you will like this article, I also hope that this article will be helpful to many beginners of JAVA! During the use of JCRETOR, I found a little bit of tips for beginners like me!
Tip 1: Create an empty project for JAVA programming;
When programming, it is best to first create an empty project, and then edit your own JAVA program in this empty project; in fact, this is a good habit, you can create your own package in this project, and put the source program you edited into different packages according to different functions; in this way, after learning JAVA for a long time, you will have a package of your own, which is very convenient for you to learn or query the relevant code in the future.
You may know how to create an empty project, but here I am still a bit arrogant :):
In the JCRETOR menu order, the creation method is as follows:
File ???> New ???> Project ???> EmptyProject;
Haha, it's actually very simple! I wish you an early start with your own class library!
Tip 2: Jcretor provides good support for the JDK help documentation;
With Jcretor, You can conveniently view the JDK help documentation in real time! This function allows the webpage to be displayed directly in the Jcreator editing window without opening any other browser for browsing. (I like this feature of Jcreator very much. As far as I know, Eclipse does not seem to provide this feature.) After talking about it for so long, I believe everyone will ask you how to use this feature! OK! Don't worry. You will be able to master this skill right away.
I don't know if you remember that when we run Jcreator for the first time after installing Jcreator, the system will ask you to specify the JDK installation path. If you remember, after you have set the JDK installation path, you will be asked to provide a DOCS path. Ha, it's the opposite. It's the pull! Haha ...... Let me show you how to set this path:
First, download the corresponding JDK document from the SUN website;
Second, create a folder named docs in the JDK installation directory (for example, my installation directory is D: j2sdk1.4.2 _ 06, decompress the downloaded JDK document to the created folder, decompress it, and select the directory where the JDK document is located when installing Jcretors; (Note: make sure there are no more docs folders under the docs folder.) When you set Jcreator, will you find that your Jcreator has not changed? Actually, there are some. If you don't believe it, check the Help drop-down menu in the Jcreator menu bar to see if there is anything more? Haha ...... Is there an additional menu item "JDK Help Ctrl + F1! If so, congratulations! The configuration is successfully pulled! I will show you how to use this function;
Again, it is to use Jcretor to play the role of the JDK help document! This is what I want to talk about. OK. Let me tell you how to use this function:
When you write programs or read the original code of others in Jcreator, you will certainly encounter unfamiliar or unknown classes or methods, in this case, select the class name or method name you want to query, and click JDK Help under the Help menu in the Jcretor menu bar, at this time, you will find that the information you want to query is immediately displayed on the Jcreator in the form of a webpage! Haha ...... Is it easy to find? Do you think it is comparable to JDK documents in CHM format! Ha, it's that simple!
Tip 3: This trick seems to be a bit similar to tip 2. It is committed to implementing direct display of webpage files in the Jcreator editing window, eliminating the trouble of opening other browser tools.
In fact, this function is mainly intended for programmers who compile java applet applets. After an APPLET is compiled, you always observe the program results through the web page. Then, you can use Jcretor to compile an HTML original file and save it! In this case, the corresponding File name appears in the File View window on the far left of the Jcreator editing window. Select this File, right-click the File, and click the View in Browser menu item, soon the HTML file you selected will be displayed in Jcretor. OK. Is it more convenient to open this HTML file than to open it in a browser! It's that simple!
The above is a little bit of tips I have summarized using Jcreator for JAVA programming. Maybe some of my friends already know the functions here and can't write well! At the same time, I also hope that you can post the experience you have learned during the use of Jcretor for your reference! I will also update my new skills in my BLOG in time!
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