Eclipse Create Userlibraries Library

Source: Internet
Author: User

One: To add the user library to the Eclispe:
1. Click on Eclipse's Window menu and choose "Preference"

2. Select Java->user Libraries in the Preferences window and click New on the right side of the window ... button, enter the name of the user library gamelibs in the child window that pops up.

3. Add a jar package to the user library. Select Gamelibs, then click Add JARS ... button, select the jar you want to add.

Second: Manually create the user Library

1, create the corresponding contrib Java project. Add libs file, put Gameengine.jar package in file

2. Create gamelibs.userlibraries file under Contrib project

<?xml version= "1.0" encoding= "UTF-8" standalone= "no"?>
<eclipse-userlibraries version= "2" >
<library name= "Gamelibs" systemlibrary= "false" >
<archive path= "/contrib/libs/gameengine.jar" source= "/contrib/libs/src"/>
</library>
</eclipse-userlibraries>

3, in the use of the project, in the Preferences window to select Java->user libraries, import gamelibs.userlibraries file.

4, add the development package, only need to gamelibs.userlibraries add on it, the source attribute optional, you can remove

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.