Terminator Excetion

2 views
Skip to first unread message

Ivan Vargas

unread,
Dec 31, 2009, 12:43:00 PM12/31/09
to terminat...@googlegroups.com
Could you please point me to the right direction? At first glance it seems there is an environment variable or somethins missing since all the values in the -D options are empty.
 
Any help is much appreciated
 
---------------------------
Uncaught exception
---------------------------
An error occurred in Terminator:

Exception RuntimeError: Java failed with #<Process::Status: pid=1632,exited(1)>

Command line was:
C:/Program Files/software.jessies.org/terminator/Resources/salma-hayek/.generated/i386_Cygwin/bin/java-launcher -Xmx100m -Dorg.jessies.libraryDirectories=; -Dorg.jessies.binaryDirectory= -Dorg.jessies.terminator.dotDirectory= -Dorg.jessies.terminator.logDirectory= -Dorg.jessies.terminator.serverPortFileName= -Dorg.jessies.terminator.optionsFile= -De.gui.HelpMenu.hasManual=true -De.gui.HelpMenu.supportAddress=terminat...@googlegroups.com -De.gui.HelpMenu.supportSite=http://groups.google.com/group/terminator-users -Djava.class.path=;;;; -De.util.Log.filename= -De.util.Log.applicationName=Terminator -Dorg.jessies.aboutBoxIcon= -Dorg.jessies.frameIcon= -Dorg.jessies.projectRoot= -Dorg.jessies.supportRoot= -Djava.awt.Window.locationByPlatform=true -Dswing.boldMetal=false terminator/Terminator

 at C:/Program Files/software.jessies.org/terminator/Resources/salma-hayek/bin/invoke-java.rb:461:in `launch'
 at C:/Program Files/software.jessies.org/terminator/Resources/terminator/bin/terminator:97:in `launch0'
 at C:/Program Files/software.jessies.org/terminator/Resources/terminator/bin/terminator:21:in `launch'
 at C:/Program Files/software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:90:in `call'
 at C:/Program Files/software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:90:in `run_in_home_directory'
 at C:/Program Files/software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:88:in `chdir'
 at C:/Program Files/software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:88:in `run_in_home_directory'
 at C:/Program Files/software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:120:in `initialize'
 at C:/Program Files/software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:134:in `new'
 at C:/Program Files/software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:134:in `report_exceptions'
 at C:/Program Files/software.jessies.org/terminator/Resources/terminator/bin/terminator:21:in `launch'
 at C:/Program Files/software.jessies.org/terminator/Resources/terminator/bin/terminator:218

Please copy this message to the clipboard with Ctrl-C and mail it to terminat...@googlegroups.com.
(Windows won't let you select the text but Ctrl-C works anyway.)
---------------------------
OK  
---------------------------

Elliott Hughes

unread,
Dec 31, 2009, 1:24:52 PM12/31/09
to terminat...@googlegroups.com, Ivan Vargas
see this earlier thread:

http://groups.google.com/group/terminator-users/browse_thread/thread/1ca0f97b35ca7661

(and also the original thread referred to from that one.)

aiui, which isn't very much because i don't use Windows, you need Cygwin
1.7 if you're using 64-bit Windows 7, and early releases of Cygwin 1.7 had
a bug that meant "cygpath" didn't work, so you need to make sure you're on
the latest release.

--elliott


On Thu, December 31, 2009 09:43, Ivan Vargas wrote:
> Could you please point me to the right direction? At first glance it
> seems there is an environment variable or somethins missing since all the
> values in the -D options are empty.
>
> Any help is much appreciated
>
>
> ---------------------------
> Uncaught exception
> ---------------------------
> An error occurred in Terminator:
>
>
> Exception RuntimeError: Java failed with #<Process::Status:
> pid=1632,exited(1)>
>
> Command line was:
> C:/Program Files/
> software.jessies.org/terminator/Resources/salma-hayek/.generated/i386_Cygw

> in/bin/java-launcher-Xmx100m -Dorg.jessies.libraryDirectories=;


> -Dorg.jessies.binaryDirectory=
> -Dorg.jessies.terminator.dotDirectory=
> -Dorg.jessies.terminator.logDirectory=
> -Dorg.jessies.terminator.serverPortFileName=
> -Dorg.jessies.terminator.optionsFile= -De.gui.HelpMenu.hasManual=true
> -De.gui.HelpMenu.supportAddress=terminat...@googlegroups.com-De.gui.H

> elpMenu.supportSite= http://groups.google.com/group/terminator-users

> 8:in`run_in_home_directory'
> at C:/Program Files/
> software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:1


