[JAVA-1742] Missing ServerAddress class from jar file Created: 02/Apr/15 Updated: 11/Sep/19 Resolved: 03/Apr/15 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | 3.0.0 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Gary Whittington | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux |
||
| Description |
|
Downloaded mongodb-driver-3.0.0.jar from site (via direct link) and tried to compile previously working program but ServerAddress class not found in jar file. Checked in source files and not found in there either. Checked 2.x files and found expected file. |
| Comments |
| Comment by Jeffrey Yemin [ 03/Apr/15 ] |
|
The uber-jar is just the legacy packaging. It's the same exact bits though, so you should fee free to use it. |
| Comment by Gary Whittington [ 03/Apr/15 ] |
|
Thanks for the quick feedback. The implication is that the "MongoDB Driver" is the recommended driver to use for new projects. The "Uber" jar file is described as "legacy" suggesting that its not recommended now (and users should switch to be using the "MongoDB Driver"). However, how do you compile the source shown at http://mongodb.github.io/mongo-java-driver/3.0/driver/getting-started/quick-tour/using the "MongoDB Driver" if (say) the ServerAddress class is not included in the mongodb-driver-3.0.0.jar file? Sorry to be wasting your time if I am missing something. |
| Comment by Jeffrey Yemin [ 02/Apr/15 ] |
|
Hi Gary, Please see http://mongodb.github.io/mongo-java-driver/3.0/driver/getting-started/installation-guide/. If you're downloading directly instead of using something like Maven or Gradle, better to grab the uber-jar instead. |