I am facing the problem while running the java program from command line.
I have openjdk-6-jdk installed in my linux system and still shows the error relates with the openjdk-7-jdk.   

Initially i have jdk 7 installed in my system but ater i have removes it but still facing problem while running the application.

after running the cammand 

```
sudo update-alternatives --config java

```

it shows warning as follows

update-alternatives: `warning: /etc/alternatives/java is dangling,` it will be updated with best choice.  

There is only one alternative in link group java: `/usr/lib/jvm/java-7-openjdk/jre/bin/java`
Nothing to configure.

what should I do?