> 20:in`initialize'
> at C:/Program Files/
> software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:1
> 34:in`new'
> at C:/Program Files/
> software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:1
> 34:in`report_exceptions'
> at C:/Program Files/

> software.jessies.org/terminator/Resources/terminator/bin/terminator:218
>
>
> Please copy this message to the clipboard with Ctrl-C and mail it to
> terminat...@googlegroups.com. (Windows won't let you select the text
> but Ctrl-C works anyway.) ---------------------------
> OK
> ---------------------------
>
>

> --
>
>
> You received this message because you are subscribed to the Google Groups
> "terminator-users" group.
> To post to this group, send email to terminat...@googlegroups.com.
> To unsubscribe from this group, send email to
> terminator-use...@googlegroups.com. For more options, visit
> this group at http://groups.google.com/group/terminator-users?hl=en.
>
>
>


--
Elliott Hughes, http://www.jessies.org/~enh/


Martin Dorey

unread,
Jan 1, 2010, 12:01:48 PM1/1/10
to terminat...@googlegroups.com, jivan...@gmail.com, ind...@gmail.com
> you need Cygwin 1.7 if you're using 64-bit Windows 7

I believe all versions of Windows 7 are only supported by Cygwin 1.7, per cygwin.com/cygwin-ug-net/ov-new1.7.html. I doubt it's relevant here.

> and early releases of Cygwin 1.7 had
> a bug that meant "cygpath" didn't work

One particular pre-release version had that issue. Indrg tells us, though, that there's a new issue with a similar symptom but a different cause in the released 1.7. I was unable to reproduce this. We haven't yet got to the bottom of it. The next step will be to see the output produced when someone tries to run Terminator from the command line on an affected machine. I see, when replying to Indrg, I misremembered how we got to the bottom of Brandon, Roberts' issue. He just ran cygpath with no arguments and followed the trail left by the error messages. That might work here, if one of the DLLs used by cygpath itself has an unsatisfied dependency. If you can tolerate more typing, a method more likely to find the problem would be to run Terminator from a Cygwin bash prompt, with a command like this:

/cygdrive/c/Program\ Files/
software.jessies.org/terminator/Resources/
terminator/bin/terminator

There will probably be error messages and they should let us crack it.

Ivan Vargas

unread,
Jan 4, 2010, 12:17:16 PM1/4/10
to Martin Dorey, terminat...@googlegroups.com, ind...@gmail.com
Thanks for your response.
 
The issue is with XP, not Windows 7.
I tried running cygpath and it runs fine. I did try also running terminator from a cygwin bash prompt. I got two error messages (see below). Do you have a clue why it is failing while finding the Terminator class? [Error: FindClass("terminator/Terminator") failed.]  Are there any dependencies I am not aware of?
 
Thank you all for your help,
 
---------------------------
Java Launcher
---------------------------
If you don't have Java installed, download it from http://java.com/, then try again.
Error: FindClass("terminator/Terminator") failed.
Selected JVM was: C:\Program Files\Java\jdk1.6.0_17\jre\bin\client\jvm.dll
Command line was:
/cygdrive/c/Program Files/software.jessies.org/terminator/Resources/salma-hayek/.generated/i386_Cygwin/bin/java-launcher -Xmx100m -Dorg.jessies.libraryDirectories=; -Dorg.jessies.binaryDirectory= -Dorg.jessies.terminator.dotDirectory= -Dorg.jessies.terminator.logDirectory= -Dorg.jessies.terminator.serverPortFileName= -Dorg.jessies.terminator.optionsFile= -De.gui.HelpMenu.hasManual=true -De.gui.HelpMenu.supportAddress=terminat...@googlegroups.com -De.gui.HelpMenu.supportSite=http://groups.google.com/group/terminator-users -Djava.class.path=;;;; -De.util.Log.filename= -De.util.Log.applicationName=Terminator -Dorg.jessies.aboutBoxIcon= -Dorg.jessies.frameIcon= -Dorg.jessies.projectRoot= -Dorg.jessies.supportRoot= -Djava.awt.Window.locationByPlatform=true -Dswing.boldMetal=false terminator/Terminator
Please copy this message to the clipboard with Ctrl-C and mail it to terminat...@googlegroups.com.
(Windows won't let you select the text but Ctrl-C works anyway.)
---------------------------
OK  
---------------------------
---------------------------
Uncaught exception
---------------------------
An error occurred in Terminator:
Exception RuntimeError: Java failed with #<Process::Status: pid=3880,exited(1)>
Command line was:
/cygdrive/c/Program Files/software.jessies.org/terminator/Resources/salma-hayek/.generated/i386_Cygwin/bin/java-launcher -Xmx100m -Dorg.jessies.libraryDirectories=; -Dorg.jessies.binaryDirectory= -Dorg.jessies.terminator.dotDirectory= -Dorg.jessies.terminator.logDirectory= -Dorg.jessies.terminator.serverPortFileName= -Dorg.jessies.terminator.optionsFile= -De.gui.HelpMenu.hasManual=true -De.gui.HelpMenu.supportAddress=terminat...@googlegroups.com -De.gui.HelpMenu.supportSite=http://groups.google.com/group/terminator-users -Djava.class.path=;;;; -De.util.Log.filename= -De.util.Log.applicationName=Terminator -Dorg.jessies.aboutBoxIcon= -Dorg.jessies.frameIcon= -Dorg.jessies.projectRoot= -Dorg.jessies.supportRoot= -Djava.awt.Window.locationByPlatform=true -Dswing.boldMetal=false terminator/Terminator
 at /cygdrive/c/Program Files/software.jessies.org/terminator/Resources/salma-hayek/bin/invoke-java.rb:461:in `launch'
 at /cygdrive/c/Program Files/software.jessies.org/terminator/Resources/terminator/bin/terminator:97:in `launch0'
 at /cygdrive/c/Program Files/software.jessies.org/terminator/Resources/terminator/bin/terminator:21:in `launch'
 at /cygdrive/c/Program Files/software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:122:in `call'
 at /cygdrive/c/Program Files/software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:122:in `initialize'
 at /cygdrive/c/Program Files/software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:134:in `new'
 at /cygdrive/c/Program Files/software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:134:in `report_exceptions'
 at /cygdrive/c/Program Files/software.jessies.org/terminator/Resources/terminator/bin/terminator:21:in `launch'
 at /cygdrive/c/Program Files/software.jessies.org/terminator/Resources/terminator/bin/terminator:218
Please copy this message to the clipboard with Ctrl-C and mail it to terminat...@googlegroups.com.
(Windows won't let you select the text but Ctrl-C works anyway.)
---------------------------
OK  
---------------------------


--
"Nobody will ever need more than 640k RAM!"
                          -- Bill Gates, 1981
"Windows 95 needs at least 8 MB RAM."
                          -- Bill Gates, 1996
"Nobody will ever need Windows 95."
                          -- logical conclusion

Elliott Hughes

unread,
Jan 4, 2010, 6:41:53 PM1/4/10
to terminat...@googlegroups.com, Martin Dorey, terminat...@googlegroups.com, ind...@gmail.com, Ivan Vargas

On Mon, January 4, 2010 09:17, Ivan Vargas wrote:
> Thanks for your response.
>
>
> The issue is with XP, not Windows 7.
> I tried running cygpath and it runs fine. I did try also running
> terminator from a cygwin bash prompt. I got two error messages (see
> below). Do you have a clue why it is failing while finding the Terminator
> class?

(because the classpath is empty. that's the real problem. the question is
why the classpath is empty.)

--elliott

> [Error: FindClass("terminator/Terminator") failed.] Are there any
> dependencies I am not aware of?
>
> Thank you all for your help,
>
>
> ---------------------------
> Java Launcher
> ---------------------------
> If you don't have Java installed, download it from http://java.com/, then
> try again. Error: FindClass("terminator/Terminator") failed.
> Selected JVM was: C:\Program Files\Java\jdk1.6.0_17\jre\bin\client\jvm.dll
> Command line was:

> /cygdrive/c/Program Files/


> software.jessies.org/terminator/Resources/salma-hayek/.generated/i386_Cygw
> in/bin/java-launcher-Xmx100m -Dorg.jessies.libraryDirectories=;
> -Dorg.jessies.binaryDirectory=
> -Dorg.jessies.terminator.dotDirectory=
> -Dorg.jessies.terminator.logDirectory=
> -Dorg.jessies.terminator.serverPortFileName=
> -Dorg.jessies.terminator.optionsFile= -De.gui.HelpMenu.hasManual=true
> -De.gui.HelpMenu.supportAddress=terminat...@googlegroups.com-De.gui.H
> elpMenu.supportSite= http://groups.google.com/group/terminator-users
> -Djava.class.path=;;;;
> -De.util.Log.filename= -De.util.Log.applicationName=Terminator
> -Dorg.jessies.aboutBoxIcon= -Dorg.jessies.frameIcon=
> -Dorg.jessies.projectRoot= -Dorg.jessies.supportRoot=
> -Djava.awt.Window.locationByPlatform=true -Dswing.boldMetal=false

> terminator/Terminator Please copy this message to the clipboard with Ctrl-C


> and mail it to terminat...@googlegroups.com. (Windows won't let you
> select the text but Ctrl-C works anyway.) ---------------------------
> OK
> ---------------------------
> ---------------------------
> Uncaught exception
> ---------------------------
> An error occurred in Terminator:
> Exception RuntimeError: Java failed with #<Process::Status:
> pid=3880,exited(1)> Command line was:

> /cygdrive/c/Program Files/


> software.jessies.org/terminator/Resources/salma-hayek/.generated/i386_Cygw
> in/bin/java-launcher-Xmx100m -Dorg.jessies.libraryDirectories=;
> -Dorg.jessies.binaryDirectory=
> -Dorg.jessies.terminator.dotDirectory=
> -Dorg.jessies.terminator.logDirectory=
> -Dorg.jessies.terminator.serverPortFileName=
> -Dorg.jessies.terminator.optionsFile= -De.gui.HelpMenu.hasManual=true
> -De.gui.HelpMenu.supportAddress=terminat...@googlegroups.com-De.gui.H
> elpMenu.supportSite= http://groups.google.com/group/terminator-users
> -Djava.class.path=;;;;
> -De.util.Log.filename= -De.util.Log.applicationName=Terminator
> -Dorg.jessies.aboutBoxIcon= -Dorg.jessies.frameIcon=
> -Dorg.jessies.projectRoot= -Dorg.jessies.supportRoot=
> -Djava.awt.Window.locationByPlatform=true -Dswing.boldMetal=false

> terminator/Terminator at /cygdrive/c/Program Files/
> software.jessies.org/terminator/Resources/salma-hayek/bin/invoke-java.rb:
> 461:in`launch'
> at /cygdrive/c/Program Files/
> software.jessies.org/terminator/Resources/terminator/bin/terminator:97:in
> `launch0'
> at /cygdrive/c/Program Files/
> software.jessies.org/terminator/Resources/terminator/bin/terminator:21:in
> `launch'
> at /cygdrive/c/Program Files/
> software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:1
> 22:in`call'
> at /cygdrive/c/Program Files/
> software.jessies.org/terminator/Resources/salma-hayek/bin/show-alert.rb:1
> 22:in`initialize'
> at /cygdrive/c/Program Files/

