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.

Bug 22002 - dot/period in installation dir name or userdir name
Summary: dot/period in installation dir name or userdir name
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Execution (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-01 17:46 UTC by Jan Benway
Modified: 2008-12-23 10:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Benway 2002-04-01 17:46:31 UTC
A dot or period in the installation directory or userdir name causes problem. In
the kjava module (ffj) having an emulator installed in such a directory causes
the emulator to fail (on Windows 2000 and possibly other OS's).

Also, the IDE appears to fail completely (on Mac OSX) when the install or
userdir has a dot in it.

See this nbuser message:
http://www.netbeans.org/servlets/ReadMsg?msgId=294056&listName=nbusers

The message reported in that message is:

Hello,

    I'm trying to run NetBeans 3.3.1 on Mac OS X. I'm getting this exception 
    on the command line when trying to launch the IDE:

    [localhost:/Applications/NetBeans 3.3.1/bin] william% ./runide.sh
    ./runide.sh: cd: no such file or directory: 3.3.1/bin 3.3.1 [47]
    Using /Users/william/~william/Documents/Programming Projects/NetBeans3.3.1 
    Java Projects as user directory...
    Exception in thread "main" java.lang.NoClassDefFoundError: 
    Projects/NetBeans3/3/1

    Please help!


    William Rae
    williamr1@mac.com
Comment 1 Petr Suchomel 2002-04-02 08:57:02 UTC
Falls on any module. I try random modules from AU. IDE completely
falls, no module installed, IDE restrats again and again. Must be
killed. It is at least NB 3.3.1 problem.
Comment 2 _ ttran 2002-04-02 12:28:36 UTC
the problem is in the space character in "Programming Projects" not th
e dot.  This bug has been fixed for NB 3.4.  See issue 12183

*** This issue has been marked as a duplicate of 12183 ***
Comment 3 Jan Benway 2002-04-02 16:34:03 UTC
Do you know of a dot-related bug? There is definately a dot-related
problem with downloading modules from autoupdate into a directory with
a dot in the name. Or should I reopen this one?
Comment 4 Jan Benway 2002-04-10 17:48:48 UTC
This is not a space in path problem. It is a dot in path problem. I
has been verified for sure in the kjava module: bugtraq 4650798

And I think it is part of the OS X user problem quoted above as well.
The reason I think so is this snipped of output:
"Projects/NetBeans3/3/1"

(directory was named "Programming Projects/NetBeans3.3.1")
Comment 5 _ ttran 2002-04-11 09:14:47 UTC
> And I think it is part of the OS X user problem quoted above as
> well. The reason I think so is this snipped of output: 
> "Projects/NetBeans3/3/1"

this is exactly the effect of bug #12183.  Jan, you must eliminate the
space from the pathnames, leave only the dots there and try again. 
Otherwise how can you be sure that this is a dot problem?

#12183 is fixed only for 3.4dev not for 3.3.1 nor Orion.
I just tried auto-update object browser module with
userdir=/tmp/3.4dev using latest 3.4dev build.  Worked perfectly

*** This issue has been marked as a duplicate of 12183 ***
Comment 6 Martin Ryzl 2002-04-11 17:48:31 UTC
I don't agree that this issue is duplicate of bug #12183. It is more
like a JDK problem. The problem reported for Mac is probably the same
as bug #12183. 

Steps to reproduce (on Windoze):
1) create c:\test.test\test.bat
2) use Runtime.exec("c:\test.test\test") to execute test.bat

Result is:
Exception in thread "main" java.io.IOException: CreateProcess:
c:\work\test.test
\test error=2
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Win32Process.java:66)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Runtime.java:551)
        at java.lang.Runtime.exec(Runtime.java:418)
        at java.lang.Runtime.exec(Runtime.java:361)
        at java.lang.Runtime.exec(Runtime.java:325)
        at test.TestExecDot.main(TestExecDot.java:26)

(2 The system cannot find the file specified. ERROR_FILE_NOT_FOUND)

It seems that JDK is looking for the last dot in the pathname and
considers everything after the dot as an extension.

If Runtime.exec("c:\test.test\test.bat") is used, it works well. Also,
it can work on other OSs but I haven't tested it.

I can affect everyone who executes external commands. We, for
instance, rely on this mechanism because we execute the same
executable on different OSs (emulator on Unix, emulator.exe or
emulator.bat on windows) and we cannot change the implementation of
3rd party emulators.

The question is whether it can be workarounded in NbProcessDescriptor.
Comment 7 _ ttran 2002-04-15 08:28:29 UTC
Martin, you contradict yourself.  Firstly you said

> I don't agree that this issue is duplicate of bug #12183.

but you went on and said that the original problem reported by the Mac
user is a duplicate.  You then you described a problem which is not in
the original bug report at all.

Please close this issue and report your problem as a separate bug
against core/execution
Comment 8 Martin Ryzl 2002-04-15 10:40:51 UTC
Trung, from my point of view, there are two descriptions of the
problem, originally reported by Jam Benway:
1) In the kjava module (ffj) having an emulator installed in such a
directory causes
the emulator to fail (on Windows 2000 and possibly other OS's).
NbProcessDescriptor is used for the execution and everyone who uses it
for the execution may have the same problem. I think this problem is
caused by JDK and I raised the question, whether it is possible to
workaround this problem in NbProcessDescriptor.

2) problem previously reported by someone on nbdev and added by Jan to
this issues because it seemed related.

I think that [1] is another problem than bug #12183 while [2] is
probably the same as bug #12183.
Do you see any contradiction? I not.

The reported problem is [1], [2] was used by Jan because she thougt it
was just another symptom of the same problem. I helped you to identify
the problem. I don't see any reason to create a new issue.

Comment 9 _ ttran 2002-04-16 13:45:32 UTC
Martin, my point is that we should file a separate report for separate
problem.  Otherwise we would have only one issue "The IDE does not
work as expected" and keep fix/verify/reopen it again and again.

The execution problem should have a summary "dot in pathnames causes
external execution to fail" and would be filed against core/execution.  

But if you insist to have it in this report, fine.  I just tried to
make our life (core developers') a bit easier.  
Comment 10 David Strupl 2002-05-10 16:05:39 UTC
Martin, I think you evaluated the problem very well. And I thank you
for doing that.

> Steps to reproduce (on Windoze):
> 1) create c:\test.test\test.bat
> 2) use Runtime.exec("c:\test.test\test") to execute test.bat
>
> Result is:
> Exception in thread "main" java.io.IOException: CreateProcess:
> c:\work\test.test
> \test error=2

I am very sorry but can you suggest how can we workaround this? Check
for OS type and write OS specific code to NbProcessDescriptor? I
cannot agree with this - we would eventually end up in code written
for all supported platforms. So, I am closing this as WONTFIX but I
have created an issue for the JDK team under number 4683032. Please
add your comments or change priority over there (I have added both of
you to the interest list over there).
Comment 11 David Strupl 2002-05-22 09:06:44 UTC
The corresponding bug in JDK has been closed as invalid - you have to
pass different string to the command line interpreter to work
correctly. Please check
http://developer.java.sun.com/developer/bugParade/bugs/4661152.html
Comment 12 Quality Engineering 2003-07-01 15:58:14 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified.

Comment 13 Quality Engineering 2003-07-01 16:50:50 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.