We've previously written about installing Oracle JDK 7 in Ubuntu using a script with a GUI provided by Zenity. Some may find this method hard to use and also, it comes with GTK dependencies. So as an alternative that doesn't have any GTK dependencies and comes with automatic updates too, I've set up an Ubuntu PPA for the latest Oracle Java 7 (JDK). If you really need to use Oracle (ex Sun) Java instead of OpenJDK in Ubuntu, here's an easy way to do it: a PPA repository to install and keep your computer up to date with the latest Oracle Java 7 (Java JDK which includes JRE). Install Oracle Java 7 in Ubuntu via PPA Repository
Jersey (JAX-RS) implements a HTTP Basic Auth decoder | Simple API I recently play with a pretty nifty framework called Jersey, allowing to make REST application using annotations under Java. This framework (and other JAX-RS implementation) is a pretty well done framework, quite easy to use, and pretty interesting feature inside. I will describe here a HTTP Basic Auth using Jersey system. The HTTP Basic Auth allow to join, on each request, some login/password information to allow/disallow resources, regarding that authentification. If you follow the REST rules, you already know that REST application are stateless, which means that you must NEVER have a login phase before accessing resources : all login you have to do has to be done within the request (basically we will set a special HTTP header for that). In this case, Basic Auth is a usefull feature from HTTP protocol for doing that.
Oracle Oracle Technology Network > Java Article Why, Where, and How JavaFX Makes Sense CaptainCasa moved from Swing to JavaFX for front-end infrastructure, explaining that implementing an employee desktop front end with native technology is a valid approach and that JavaFX is a good fit.
unnamed pearl by Matthew Ford, 1st January 2005 (revised 13 th August 2009 to remove dead links) ©2005-2009 Forward Computing and Control Pty. Ltd. NSW Australia All rights reserved. Abstract
An Overview of RMI Applications (The Java™ Tutorials > RMI) RMI applications often comprise two separate programs, a server and a client. A typical server program creates some remote objects, makes references to these objects accessible, and waits for clients to invoke methods on these objects. A typical client program obtains a remote reference to one or more remote objects on a server and then invokes methods on them. RMI provides the mechanism by which the server and the client communicate and pass information back and forth.
1. Which of the following are valid definitions of an application’s main( ) method? a) public static void main(); b) public static void main( String args ); c) public static void main( String args ); d) public static void main( Graphics g ); e) public static boolean main( String args ); 2. 64 Java questions for any job interview
Producer consumer in Java 2 : Producer Consumer « Threads /* * Copyright (c) Ian F. Darwin, http://www.darwinsys.com/, 1996-2002. * All rights reserved. Software written by Ian F.
Java - Le Keyword di Java (1/2)
by Gunnar Sletta In addition, Qt Jambi provides the Java User Interface Compiler (JUIC), its own tailored version of Qt's user interface compiler. JUIC makes it possible for Java developers to take the advantage of Qt Designer , Trolltech's tool for designing and building graphical user interfaces from Qt components, by converting Qt Designer 's user interface definition files to Java source files. In this article we will take a closer look at Qt Jambi to see how the Qt framework is integrated with Java. We will do this by writing a small example application. The application is a game called , inspired by the arcade classic of a similar name, where the player scores points by using a paddle to bounce a ball against a brick wall in an attempt to demolish it brick by brick. Meet Qt Jambi
Building » Qt Jambi
How to make use of runtime class information in Java programs By Bill Venners, JavaWorld.com, 02/01/99 One of the cool things about Java's object model is that Java objects are "conscious": given a reference to an object, you can get information about that object's class. This "runtime class information" makes possible all kinds of interesting designs and implementation techniques. But how are we to use this capability? When I think about Java's support for runtime class information, two clichés come to my mind: Design with runtime class information
Cobra: Java HTML Parser & Viewer (Open Source) Cobra: Getting Started This page provides an overview of the Cobra API and tips for getting started. Test Program
Java Tip 70: Create objects from jar files! Combine a custom ClassLoader with a JarResources manager to instantiate classes stored in jar files By John D. Mitchell, JavaWorld.com, 03/01/99 In Java Tip 49 , (coauthored with Arthur Choi) we learned how to extract Java resources from jar (Java Archive) and zip archives, and in Jack Harich's Java Tip 39 , we learned how to create custom class loaders to load class files via the local filesystem or the network.