Hudzilla.org - the homepage of Paul Hudson
Contents > Java and COM Wish List | Report Bug | About Me ]

14.2     Bringing Java into the mix

This is NOT the latest copy of this book; click here for the latest version.

A long time before .NET was even conceived, and even before COM was conceived, Sun's Java project was well underway. With the goal of producing a language that worked anywhere, from small appliances to multiple-CPU servers, Java has become a widespread language offering arguably the most complete set of functionality of any language. Furthermore, it has a powerful virtual machine (VM) system that enables the same binary code to be executed on multiple platforms - wherever there is a Java Virtual Machine (JVM), the binary code can run.

When used with PHP, there are three distinct possibilities: executing Java code line by line, loading and utilising your own Java classes, and creating Swing GUIs. Swing is the name of Java's lightweight windowing toolkit - more on that later.

Installation of Java is quite difficult, simply because Java itself is quite a complicated beast. Java and PHP combined should work on all platforms where Java by itself and PHP work by themselves.

It is important to note that using Java through PHP is largely the same as using Java directly - if you're not a Java programmer, this section will not help much, as there is not space to teach Java and PHP here.





<< 14.1.6 Microsoft .NET   14.2.1 Basic Java use >>
Table of Contents
Want to see this stuff in print? PHP in a Nutshell takes the core topics covered here, adds in thousands of edits from the editorial team and myself, and combines them to make an unbeatable reference for PHP programmers at all levels.



My latest book has hundreds more tips on how to use PHP, Apache, and MySQL, plus Perl, Python, shell scripts, performance tuning, and more!



Top-right shadow
 
Bottom-left shadow Bottom shadow

Comments from other readers
Be the first to add a comment to this chapter!



Add comment
Please note that by posting a comment here you are committing it to the public domain. This is important so that others can make use of your code themselves, and also so that I can incorporate helpful notes directly into the main text. Comments are limited to 2000 characters in length.

If you are reporting an error in the content, please tell me directly.

Your name/email address:
Your comment:
 
Now, in order to verify that you're a real person, please answer this simple question: what is three plus five?
The answer is:
(please write in
numbers, eg 19)


Top-right shadow
 
Bottom-left shadow Bottom shadow