This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Environment variables may contain separators, e.g. with csh: set list=( a \ b \ c ) setenv LIST "$list" When netbeans encounters this in the environment, it throws an IOException.
Created attachment 18963 [details] Exception stack dumped by netbeans at IOException
The expeiton come from java.io package. This is maybe problem of JDK. It is only netbeans problem ? Tries do to set the variable in other java application ?
As indicated by the stack listing, the exception is thrown explicitly by netbeans at org.netbeans.core.NbTopManager.readEnvMap(NbTopManager.java:573) This method contains something like: if (cc == sep) { throw new IOException( "Environment variable name starting with '" + key + "' contained the separator (char)" + (int)sep); } In /bin/csh, doing this before starting netbeans will cause the problem: setenv LIST " a \ b \ c"
Is it allowed to have separators in env variables?
Reassigning for evaluation.
Petr, please look at this, thanks.
> Is it allowed to have separators in env variables? Generally, yes. Strange it doesn't fail on IFS. Anyway, upgrading to JDK1.5 will fix your problem as it has the API for enviroment access. I'm closing this as WONTFIX as it is generally impossible to parse the enviroment with separators properly (imagine a\nb=bb\nc) and there is a superior solution already.
closing.