2013年9月15日星期日

You can not use jdom myeclipse problem

Myeclipse used directly in the following code error:
import org.jdom. *;
import org.jdom.output. *;
import org.jdom.input. *;

online search to one of the solutions are:

ready open source packages to http://jdom.org. Download and build folder jdom.jar, copy it to your jdk installation directory lib. also copied to the jdk installation directory jre lib folder under the ext , but will add this directory to the classpath environment variable . Such as : d :/ jdk1.4/jre/lib/ext/jdom.jar and d :/ jdk1.4/lib/jdom.jar

I do the same way to do the latter , myeclipse still not recognized in the three import. This method is only solved the java runtime can not find the problem jdom package ?

Method two is :

Right-click your project and select Properties (properties) Menu -> java build path and then select the libraries tab , there is an add external jars ; and then poured into a package you want to pour on ok .

After using this approach , myeclipse is not being given , but I heard that the project moved to other machines after possibly being given, what is the best way ?

------ Solution ------------------------------------ --------
you use method two , move to another machine , using imported project functions on the line.
------ For reference only -------------------------------------- -
thank landlord method two handy
------ For reference only ------------------------- --------------
third method is good
------ For reference only ---------------- -----------------------
wrong second method is good

没有评论:

发表评论