Short and nice tutorial, which gives you an overview about Binding, Shapes and Animation (timelines and tweens) by Josh Marinacci
Today is Independence Day in the US. Families and friends gather together to barbecue, swim, play sports, picnic in parks, eat watermelon, enjoy each other's company, and watch fireworks displays.
The founders of this country fought for people to be able to think freely and pursue their beliefs without repercussions.
Today, I honor Amaury Rodríguez Pérez, a developer and NetBeans fan from Cuba, who, because of US export laws, is unable to freely download NetBeans. My hope is that one day the political issues between our two countries will be healed. Hope for equality, liberty and justice around the world.
Amaury and his son Adrian showing off the NetBeans 6 and Translation Team tshirts.

It seems like the software development process is driven by developers :-). Fast booting, text-based configuration, IDE-integration and hot deployment - or better no deployment are key to developer acceptance in appserver market. Small footprint and modularization can be derived from the previous requirements. Nonetheless, the development phase ends with the delivery of your software to your customer - and so operations. Often developers choose "lightweight" application servers for development - and deployed to application servers maintained by the operations. The problem is: although with Java EE 5 there are no more problems with porting an application from one server to another, but the servers can still behave different. So there is always some fraction here.
The operators prefer application servers with good monitoring capabilities, easy visual administration (or easy console administration - it really depends on the company) - but just don't care about boot times, hot deployment etc. Glassfish is the first, server I know, that tries to satisfy developers as well as operations. And it is opensource on top... It is small enough to use it for your day to day job, and it can scale to an enterprise system. Furthermore - Glassfish comes with excellent monitoring capabilities, nice visual console - even the documentation is directly accessible from the admin console ...as PDF. This is what administrators like - but it is still possible to configure Glassfish using XML and command line interface.
By scaling, I do not only mean "throughput", but deploying EJB 3, WebBeans (Seam), JCA, JMS connectors etc. if needed as well. Also the acronyms sounds scary, it is really easy to access e.g. an SAP system via JCA (or JRA), or communicate with a mainframe via JMS. Btw. even really simple applications are easier to build with EJB 3, than without.
So, "Tomcat Today, Glassfish Tomorrow - or I would rather say: Glassfish v2 Today, Glassfish v3 Tomorrow :-)". And...even Rod Johnson likes Glassfish :-).
I quickly slapped together a GlassFish article for DZone. It mainly focuses on the current GlassFish v2 release. Somehow in the process of publishing this, it didn't come clear that I was on the GlassFish team (although it was clear to the editor I exchanged emails with). I wonder if the rather very favorable comments would have been the same if my role had been better advertised. I've updated my profile to make my affiliation clear.
Hey, Finally, NetBeans Quizzes comes to an end, the much awaited Grand Finale, promises to be the most spectacular end of a long series of quizzes spanning 11 weeks with 1 quiz per week, 11 winners and 96295 participants! What amazing statistics! Anyways, time to tell you about the winner of the last quiz; Week 11 - Winner: Sourav [...]
This week's Gadget-of-the-Week is a emerging as technology-rich, carbon-light, alternative energy version that is City 2.0. More...
Surprised!
No need to be, its meant for Spanish NetBeans Users! ;-) I am just joking, actually in English, we say Latest Contributions! Yes, time has come again to update you about the latest from the Community Docs Program.
Lets give a warm welcome to NetBeans Dream Team member - Aristides Villarreal Bravo, for contributing Spanish version of an already existing platform tutorial, written in English, based on Visual Library API!Tutorial de NetBeans Visual Library en Español
Also, there have been some more contributions over the past few days, post FY(07-08)! You may have a look at them, and as always you are the ultimate judges, so use the tutorials, tips and Tricks, FAQs and comment/suggest what ever you feel like?
Happy NetBeaning!
In addition to Getting Started with Spring RCP, I've now also written Getting Further with Spring RCP. It's pretty interesting what Spring RCP can do for your Swing applications. This part covers Spring RCP dialogs, the Form Builder, and rules based validation, with this result:
I'm looking forward to getting even further with it...
Two new articles on scripting languages. The first discusses the mechanics in Java to interface/integrate scripting languages and Java. The second article offers a tutorial/article showing how to use JMaki, PHP, MySQL to build a web app. More...
This message shouldn't be missed by those that would like to influence the NetBeans 6.5 release quality. It was sent to nbusers mailing list
Hello folks, NetBeans IDE 6.5 is approaching its stabilization phase and we are glad to extend to you an opportunity to participate in our 2 months NetBeans 6.5 Community Acceptance Testing (NetCAT) program [1]. With NetBeans 6.5, we have incorporated many features requested by the community. Just to listen the biggest and most noticeable ones: * Scripting languages support (PHP, Ruby, Groovy, JavaScript) * Enhanced DB tooling and improved integration with MySQL * Background compilation, new Generic Language Framework APIs * Support for custom project structures * New UML drawing area control * and much more... Now we need your help. If you have an experience with NetBeans and want to contribute some time and effort, go for it and register [2] now! We are looking for 60 dedicated users willing to help NetBeans 6.5 become the best IDE. Applications are being accepted until next Monday - July 7, 2008. Each participant committed to providing timely feedback during this program will be given a chance to significantly influence the quality of the NetBeans 6.5 release. Besides, there are some gifts prepared for all helpful members. Ready to contribute? We look forward to hearing from you! Best regards, Jiri Kovalsky NetCAT 6.5 coordinator [1] http://qa.netbeans.org/processes/cat/65/index.html [2] http://qa.netbeans.org/processes/cat/65/application.html
It's actually funny, or tragic. Sun started in August 1999, the Java Embedded Server 1.0 product (JES) for residential gateways.
In May, 2000 JES 2.0 software became even OSGi compliant. I gave some workshops in 2001 / 2003 timeline, but actually no one was really interested in OSGI at the time.
Why Sun is just not waiting for about 10 years, until they announce their products? :-) The same (tragic) story, like with JavaBlend and JINI... Sometimes it is interesting to delve into the history of Java.
I made a small typo (springrpctooling instead of springrcptooling), but aside from that glitch, it's all good and the sources are now available here, graduated from the Java Tools incubator:
Looking at various LISP environments are pushing me toward looking at a NetBeans LISP IDE extension. More....
Accessing the IRB Console from the IDE
The Ruby support in the NetBeans 6.1 IDE includes the Interactive Ruby (IRB) Console. To open the console, choose Window > Other > Ruby Shell from the main menu. The console opens in the bottom window.