> at /cygdrive/c/Program Files/

> at /cygdrive/c/Program Files/
> software.jessies.org/terminator/Resources/terminator/bin/terminator:21:in
> `launch'
> at /cygdrive/c/Program Files/


> software.jessies.org/terminator/Resources/terminator/bin/terminator:218
> Please copy this message to the clipboard with Ctrl-C and mail it to
> terminat...@googlegroups.com. (Windows won't let you select the text
> but Ctrl-C works anyway.) ---------------------------
> OK
> ---------------------------
>
>
>

>>> terminator-use...@googlegroups.com<terminator-users%2Bunsu
>>> bsc...@googlegroups.com>.


>> For more options, visit
>>
>>> this group at http://groups.google.com/group/terminator-users?hl=en.
>>>
>>>
>>>
>>
>>
>> --
>> Elliott Hughes, http://www.jessies.org/~enh/
>>
>>
>>
>> --
>>
>>
>> You received this message because you are subscribed to the Google
>> Groups
>> "terminator-users" group.
>> To post to this group, send email to terminat...@googlegroups.com.
>> To unsubscribe from this group, send email to

>> terminator-use...@googlegroups.com<terminator-users%2Bunsubsc
>> ri...@googlegroups.com> .


>> For more options, visit this group at
>> http://groups.google.com/group/terminator-users?hl=en.
>>
>>
>>
>>
>
>
> --
> "Nobody will ever need more than 640k RAM!"
> -- Bill Gates, 1981
> "Windows 95 needs at least 8 MB RAM."
> -- Bill Gates, 1996
> "Nobody will ever need Windows 95."
> -- logical conclusion
>
>

Martin Dorey

unread,
Jan 4, 2010, 6:50:45 PM1/4/10
to Ivan Vargas, terminat...@googlegroups.com, ind...@gmail.com

> The issue is with XP

 

(That should make any reproduction easier, as I'm running XP too.)

 

> Are there any dependencies I am not aware of?

 

Not intentional ones.  You've demonstrably got a working Cygwin, working Ruby and a highly plausible version of Java.

 

> Do you have a clue why it is failing while finding the Terminator class? [Error: FindClass("terminator/Terminator") failed.] 

 

Yes...

 

> -Djava.class.path=;;;;

 

The class path gets set up by some code which does include a section that's conditional on whether it finds a Jdk.  I thought that might be telling us something but then dotDirectory is being set to the empty string too.  That's simple code:

 

        dot_directory = ENV["TERMINATOR_DOT_DIRECTORY"]

        if dot_directory == nil

            home = ENV["HOME"]

            dot_directory = "#{home}/.terminator"

        end

...

        invoker.add_pathname_property("org.jessies.terminator.dotDirectory", dot_directory)

 

  def add_pathname_property(propertyName, pathname)

    add_property(propertyName, convert_to_jvm_compatible_pathname(pathname))

  end

 

def convert_to_jvm_compatible_pathname(pathname)

  if target_os() != "Cygwin"

    return pathname

  end

 

  # We used to call now-deprecated functions directly from cygwin1.dll.

  # That was in order to prevent cygpath causing a console window to flash up.

  # That was only believed to be an issue when run from a non-console Win32 application.

  # Now our shortcuts run Ruby via ruby-launcher, a Cygwin application.

  # That program ensures that stdout and stderr are open, which I now think is the active ingredient.

  return `cygpath --windows '#{pathname}'`.chomp()

end

 

TERMINATOR_DOT_DIRECTORY isn't usually set.  But, even if it, or HOME, expanded to the empty string, then we should see at least an error, if not a valid but non-existent path:

 

$ cygpath --windows ''

cygpath: can't convert empty path

$ cygpath --windows /.terminator

C:\cygwin-1.7\.terminator

$

 

Even if there were some kind of Dos line ending issue, surely that would leave us with a path that included a carriage return, not an empty string.

 

If target_os() were not exactly "Cygwin", then that wouldn't explain it either.

 

I wonder what this command produces for you:

 

$ echo hello `cygpath --windows /bin` world

hello C:\cygwin-1.5\bin world

$

 


Reply all
Reply to author
Forward
0 new messages