How can I use HttpComponents (Download) 4.2.5 to in order to make the QuickStart example compatible in Netbeans 7.3?

In Eclipse everything works fine, creating a custom library with the path to the lib/ was enough.

有帮助吗?

解决方案

Solution:

  1. Choose File, Project Properties. The Project Properties dialog opens.
  2. Click Libraries in the Categories pane, and then click the Add Library button. The Add Library dialog opens.
  3. Click the Create button. The Create New Library dialog opens.
  4. Enter e.g. HTTPClient in the Library Name field and click OK. The Customize Library dialog opens.
  5. Click Add JAR/Folder. The Browser JAR/Folder dialog opens.
  6. Find the folder where you saved unpacked HTTPClient and choose ALL the JAR files in the lib folder. Click Add JAR/Folder.
  7. In the Customize Library dialog, click OK.
  8. In the Add Library dialog, choose HTTPClient and click Add Library.
  9. In the Project Properties dialog, click OK.

Based on R. Cadenhead "Sams Teach Yourself Java in 24 Hours" [p. 303].

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top