The interpreter that is used by the console depends on the main project's Ruby Platform setting (the bold project node in the Projects window is the main project). To see the Ruby Platform setting, right-click on project's node and choose Properties. If your project is a Ruby project, select Run in the Categories pane to see the Ruby Platform setting. You can switch to a different platform, if you want.
The tab for the IRB console window indicates which the interpreter it is using. In the above screenshot, you can see that the IDE is using the Built-In JRuby platform.
To exit from the IRB console, type exit or quit, and close the window.
Using Gems in the IRB Console
Before you can use gems in the IRB, you have to load RubyGems. Most platforms take care of this for you. For those that do not, such as the built-in JRuby platform, you must load it yourself. If you do not load RubyGems, you will see an error similar to the following output.
>> require 'renum'
LoadError: no such file to load -- renum
from (irb):2:in `require'
from (irb):2:in `signal_status'
The quickest way load RubyGems is to type the following statement in the console.
>>
require 'rubygems'
If you do not want to type that every time you open an IRB console, you can
add -rubygems to the Ruby Options text box in the
project's Properties dialog box.

Using .irbrc Files for Common
Settings
Another way to load RubyGems every time you open the console, is to add or
copy over an .irbrc file to the project's top level folder and add
require 'rubygems' to that file. To create an .irbrc
file, right-click the project node and choose New >
Other from the pop-up menu. Select Other in the
Categories pane, select Empty File in the
File Types pane, and click Next. Name the
file .irbrc and click Finish.
If you have IRB settings that you would like applied to all your projects,
such as loading RubyGems, you can put the settings in an .irbrc
file in your home directory. In order to get the IDE to read this file when
opening the IRB console, you must create a HOME system environment
variable (be sure to make it all capital letters) that provides the path to
your home directory, and restart the IDE.
Note that you will not see the .irbrc file in the Projects
window or the Files window. To learn how to configure the IDE so that you can
see this file, see MRHAKI's blog
that shows how.
Using the JRuby IRB Console
The IDE also offers support for the JRuby IRB console. With this console, you get code completion, as shown below. You can type the first few characters and press Tab to see a list of suggestions.

