Welcome to the Java Developer Center
Java is a tried and true programming language that powers many enterprise-class web applications. In the Java Developer Center, you'll find:
- HOWTO Articles to help you understand our technologies and how you can use them better with Java.
- Code Samples Used by our HOWTOs for you to play with. Use them as a starting point for your own applications.
- Java Downloads and Libraries to get you started writing great Java code.
- More Information About Java Programming out on the Web to help you use Java and the Yahoo! APIs to their fullest.
- Community Resources where you can join our mailing list and discuss the Yahoo! APIs with other Java developers.
HOWTO Articles
Prerequisites
Most of the Java sample code provided in the HOWTO articles require only Java version 1.4.2 or newer which includes the standard javax.xml.* packages and the HTTPClient packages from Apache. The exceptions are the Mail API, which requires either the JAX-WS or Axis2 libraries, and the JSON example which requires the org.json package. Whirlycache is required for the in-memory caching example. The BBAuth Servlet example was tested on Apache Tomcat/6.0.14 with JVM 1.6.0_02-b06, and you'll need a similar setup to run it.
Articles
- Make Yahoo! Web Service REST Calls with Java
- Parse Yahoo! Web Service REST Calls with Java
- Cache Yahoo! Web Service REST Calls with Java
- Use BBauth for Single Sign-On with Java
- Make Authenticated Flickr API Calls and Rotate a Live Image
Code Samples Used by our HOWTOs
We've got plenty of examples to keep you busy. These examples all come from our HOWTOs listed above.
Unless otherwise noted, all of the folllowing code samples are provided under the terms of the Yahoo! SDK Software License Agreement.
- FlickrAuth.java - Use Flickr Authentication for web services
- FlickrRotate.java - Flickr Authentication with file rotation
- YahooBBAuth.java - Yahoo! Browser-Based Authentication basics
- YahooBBAuthRequest.java - Making web service requests using Yahoo! Browser-Based Authentication
- YahooBBAuthServlet.java - Use BBAuth with Servlets for Single Sign-On
- YahooCacheSearchResults.java - File caching example
- YahooWhirlyCacheSearchResults.java - In-memory caching example
- YahooWebServiceParseErrorCodes.java - Error handling for web services
- YahooWebServiceParseResults.java - Parse XML results of web service calls
- ParseYahooSearchResultsJSON.java - Parse JSON results
- YahooWebServiceGet.java - HTTP GET of web service
- YahooWebServicePost.java - HTTP POST of web service
- YahooWebServicePostSocket.java - HTTP POST using Sockets
We also have some Java examples using our Mail API.
Be sure to review our Best Practices for Speeding Up Your Web Site.
Java Downloads and Libraries
Java SE Downloads: Java SE includes classes that support the development of Java Web Services and provides the foundation for Java Platform, Enterprise Edition (Java EE).
Java EE Downloads: Java Platform, Enterprise Edition (Java EE) is the industry standard for developing portable, robust, scalable and secure server-side Java applications.
JSON in Java: JSON packages for Java from json.org.
Apache Commons: The Commons is an Apache project focused on all aspects of reusable Java components.
Whirlycache: Whirlycache is a fast, configurable in-memory object cache for Java.
More Information About Java Programming
Sun Developer Network (SDN) Java Technology Reference: Includes a vast set of information including API specifications, documentation, and code samples for Java developers.
Java Web Services Overview : Great for learning about all of the powerful tools available for developing web services with Java.
JDK™ 6 Documentation: Links to documentation of every component of the JDK and links to additional resources.
The Java Tutorials: New to Java? Learn by doing with a myriad of Java tutorials covering the basics to advanced Java topics.
Java Web Services Development Pack : The JWSDP is a free software development kit (SDK) for developing Web Services, Web applications and Java applications with the newest technologies for Java.
O'Reilly and Associates: Publishes many of the best books on Java.
NetBeans: Free Java tools for creating cross-platform Java desktop, enterprise and web applications.
IntelliJ IDEA: Java IDE intensely focused on developer productivity that provides a robust combination of enhanced development tools.
Eclipse Downloads: Free Java IDE for Java and Java EE developers.
Community Resources
If you're found the intersection of Java and Yahoo! Web Services but you're not sure which way to turn, join us on the ydn-java mailing list. Please note that this is not a general Java programming questions list; try to keep your questions focused on discussion about Yahoo! APIs.
We also provide individual lists for each of the web services and APIs we support; your questions are always welcome there as well. See the Yahoo! Developer Network Community page for more information on these mailing lists.
Yahoo! Groups Discussions
view all
Yahoo Web Search query problem
Sat, 29 Nov 2008
Tue, 18 Nov 2008
Re: who know the yahoo calander api ?
Tue, 11 Nov 2008
Re: No clue why boss doesn't like my request
Tue, 11 Nov 2008

