http://bugs.winehq.org/show_bug.cgi?id=29424
Bug #: 29424 Summary: Program in 'path' not found Product: Wine Version: 1.2.3 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: cmd AssignedTo: wine-bugs@winehq.org ReportedBy: john.aaron.rose@googlemail.com Classification: Unclassified
Created attachment 38083 --> http://bugs.winehq.org/attachment.cgi?id=38083 Screenshot demonstrating the bug.
Program which is in a folder in the 'path' is not found even though it is found when that folder is specified explicitly.
http://bugs.winehq.org/show_bug.cgi?id=29424
johnaaronrose john.aaron.rose@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |john.aaron.rose@googlemail. | |com
http://bugs.winehq.org/show_bug.cgi?id=29424
johnaaronrose john.aaron.rose@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|1.2.3 |1.3.35
http://bugs.winehq.org/show_bug.cgi?id=29424
--- Comment #1 from johnaaronrose john.aaron.rose@googlemail.com 2011-12-23 09:11:25 CST --- Created attachment 38085 --> http://bugs.winehq.org/attachment.cgi?id=38085 Screenshot demonstrating the bug in Wine 1.3.35
http://bugs.winehq.org/show_bug.cgi?id=29424
--- Comment #2 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2011-12-23 11:52:50 CST --- Have you restarted Wine?
http://bugs.winehq.org/show_bug.cgi?id=29424
--- Comment #3 from johnaaronrose john.aaron.rose@googlemail.com 2011-12-23 12:21:36 CST --- (In reply to comment #2)
Have you restarted Wine?
Yes.
http://bugs.winehq.org/show_bug.cgi?id=29424
--- Comment #4 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2011-12-23 13:37:45 CST --- Is this only cmd affected? Does 'wine java' works from any directory?
http://bugs.winehq.org/show_bug.cgi?id=29424
--- Comment #5 from johnaaronrose john.aaron.rose@googlemail.com 2011-12-23 14:34:18 CST --- (In reply to comment #4)
Is this only cmd affected? Does 'wine java' works from any directory?
I don't understand the question. java.exe runs if called by specifying the directory that it is in. If called, without specifying the directory that it is in, it is not found even though that directory is in the 'path'.
http://bugs.winehq.org/show_bug.cgi?id=29424
--- Comment #6 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2011-12-23 16:50:27 CST --- Does this work?
cd ~ wine java.exe
http://bugs.winehq.org/show_bug.cgi?id=29424
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|john.aaron.rose@googlemail. | |com | Severity|major |minor
http://bugs.winehq.org/show_bug.cgi?id=29424
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Program in 'path' not found |cmd: program in PATH is not | |found
http://bugs.winehq.org/show_bug.cgi?id=29424
--- Comment #7 from johnaaronrose john.aaron.rose@googlemail.com 2011-12-24 01:48:45 CST --- It gives: wine: Bad EXE format for C:\windows\system32\java.exe
That message doesn't occur on running 'C:\Java\jdk1.6.0_26\bin\java.exe' directly in MSDOS window (created by executing cmd.exe in Ubuntu). So it looks like it half works?
http://bugs.winehq.org/show_bug.cgi?id=29424
--- Comment #8 from Dmitry Timoshkov dmitry@baikal.ru 2011-12-24 07:51:42 CST --- (In reply to comment #7)
It gives: wine: Bad EXE format for C:\windows\system32\java.exe
That message doesn't occur on running 'C:\Java\jdk1.6.0_26\bin\java.exe' directly in MSDOS window (created by executing cmd.exe in Ubuntu). So it looks like it half works?
It means that you probably have some broken java.exe in your PATH.
http://bugs.winehq.org/show_bug.cgi?id=29424
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |us@edmeades.me.uk
--- Comment #9 from Jason Edmeades us@edmeades.me.uk 2012-09-03 17:09:38 CDT --- Which java was installed - 32 or 64 bit? I wonder if its possible that wine found the java.exe in the system32 directory (system jvm in effect) and found it as a 64 bit binary and 32 bit couldnt recognize it.
From comment 7, it does imply the root cause here is a java.exe in system32
(current directory is searched ahead of the path), so one test would be to 'cd' out of SYSTEM32 and see if it then works (cd , java -version).
http://bugs.winehq.org/show_bug.cgi?id=29424
--- Comment #10 from Jason Edmeades us@edmeades.me.uk 2012-09-03 17:22:44 CDT --- Which java was installed - 32 or 64 bit? I wonder if its possible that wine found the java.exe in the system32 directory (system jvm in effect) and found it as a 64 bit binary and 32 bit couldnt recognize it.
From comment 7, it does imply the root cause here is a java.exe in system32
(current directory is searched ahead of the path), which is seen as invalid but its pure presence prevents a subsequent path search.
One test would be to 'cd' out of SYSTEM32 and see if it then works (cd , java -version). The other is to confirm a presence of java.exe in system32 and try to run it explicitly.
http://bugs.winehq.org/show_bug.cgi?id=29424
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |WORKSFORME
--- Comment #11 from Jason Edmeades us@edmeades.me.uk 2012-09-04 18:03:46 CDT --- I'm resolving this as worksforme as I think the problem is a faulty binary in the system32 directory, possibly due to a faulty install. I took the latest x86 java 1.6 installer from Oracle and ran it, and it does indeed stick a java.exe into the system32 directory but it correctly invokes from the command line (both sitting in system32 and outside).
http://bugs.winehq.org/show_bug.cgi?id=29424
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #12 from Austin English austinenglish@gmail.com 2012-09-18 19:07:43 CDT --- Closing.