The JRuby IRB console also has a history feature. Pressing the Up-Arrow key scrolls through through the command history and pressing the Down-Arrow key scrolls back. You can press Return to re-execute a command.
To enable the JRuby IRB console, add the following flag to your NetBeans IDE
startup command or add it to the netbeans_default_options entry in
the netbeans-install-dir/etc/netbeans.conf file, and
restart the IDE. One problem with this option, is that you get the JRuby IRB
console, regardless of which platform your project is using.
-J-Dirb.jruby=true
Hi all,
As you probably know, PHP is major story for NetBeans 6.5. Some engineers have already started breaking in users by blogging about NetBeans and PHP. This is something you should be reading.
See it here:
http://blogs.sun.com/netbeansphp/
Cheers!
--James
Netbeans 6.1 is able to automatically assign a return value and create a variable for you. This is really convenient. To try it out do the following:
- Type e.g. new java.util.Date(); (or new Date() with strg+space -> it will import it for you), or invoke an arbitrary method with a return value (e.g toString()).
- Then go with the cursor to Date() (or the method).
- You should see a yellow bulb on the left. Either click on the bulb, or click alt+enter.
- Netbeans should suggest you: "Assign Return Value To New Variable" just press Enter.
- Netbeans will create a variable, derive the name and the type. The end result is: Date date = new Date();
Lloyd and I will be recording another NetBeans Podcast during this week. You can expect several new segments in the upcoming podcasts, such as a recurring segment by Jaroslav Tulach (the original NetBeans API architect) where he will share a tip related to his upcoming API Design book.
However, you have all of this week to... send the ANSWER to the previous NetBeans Podcast puzzler! The puzzler was set in the 42nd minute of the podcast and this time you can win... a copy of Rich Client Programming: Plugging into the NetBeans Platform (by Jaroslav, Tim, and myself, among others), together with a t-shirt.
Click the pretty picture below, listen to the puzzler and solve it and send the answer to nbpodcast AT netbeans DOT org.
NetBeans Podcast Episode #43 (45 min, size: 46.5 MB)
For a complete breakdown of everything that happens during this podcast, see the related NetBeans Zone announcement.
Good luck!
The following are some useful resources to obtain information on NetBeans:
| Resource |
Notes |
| netbeans.org |
Start here... |
| Obtain professional support |
Sun Microsystems support offerings for the NetBeans IDE... |
| my.netbeans.org |
Your own customized netbeans.org... |
| netbeans.tv |
connecting the diverse and worldwide community of People... |
| Community |
Register to Join the NetBeans Community... |
| Mailing Lists |
If you are a NetBeans IDE user, and want support, first subscribe to the nbusers list, then post your question there... |
| Report a bug |
To file an issue in the netbeans.org bugtracking system (Issuezilla) : |
| Community wiki |
Releases, planning , faqs, builds, sources, articles and more... |
| Community Docs | NetBeans documentation contributed by the community |
| Articles |
This is a repository for articles about NetBeans IDE that supplements the standard documentation set... |
| NetBeans zone |
The social network for developers...From lengthy articles to tips & tricks -- they're all welcome there, so long as they relate to NetBeans IDE or the NetBeans Platform. |
| javapassion |
Tutorials and articles |
| Planet NetBeans |
Blogs... |
Requirements:
- Installled JDK 1.5 (better 1.6)
- An IDE of your choice e.g. vi, emacs, netbeans 6.1 (SE or EE), Eclipse Genymede (SE or EE)
- @Stateless, @Local Annotations in classpath
- An Java EE 5 capable application server of your choice. It will work with Glassfish v1+ (better v2), JBoss 4.2+, WLS 10+ and probably Geronimo (not tried yed)
What is to do:
- In the IDE you will have to point to a JAR containing the two annotations. If you have the Reference Implementation installed (Glassfish), put just: glassfish\lib\javaee.jar to the classpath. IDEs with built in EE support have already everything you need. However for the very first time I would prefer to develop "from scratch" an EJB.
- Create an interface with a method (without a method is a little bit odd :-)):
import javax.ejb.Remote;
@Remote
public interface HelloWorld {
public void sayHello();
} - Create a class which implements this interface. You will be forced by a good IDE (probly not by vi or emacs) to implement this interface:
import javax.ejb.Stateless;
@Stateless
public class HelloWorldBean implements HelloWorld {
public void sayHello() {
System.out.println("Hello!");
}
} - Compile everything and JAR the output (in Netbeans just "build", in Eclipse "Export -> JAR")
- Copy the JAR into the autodeploy folder of WLS 10 (bea10\user_projects\domains\YOUR_DOMAIN\autodeploy), or glassfish\domains\domain1\autodeploy in the case of Glassfish v2, or jboss-4.2.2.GA\server\default\deploy in case of JBoss
- Inspect the log files, you are done :-)
What you have gained:
- It's threadsafe (in multicore environments as well)
- Remoting: you can access the interface remotely
- It's transactional - transactions are started for you
- It's pooled - you can control the concurrency and prevent "denial of service" attacks.
- It's monitored: and EJB have to be visible through JMX. Application servers provide additional monitoring services as well.
- Dependency Injection just works - you can inject persistence, other beans, legacy pojos (I will cover this in some upcomings posts)
- It's portalble and so vendor-neutral. Deployment to different application servers just works
- There is NO XML.
- Its easily accessible (via DI), from Restful services, JSF, Servlets etc.
- Clustering and security are beneficial as well - but not the main reason to use EJBs
Spring RCP tooling in the Plugin Portal, since today, which makes sense in combination with Getting Started with Spring RCP, a tutorial that is available on Javalobby.
When you look at all the great video tutorials, podcasts, and tips and tricks that Roumen did for NetBeans, what could we give Roumen in return for his work to thank him?
Today I thought: What about this link to James Wallis' Brave N00b World? I bet he'd enjoy that. :-D
In case you wonder what kind of job opening Roumen would need to smuggle into the company database to get to make a living studying the world of the World of Warcraft: It's metaverse evangelist, apparently!
PS: Don't worry, despite the Roumen-shaped hole on NetBeans.org, Geertjan and Lloyd will continue to provide you with NetBeans podcasts and video tutorials etc as Roumen already mentioned. Stay tuned! :-)
![]() |
Substruct is an open-source E-Commerce project written using Ruby-on-Rails framework. It provides a simple e-commerce platform, content management system and customer response system - all in one. |
I found out about this application from Sang "Passion" Shin's Lab 5542 (part of FREE 20-week course on Ruby-on-Rails starting on Jul 15, 2008). But instead of using standard WEBrick/Mongrel deployment, I describe the steps to deploy this application using GlassFish v3 Gem. The GlassFish Gem installation is described here.
- Download
and install Substruct
~/samples/jruby >gunzip -c substruct_rel_1-0-a3.tar.gz | tar xvf -
substruct_rel_1-0-a3/
substruct_rel_1-0-a3/app/
substruct_rel_1-0-a3/app/controllers/
substruct_rel_1-0-a3/app/controllers/application.rb
. . .
substruct_rel_1-0-a3/vendor/rails/railties/test/rails_info_test.rb
substruct_rel_1-0-a3/vendor/rails/railties/test/secret_key_generation_test.rb
substruct_rel_1-0-a3/vendor/rails/Rakefile
substruct_rel_1-0-a3/vendor/rails/release.rb - Install the required gems for Substruct
~/samples/jruby >~/testbed/jruby-1.1.2/bin/jruby -S gem install RedCloth fastercsv mime-types mini_magick ezcrypto jruby-openssl --no-ri --no-rdoc
JRuby limited openssl loaded. gem install jruby-openssl for full support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
Bulk updating Gem source index for: http://gems.rubyforge.org/
Successfully installed RedCloth-3.0.4
Successfully installed fastercsv-1.2.3
Successfully installed mime-types-1.15
Successfully installed rubyforge-1.0.0
Successfully installed hoe-1.5.3
Successfully installed mini_magick-1.2.3
Successfully installed ezcrypto-0.7
Successfully installed jruby-openssl-0.2.3
8 gems installed - Create the database
~/samples/jruby/substruct_rel_1-0-a3 >~/testbed/jruby-1.1.2/bin/jruby -S rake db:create
(in /Users/arungupta/samples/jruby/substruct_rel_1-0-a3)
[SUBSTRUCT WARNING]
Mail server settings have not been initialized.
Check to make sure they've been set in the admin panel. - And bootstrap it as
~/samples/jruby/substruct_rel_1-0-a3 >~/tesbted/jruby-1.1.2/bin/jruby -S rake substruct:db:bootstrap
(in /Users/arungupta/samples/jruby/substruct_rel_1-0-a3)
Checking requirements...
Initializing database...
[SUBSTRUCT WARNING]
Mail server settings have not been initialized.
Check to make sure they've been set in the admin panel.
-- create_table("content_nodes", {:force=>true})
-> 0.3020s
-- add_index("content_nodes", ["name"], {:name=>"name"})
-> 0.0140s
-- add_index("content_nodes", ["type", "id"], {:name=>"type"})
. . .
-- initialize_schema_information()
-> 0.0200s
-- columns("schema_info")
-> 0.0650s
Clearing previous data...
Removing all sessions...
Loading default data...
...done.
================================================================================
Thanks for trying Substruct 1.0.a3
Now you can start the application with 'script/server'
visit: http://localhost:3000/admin, and log in with admin / admin.
For help, visit the following:
Official Substruct Sites
- http://substruct.subimage.com
- http://code.google.com/p/substruct/
Substruct Google Group - http://groups.google.com/group/substruct
- Subimage LLC - http://www.subimage.com - And finally run it on the GlassFish as:
~/samples/jruby >~/testbed/jruby-1.1.2/bin/jruby -S glassfish_rails substruct_rel_1-0-a3
May 28, 2008 1:47:46 PM com.sun.enterprise.glassfish.bootstrap.ASMain main
INFO: Launching GlassFish on HK2 platform
May 28, 2008 1:47:46 PM com.sun.enterprise.glassfish.bootstrap.ASMainHK2 findDerbyClient
INFO: Cannot find javadb client jar file, jdbc driver not available
May 28, 2008 1:47:47 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy start
INFO: Listening on port 3000
May 28, 2008 1:47:47 PM com.sun.enterprise.v3.services.impl.GrizzlyEmbeddedHttpConfigurator configureSSL
WARNING: pewebcontainer.all_ssl_protocols_disabled
May 28, 2008 1:47:47 PM com.sun.enterprise.v3.services.impl.GrizzlyEmbeddedHttpConfigurator configureSSL
WARNING: pewebcontainer.all_ssl_ciphers_disabled
May 28, 2008 1:47:47 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy start
INFO: Listening on port 3131
May 28, 2008 1:47:47 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy start
INFO: Listening on port 3838
May 28, 2008 1:47:48 PM com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter setContextRoot
INFO: Admin Console Adapter: context root: /admin
May 28, 2008 1:47:48 PM com.sun.enterprise.rails.RailsDeployer registerAdapter
INFO: Loading application substruct_rel_1-0-a3 at /
May 28, 2008 1:47:48 PM
INFO: Starting Rails instances
May 28, 2008 1:47:56 PM com.sun.grizzly.jruby.RubyObjectPool$1 run
INFO: Rails instance instantiation took : 8800ms
May 28, 2008 1:47:56 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: Glassfish v3 started in 10403 ms
The welcome screenshot looks like

