This tutorial shows you how to use Java Platform, Standard Edition 8 (Java SE 8) and NetBeans 8 to create a link checker with the Thread class. For small applications, you add a thread defined by its Runnable interface or by the thread itself, as defined by a Thread object. For large applications, you separate thread management and creation from the rest of the application. Objects that encapsulate these functions are known as executors.
HTTP is the foundation for communication of data on the web. The proliferation of network-enabled applications has increased the use of the HTTP protocol beyond user-driven web browsers.
The HTTPClient class helps build HTTP-aware client applications, such as web browsers and web service clients for distributed communication.
The URL class is a pointer to a resource on the web. A resource can be something as simple as a file or a directory, or it can be a reference to a more complicated object, such as a query to a database or to a search engine.
The HttpURLConnection class helps establish an HTTP connection between the HTTPClient and server.
In client/server applications, the server provides the service and the client uses that service. Communication takes place over the TCP/IP network, where a client program and a server program establish a connection with one another. Each program binds a socket at the end of the connection. This tutorial shows you how to use Java Platform, Standard Edition 8 (Java SE 8) and NetBeans 8 for socket programming over TCP/IP networks.
This self-study describes the Oracle Secure Java Coding Guidelines, Java Security, Java Native Interface secure coding, and security vulnerabilities.To minimize the likelihood of security vulnerabilities caused by programmer error, Java developers should adhere to recommended coding guidelines. This self-study follows the Secure Coding Guidelines for Java SE, Version 5.0 in detail.
Prior to Java SE 8, interfaces in Java could contain only method declarations and no implementations, and any nonabstract class implementing the interface had to provide the implementation. This limitation made it almost impossible to extend the existing interfaces and APIs. To overcome this limitation, a new concept, called default methods, is introduced in Java SE 8. The default methods are fully implemented methods in an interface, and they are declared by using the keyword default. Because the default methods have some default implementation, they help extend the interfaces without breaking the existing code.
Java 8 videos that demonstrate the Java 8 new features. The videos cover the Internet of Things (IoT), Java ME, Java Embedded, and Java SE.
In this video, you will learn how to calculate the size of resistor used with an LED, read the stripes on a resistor to determine its value, use a resistor in a pull-down circuit and determine how which trigger to use when configuring a GPIO pin.
Intelligent devices are becoming an ever more important and ubiquitous part of our everyday lives. Mobile phones represented the first wave of smaller personal computers. And now, as the price of electronics and processing power continues to fall, there is an intersection between sensors and other electromechanical devices and computers that live on the edge of the Internet: close to the source of the data, processing the data locally and sending just what is required to other computers to consume. This wave of machine-to-machine (M2M) technology, or more broadly, the Internet of Things (IoT), is rapidly shaping the future of computing. Oracle Java Platform, Micro Edition (Java ME) provides Java developers with a direct path to this new market space by using their existing knowledge and skills.
In this tutorial, you prepare a Raspberry Pi to run Java ME Embedded 8, the most current version of Java ME Embedded. The Raspberry Pi is a computer that is about the size of a deck of cards, yet it is capable of running a Linux distribution on its ARM 11 processor. The Raspberry Pi also supports USB, Ethernet, audio, HDMI, and RCA video output. But most importantly, the Raspberry Pi provides a 26-pin header that connects the computer to the outside world, through general-purpose input/output (GPIO) pins that can drive LEDs, read switches and other electronic signals, and connect to a wealth of inter-integrated circuit (I2C) devices, universal asynchronous receiver/transmitter (UART) devices, and more. This header and the Raspberry Pi's low cost is what makes the Raspberry Pi an ideal platform to develop real-world embedded applications with Java ME Embedded.
This tutorial covers how to configure a Raspberry Pi as a development platform for the JavaFX platform.
This is the Japanese translation of this tutorial (in English). In this tutorial, you create and deploy an application that leverages the open source PrimeFaces JavaServer Faces (JSF) component suite library. JSF was designed to allow developers to create new components while leveraging the JSF life cycle, managed beans, and expression language. As a result, simply by adding a third-party library to your project, you can create a completely different look and feel and add functionality beyond the core JSF libraries.The NetBeans integrated development environment (IDE) supports PrimeFaces out of the box. It is easy to create, deploy, and test applications that use the component suite directly with a local Oracle WebLogic Server instance and remotely with Oracle Cloud.
This is the Japanese translation of this tutorial (in English). In this tutorial, you configure NetBeans with a local instance of Oracle WebLogic Server 11g (10.3.6) and with a remote instance of Oracle Cloud. Next, you deploy a simple Java Platform, Enterprise Edition (Java EE) application locally, and then you deploy the same application to Oracle Cloud with a simple change to the project configuration file.
This is the Japanese translation of this tutorial (English version). This tutorial shows the basics of Contexts and Dependency Injection (CDI) for Java EE 6 by developing a sign-up form that uses servlets to process its data and inject Java beans.
Contexts and Dependency Injection (CDI) is a new feature in Java EE 6 that defines a powerful and type-safe Dependency Injection using “contextual” references or scopes. Based on the JSR-299 specification, CDI supplies a set of services that allow Java EE components (such as EJB session beans and JavaServer Faces managed beans) to be bound to lifecycle contexts. These components can then be injected and interact in a loosely coupled way by firing and observing events. The contextual nature of CDI allows the use of beans from different scopes to be more natural and convenient.
This is the Japanese translation of this tutorial (English version). In this tutorial, you create a JSF 2.0 / JPA 2.0 human resources (HR) application by using wizards built into the NetBeans integrated development environment (IDE). You develop, deploy, and test the application locally in a WebLogic Server 11g instance, and then deploy and test the application in Oracle Cloud.
Overview of Java ME Embedded architecture and the Java ME Embedded documentation