background preloader

Java

Facebook Twitter

Java Tip 66: Control browsers from your Java application. It's great that Java applets and browsers are so tightly integrated, but what if you want to have your Java application display a URL? There's no API call in any Java package that can help you with that. However, using the exec() command, you can fork a process and issue a command to the underlying OS. The only problem is figuring out just which command needs to be issued to control the browsers on each platform. On Unix, for Netscape, it was easy to figure this out as you only need to type "netscape -help".

If Netscape is already running, the command is this: netscape -remote openURL( And, if the browser is not already running, you type: netscape Under Windows, it took much exploration and a bit of luck to find something equivalent that wouldn't open a new browser windows for each request. Follow-up tips From Ryan Stevens: For Mac users, here's an easy way to open a Web page in the default browser, usi ng MRJ 2.2: From Mark Weakly: Conclusion. Unraveling Java Technology Terminology. Packaging and Deploying Desktop Java Applications. Contributed by Max Sauer and maintained by Patrick Keegan One question that a lot of beginning programmers have is: "Now that I've created my application in the IDE, how do I get it to work from the command line outside of the IDE.

" Similarly, someone might ask, "How do I distribute this application to other users without having to give them the whole IDE as well? " The answers to these questions are relatively simple, but not necessarily obvious. This document addresses those questions by taking you through the basics of using NetBeans IDE to prepare your applications for distribution and then deploying those applications. In addition, this document provides information that you might need to configure your system (or which you might need to pass on to the users of your application).

We will show a few different approaches for deploying an application, so that users can access the application by: Double-clicking the application's Java Archive (JAR) file. . $ unzip DeploymentTutorial.zip #! Java GUI Applications Learning Trail - NetBeans Tutorials, Guides and Articles. Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials) Learn Java for Android Development: Introduction to Java. Free Java Tutorials & Guide | Java programming source code.

Learn Java by Examples. Introduction to Java programming, Part 1: Java language basics. Introduction to Java programming, Part 1 Object-oriented programming on the Java platform Find out what to expect from this tutorial and how to get the most out of it. About this tutorial The two-part Introduction to Java programming tutorial is meant for software developers who are new to Java technology. This first part is a step-by-step introduction to OOP using the Java language. Part 2 covers more-advanced language features, including regular expressions, generics, I/O, and serialization. Objectives When you finish Part 1, you'll be familiar with basic Java language syntax and able to write simple Java programs.

Prerequisites This tutorial is for software developers who are not yet experienced with Java code or the Java platform. System requirements To complete the exercises in this tutorial, you will install and set up a development environment consisting of: JDK 8 from OracleEclipse IDE for Java Developers Download and installation instructions for both are included in the tutorial. Loops. jQuery Mobile.

JavaScript

Java. 8 Free Sites to Learn Java Online. Java is a general-purpose, concurrent, class-based, object-oriented language that is specifically designed to have as few implementation dependencies as possible. It is intended to let application developers “write once, run anywhere.” Java is currently one of the most popular programming languages in use, particularly for client-server web applications. And knowing Java can be a lucrative skill to possess in the current computer-and-Internet-focused marketplace. 1. Java2s.com provides with a wide variety of Java examples, organized by topics. The different categories of this site include EJB3 resources, JPA, GWT, JDK 6, Web Services SOA, Scripting resources and more.

Check also at the Java Hibernate process, velocity tools, swing components, language basics and development class among many other topics. 2. 3. 4. 5. 6. 7. 8. The Java™ Tutorials. The Java Tutorials are practical guides for programmers who want to use the Java programming language to create applications. They include hundreds of complete, working examples, and dozens of lessons. Groups of related lessons are organized into "trails". The Java Tutorials primarily describe features in Java SE 8. For best results, download JDK 8. What's New The Java Tutorials are continuously updated to keep up with changes to the Java Platform and to incorporate feedback from our readers. Lambda expressions enable you to treat functionality as a method argument, or code as data. Apart from fixing typos and errors, this update includes also includes the following: The Security trail has been restructured; find security information about applets and Java Web Start applications in the Java Applets lesson.

Trails Covering the Basics These trails are available in book form as The Java Tutorial, Fifth Edition. Creating Graphical User Interfaces Specialized Trails and Lessons. New to Java Programming Center. Java Basics offers a quick overview and the steps to create a 'Hello, World' program. Get Started provides the resources needed to develop applications with Java technologies Training includes courses, certifications and package information Connect with the millions of existing Java professionals via conferences, blogs and more.

Young Developers covers online resources to learn Java application development at any age, as well as a tutorial about Minecraft mods and Java What's New! JavaOne 2014 Sessions Replay Available Virtual Technology Summit on Demand Java The Complete Reference, by Herbert Schildt (Free Sample) 20% discount on the latest Java Books from Oracle Press Oracle's Java Magazine features The Internet of Things Save 50% on NEW Java ebooks from O’Reilly Media. Use CRC Press discount code KVM37 for a 20% discount off book purchases. TEST YOUR KNOWLEDGE with a series of questions from Herb Schildt: .. Click here for the answer Why Java? Technology Network for Java Developers. Oracle Technology Network > Java Software Downloads View All Downloads Top Downloads New Downloads What's New Java in the Cloud: Rapidly develop and deploy Java business applications in the cloud.

Essential Links Developer Spotlight Java EE—the Most Lightweight Enterprise Framework? Blogs Technologies Contact Us About Oracle Cloud Events Top Actions News Key Topics Oracle Integrated Cloud Applications & Platform Services. SQL, PL/SQL, and Java. In Oracle, SQL, PL/SQL, XML, and Java all interoperate seamlessly in a way that allows developers to mix-and-match the most relevant features of each language. SQL and PL/SQL form the core of Oracle's application development stack. Not only do most enterprise back-ends run SQL, but Web applications accessing databases do so using SQL (wrappered by Java classes as JDBC), Enterprise Application Integration applications generate XML from SQL queries, and content-repositories are built on top of SQL tables.

It is a simple, widely understood, unified data model. It is used standalone in many applications, but it is also invoked indirectly from Java (JDBC), Oracle Call Interface (dynamic SQL), and XML (XML SQL Utility). Overview of PL/SQL PL/SQL is Oracle's procedural language extension to SQL. It provides a server-side, stored procedural language that is easy-to-use, seamless with SQL, robust, portable, and secure.

PL/SQL enables you to mix SQL statements with procedural constructs. Cursors.