I'm fairly new to Eclipse so if this is something simple I apologize, however when I attempt to add an external JAR file to my build path (specifically the "rt.jar" file which contains certain tools that I require) and then rebuild my project, Eclipse will hang at the end of the Build process. It'll get to 100% then just hang there using 100% of one of my CPU cores. At first I thought it may have been due to the relatively large size of the rt.jar file, but I tried using smaller JAR files and it still hung at 100%.
Any help would be greatly apprec开发者_如何转开发iated!
If there is something wrong with using the rt.jar file does anyone know of another JAR file that contains both tools for dealing with SOAP requests as well as XML/DOM manipulation?
Thanks again!
Assuming that the "rt.jar" you are talking about is the "rt.jar" from your JRE/JDK, you are going about this the wrong way. The "rt.jar" should be on the build path via the "installed JRE" that you have selected as your target platform.
Remove the build path entry you created.
Open the preferences for "Java > Installed JREs".
If the JRE/JDK you want to use is listed, make sure that it is checked.
If not, add it using the "Add" button. (You probably want to use the "Standard VM" wizard, but YMMV.)
(If you manually add an "rt.jar" to the build path, you will build and run against a hybrid class library where some classes will come from one version of Java and some from another. The result is completely unpredictable. An Eclipse build freeze is a bit unexpected, but this is not a (mis-)configuration that you would expect the developers to test regularly. If the freeze is happening when you launch your app, this is not at all unexpected. The hybrid nature of your effective class library is probably causing the JVM bootstrap sequence to go into an infinite loop.)
精彩评论