Now copy GlassFish logo image file to "public/images" directory of your application and add the following line to "app/views/layouts/main.rhtml" file (on line 36):
| <a href="http://glassfish.org"><%= image_tag('/images/glassfish-logo.gif', :alt => 'GlassFish') %></a> |
The modified view looks like as shown below:

The updated output looks like:

I tried only the basic deployment and that seem to work. If you try slightly more advanced usecases then the functionality provided by RedCloth, fastercsv, mime-types, mini_magick and ezcrypto gems can be exercised as well. If you are running Substruct, try it and let us know.
If your Rails application does not work on the gem, file bugs here with "jruby" as "subcomponent" (default version is "v3").
Also check out Redmine on GlassFish v3.
Technorati: rubyonrails glassfish netbeans substruct webtier
If you want to build localized jar files of NetBeans Platform on your local environment, please try the following step. You can use these jar files with your NetBeans Platform based applications. To build localized jar files, you need to build NetBeans 6.1 first, then build localized jar files. The detail instruction of l10n-kit and localizing NetBeans is described in
General information about NetBeans sources and build instruction is described in 1. Get NetBeans sources.% hg clone http://hg.netbeans.org/release61 destination directory: release61 requesting all changes adding changesets adding manifests adding file changes added 77536 changesets with 361898 changes to 79879 files 77396 files updated, 0 files merged, 0 files removed, 0 files unresolved %2. Edit release61/nbbuild/user.build.properties. If necessary, please define cluster in nb.clusters.list.
build.compiler=extJavac javac.compilerargs=-J-Xmx512m nb.clusters.list=nb.cluster.nb,nb.cluster.platform,nb.cluster.ide,nb.cluster.java3. Set ant option then run ant
% export ANT_OPTS="-Xmx196m" % cd release61 % ant4. Run build-nbms. To run the target of building localized jar file, it seems that we need to build nbms files. Run build-nbms target too.
% ant build-nbms5. Get localized files under release61/.
% hg clone http://hg.netbeans.org/release61/l10n destination directory: l10n requesting all changes adding changesets adding manifests adding file changes added 177 changesets with 27064 changes to 21005 files 20706 files updated, 0 files merged, 0 files removed, 0 files unresolved %When you want to localize files, pick up l10n-kit of NetBeans Platform. Once you localize them, put your files into src/<lang> directory. For example, if you localize Spanish files, put your files into src/es.
6. Run ant under l10n/.
% cd l10n % antLocalized jar files will be created under dist/ directory. ja, zh_CN and pt_BR files are created by default. If you want only specific language, please use locales property like below.
% ant -Dlocales=ja7. Copy localized jar files into your NetBeans 6.1 installation directory.
8. Run NetBeans in proper locale environment. Or use --locale option to specify the language option.
% netbeans --locale zh:TW
Hi all
Today is the last day of Fiscal Year 2008 (for Sun Microsystems. It was a good year with some impressive acquisitions (think MySQL). I has also been a good year for NetBeans. We saw record downloads. We also saw many significant changes to the IDE (think PHP and JavaScript). NetBeans IDE has never been as good as it is now.
FY 2008 was was also a very good year for the NetBeans Community Docs program. The original Contribution Coordinator, Amit Kumar Saha, gained employment at Sun Microsystems India, and a new Contribution Coordinator was appointed, Varun Nischal. He has done an excellent job.
The NetBeans Community Docs Program had 134 contributions for FY 2008
FY 2008 was also a good year for blogging. I wrote 182 entries to James' Blog during FY 2008 and a few more to the NB Community Docs blog.
Tomorrow it all starts again: FY 2009 will be upon us.
See you then.
Cheers!
--James
It seems like Sun started a commercial support strategy for Glassfish and MySQL bundle called "Unlimited".
An excerpt:
"...At a Glance
- Unlimited server deployments of GlassFish Enterprise Server and MySQL Enterprise
- Reliable, extensible, record-setting application server
- The world's most popular open source database—the defacto standard for massive scale in the network economy
- 90% lower total cost of ownership than traditional database and application server solutions, same enterprise-class support
- Global mission-critical support & services from 1000s of trained field services personnel
- No counting sockets or cores
- No counting support incidents
- No counting servers
- No auditing or true-ups
..."
I would like to see the point: "Global mission-critical support..." extended to something like: "Global mission-critical support, without necessary reproduction of errors with additional, docs, proofs and reproduction samples". I had to open cases for different other application servers and it was as time-consuming, as fixing the error myself. The quality of commercial support is really crucial. Right now, the overall quality of commercial support of the competition is not very high it often operates in "Inversion Of Control" mode. You have to provide the isolated sample app with reproduction code, unit tests and even documentation first, before the support-machinery actually kicks in. It can take even weeks, until a problem is recognized (not solved!) as such.
Let see, but this could be a huge opportunity for Glassfish. See also: "The End Of Commercial Java EE 5 Servers?"
I read an article of recent talking about the price of iPhone been dropped to $200 dollars IN SOUTH AFRICA. This really is d last straw that broke the camels back. When will manufacturers realise that Africa is bigger than south africa. Sun Microsystems is also guilty, developers and technology users elsewhere have been ignored. [...]
This article is about installing PHP environment - PHP, Apache, MySQL and xDebug in Ubuntu 8.04. Everything is available through the default Ubuntu repositories, so it should not be hard. I did this last week, when I prepared a machine for our UI study. It's expected that you have already installed Ubuntu or you use VirtuaBox and you have installed Ubuntu as a virtual machine.
Open a terminal. You will need to install all the parts as root, so you have to execute commands trough sudo or you can in the terminal write command
$ sudo bash
and from this time all what you do in this terminal you do as root. There are the steps for installing the PHP development environment:
- Install Appache web server
apt-get install apache2
- Install MySQL server
The installation of MySQL server will ask for password for root user. It's not mandatory, but I recommend to enter a password.
apt-get install mysql-server - Install PHP 5
apt-get install php5
- Install MySQL extension for PHP
apt-get install php5-mysql
- Install xDebug extension for PHP - the extension for debugging.
apt-get install php5-xdebug
- Setup the Apache web server to use users web sites
After installing Apache the server should be running. If you click this link http://localhost/ the Firefox is opened and you should see the same content as is on the picture.
But when you try the url, which acces web sites in your home folder, it fails. Instead petr write your username:).
To get it work you have to:- Enable userdir module in Apache web server
a2enmod userdir
- Create public_html folder in your homedir (do it uder your account, not as root)
mkdir public_html
- Restart Apache web server
If you do it correctly after refreshing Firefox you should see empty content of the folder as on the picture.
/etc/init.d/apache2 restart
- Enable userdir module in Apache web server
- Enable remote debugging in xDebug
In the folder public_html create index.php file with content:<?php phpinfo(); ?>Refresh Firefox and you should see how the PHP runtime is setup. Search for the property xdebug.remote_enable property. By default this property is switched off as you can see on the picture.
To enable this property you have to open file /etc/php5/conf.d/xdebug.ini and add lineand restart the Apache web server
xdebug.remote_enable=on
/etc/init.d/apache2 restart
This all what you have to install. Now we will set up Apache and PHP.
Technorati Tags:: Java, jax-ws, NetBeans, soap, soaphandler, Spring, web services
Hi all,
Normally I wouldn't be blogging about NetBeans Community Docs here - since we have a NB Community Docs Blog - but now I think it's necessary to recognize a very significant contributor: Varun Nischal. Varun, as you already know, is the Contribution Coordinator for NB Community Docs. He is also a master contributor. In June alone, he has contributed eight docs. Here is the list:
- Creating Always Enabled Action From Scratch
- Creating Conditionally Enabled Action From Scratch
- Transforming CallableSystemAction Into CookieAction
- Transforming CookieAction Into CallableSystemAction
- Hacking Module's XML Layer In NetBeans (Part 1)
- How do I remove Menu Item, Toolbar Button from plug-in's XML Layer?
- How do I have only Shortcut Keys for an Action?
- Hacking Module's XML Layer In NetBeans (Part 2)
--James





