Skip navigation

Monthly Archives: October 2008

There is few ways to set path or environment variables in linux. Not every linux distros had the same way to do this, but the commons way we can set path using this three methods:

– using file ~/.bashrc
– using file ~/.bash_profile
– create bash file (*.sh) in folder /etc/profile.d/

Sometimes in a linux distro can use all that three methods, sometimes it isn’t, based on the distro. We only have to use one of that three methods to setting path or environment variables.

I don’t really know what is the different between setting path in ~/.bashrc or in ~/.bash_profile, the result is the same 🙂 . It’s user level bash file, the setting is only work for current user. I think when a user login or a user open a shell terminal, it will read settings on those two files (user own version). To set path in that two files just open in text editor or using VI editor, and enter the path, usually in the last line. Save and reopen shell terminal. The sample will look like:

export JAVA_HOME=/opt/jdk1.6.0
export PATH

Other alternative is create .sh in folder /etc/profile.d/, for example To create file in that folder we need root access, and the setting will apply in all user, so it’s system wide setting (that’s i called it). Again i think when linux boot and run, it will read every *.sh files in the folder and set the linux system based on the files. But notes, not every linux distro set linux system using this method, sometimes it’s not working. So in the, enter path setting like in above sample. Save and reboot your computer.

If there’s other ways, please tell me. Thanks.

IntelliJ IDEA 7 work with many popular application server such as JBoss, Glassfish, Weblogic. Tomcat. It built-in plugins, ready to use after fresh installation of IntelliJ IDEA.

This article will show how to configure IntelliJ with JBoss Application Server. Major steps in this article will also work with other application server. First we need to configure web browser that we will use.


1. Press configure button

2. Select General button

3. Set the path of web browser, then press OK button.


1. Create New Project

2. Create Project from scratch, Select Next

3. Set project name and path, select Java Module, select Next

4. Select Next

5. Select Web Application Checkbox, select Finish

6. Project structure will look like this

7. To begin configure application server press arrow button, then select ‘Edit Configuration’

8. Select ‘JBoss Server’, select Local

9. Set the name of application server, press configure to set application server path.

10. Select default for server instance, then press ‘Fix’ button

11. Press ‘Add Application Server specific descriptor’ button, select appropriate descriptor, press OK. Then select ‘Java EE Build Settings’ tab

12. Checks like shown in picture below. Then press OK

13. Select ‘Deployment’ tab, select Web Facets. Web Facets is web application that we want to run. Select WAR files from ‘Deployment Source’

14. Go to ‘Server’ tab, startup page will look like shown below. Then press OK

15. Press Run button to start application server and launch web application

16. The result 🙂


IntelliJ IDEA is really intelligence IDE. Better than Eclipse and Netbeans. You will be amazing with it plugins like Hibernate and Spring.