Redcar 0.12.1 doesn't run under Windows 7 x64

313 views
Skip to first unread message

John Fletcher

unread,
Jan 18, 2012, 9:01:19 AM1/18/12
to redcar...@googlegroups.com
This is what I get when I try to run it. I noticed someone else mentioning exactly the same error on a thread where testing was requested, but I didn't see any solution offered.
 
C:/Ruby193/lib/ruby/gems/1.9.1/gems/redcar-0.12.1/lib/redcar.rb:33: Use RbConfig
 instead of obsolete and deprecated Config.
Redcar 0.12.1 ( i386-mingw32 )
javaw -Xbootclasspath/a:C:/Ruby193/lib/ruby/gems/1.9.1/gems/redcar-jruby-0.1/ven
dor/jruby-complete-1.6.4.jar -Dfile.encoding=UTF8 -Xmx320m -Xss1024k -Djruby.mem
ory.max=320m -Djruby.stack.max=1024k org.jruby.Main "C:/Ruby193/lib/ruby/gems/1.
9.1/gems/redcar-0.12.1/bin/redcar" --no-sub-jruby --ignore-stdin --start-time=13
26895158   && echo 'finished'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/redcar-0.12.1/lib/redcar/runner.rb:44:in `ex
ec': No such file or directory - javaw -Xbootclasspath/a:C:/Ruby193/lib/ruby/gem
s/1.9.1/gems/redcar-jruby-0.1/vendor/jruby-complete-1.6.4.jar -Dfile.encoding=UT
F8 -Xmx320m -Xss1024k -Djruby.memory.max=320m -Djruby.stack.max=1024k org.jruby.
Main "C:/Ruby193/lib/ruby/gems/1.9.1/gems/redcar-0.12.1/bin/redcar" --no-sub-jru
by --ignore-stdin --start-time=1326895158   && echo 'finished' (Errno::ENOENT)
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/redcar-0.12.1/lib/redcar/runner
.rb:44:in `block in run'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/redcar-0.12.1/lib/redcar/runner
.rb:75:in `construct_command'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/redcar-0.12.1/lib/redcar/runner
.rb:43:in `run'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/redcar-0.12.1/lib/redcar.rb:101
:in `spin_up'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/redcar-0.12.1/bin/redcar:26:in
`<top (required)>'
        from C:/Ruby193/bin/redcar:19:in `load'
        from C:/Ruby193/bin/redcar:19:in `<main>'
Regards,
John

Daniel Lucraft

unread,
Jan 18, 2012, 9:42:54 AM1/18/12
to redcar...@googlegroups.com
Hi John

Do you have Java installed?

best,
Dan
--
You received this message because you are subscribed to the Google Groups "Redcar" group.
To post to this group, send email to redcar...@googlegroups.com.
To unsubscribe from this group, send email to redcar-edito...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redcar-editor?hl=en.

Andrew Jones

unread,
Jan 18, 2012, 9:44:33 AM1/18/12
to redcar...@googlegroups.com
Also, do you have the JAVA_HOME environment variable set, pointing to
the JDK (for me, on Windows 7 64 bit, its C:\Program
Files\Java\jdk1.6.0_25).

Andrew

John Fletcher

unread,
Jan 19, 2012, 4:22:02 AM1/19/12
to redcar...@googlegroups.com
Yes and yes.
C:\Users\John>echo %java_home%
C:\Program Files\Java\jdk1.6.0_26
 
I'm using 64 bit Java exclusively, in case that matters.
 
I took the same basic installation steps on my other machine (WinXp x32) and it works nicely. That's why I bother following it up on the mailing list - I discovered that I like the editor and would like to use it on this machine too :-).
 
This machine is using a Spanish language version of Windows. Of course that shouldn't matter at all but I'm just trying to think of what could be different...
 
John

2012/1/18 Andrew Jones <andrew...@googlemail.com>

Daniel Lucraft

unread,
Jan 19, 2012, 4:26:10 AM1/19/12
to redcar...@googlegroups.com
So, it's not finding the javaw binary. Try changing line 63 of lib/redcar/runner.rb to make it use "java" binary instead, and see if that works. 

(Of course that will mean it will not fork on the terminal but we can look again at that once it works)

John Fletcher

unread,
Jan 19, 2012, 5:46:58 AM1/19/12
to redcar...@googlegroups.com
OK here's what I tried (line 63/64):
      #command = (RUBY_PLATFORM.downcase =~ /mswin|mingw|win32/ ? ["javaw"] : ["java"])
      command = (["java.exe"])
