views:

226

answers:

1

I have been trying to launch browser from a java app on Linux. When this app is run for the first time browser don't get opened. The error log shows : shell-init: cannot get current directory getcwd : no such file or directory.

After this if u restart everything falls into place and browser opens fine.

I have tried many things like changing current directory to /tmp using SYstem.setPropert() , but nothing works.

There are many question on this site like this but they didn't help. Will appreciate if someone can provide a workaround.

A: 

Without getting any details your Java code most probably have insufficient rights accessing the directory.

Zed
No i don't think permissions is an issue.Probably it is trying to access the directory which i have cleaned up and gives the error " cannot access current directory getcwd". That's why i try changing the current directory before calling the exec.
Duleb