I create a folder in my java program (running on linux) with mkdirs() function of File object. The problem is that the folder gets only read permissions for the group. I nee
On java 6, there are methods that allow you to do this, like setwriteable(). On previous versions of java, you'll have to access the command line to do a chmod command.
Java 6 SE File Class Doc.
EDIT: Woops, I'm completely wrong; I failed to notice that you wanted group permissions specifically. Those don't appear to be settable without Runtime.exec().
@David: You're right.
Another thought: if you have a lot of files to change, how about writing a shell script and calling that from runtime.exec()?