Doesn't work
      #command = (RUBY_PLATFORM.downcase =~ /mswin|mingw|win32/ ? ["javaw"] : ["java"])
      command = (["javaw.exe"])
Doesn't work
      #command = (RUBY_PLATFORM.downcase =~ /mswin|mingw|win32/ ? ["javaw"] : ["java"])
      command = (["C:\Program Files\Java\jdk1.6.0_26\bin\javaw.exe"])
Doesn't work
      command = (RUBY_PLATFORM.downcase =~ /mswin|mingw|win32/ ? ["javaw.exe"] : ["java.exe"])
Doesn't work
 
cd %java_home%\bin, then
 
#command = (RUBY_PLATFORM.downcase =~ /mswin|mingw|win32/ ? ["javaw"] : ["java"])
command = (["javaw"])
Doesn't work
 
#command = (RUBY_PLATFORM.downcase =~ /mswin|mingw|win32/ ? ["javaw"] : ["java"])
command = (["javaw.exe"])
Works!
 
command = (RUBY_PLATFORM.downcase =~ /mswin|mingw|win32/ ? ["javaw.exe"] : ["java.exe"])
Works!
 
John
 
2012/1/19 Daniel Lucraft <d...@fluentradical.com>

Daniel Lucraft

unread,
Jan 19, 2012, 5:49:32 AM1/19/12
to redcar...@googlegroups.com
OK, so does this mean java_home needs to be added to your path? (Not sure how to do that on Windows myself)

Matthew Scharley

unread,
Jan 19, 2012, 6:04:47 AM1/19/12
to redcar...@googlegroups.com
Windows has a PATH environment variable, just the same as linux, the only difference is that it's semi-colon delimited rather than colon delimited since Windows uses colons in drive designations (C:\, etc).

Andrew Jones

unread,
Jan 19, 2012, 6:07:57 AM1/19/12
to redcar...@googlegroups.com
Looking at my System Path, I have the location of the jre (C:\Program
Files (x86)\Oracle\jre\1.1.8\bin).

Andrew

John Fletcher

unread,
Jan 19, 2012, 6:19:27 AM1/19/12
to redcar...@googlegroups.com
Well, with line 63 reading:
command = (RUBY_PLATFORM.downcase =~ /mswin|mingw|win32/ ? ["javaw.exe"] : ["java.exe"])
(note the ".exe")
 
Then I can run
set path=%path%;%java_home%\bin
redcar.exe
 
and it works.
 
John
2012/1/19 Andrew Jones <andrew...@googlemail.com>

Aaron McLeod

unread,
Jan 19, 2012, 11:59:19 AM1/19/12
to redcar...@googlegroups.com
I was having the same issue. I then installed Java v 7 jdk. Added C:\Program Files\Java\jdk1.7.0_02\bin to both the Path system variable, and for a new JAVA_HOME user variable. This is all done under Environment variables, which can be found:

Windows XP

Right click my computer
Properties
Advanced
Environment Variables button

I don't remember the exact steps for windows 7, but it's rather similar. Saves you having to use the set command each time.

John Fletcher

unread,
Oct 8, 2012, 4:47:04 AM10/8/12
to redcar...@googlegroups.com
I upgraded to Java 7 and Redcar 0.13 and have re-looked at this issue. Here is what I found: Java 7 seems not to rely on JAVA_HOME\bin being on your path but rather copies java.exe, javaw.exe, javaws.exe to \Windows\System32 which is of course on the path anyway. I'm not sure whether that's different from what Java 6 does, in any case, it's what Java 7 does. Redcar does not work by default with this configuration.
In this thread people talk about JAVA_HOME being on your path, but it's important to distinguish between JAVA_HOME, which is something like C:\Program Files\Java\jre7 (or the JDK equivalent) and the directory which has the Java executables, which is JAVA_HOME\bin, i.e. C:\Program Files\Java\jre7\bin in this example.
 
Adding JAVA_HOME to your PATH will not change anything. However if you add JAVA_HOME\bin to your path, redcar will work. I've no idea why Redcar is happy with the binaries in the JAVA_HOME\bin folder and not those in the System32 folder. But that's how it is.
 
John

 
2012/1/19 Aaron McLeod <sircoo...@gmail.com>
Reply all
Reply to author
Forward
0 new messages