← Back to team overview

sikuli-driver team mailing list archive

[Bug 586699] Re: Solution: 32bit and 64bit issues + java console output window

 

** Changed in: sikuli
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/586699

Title:
  Solution: 32bit and 64bit issues + java console output window

Status in Sikuli:
  Fix Released

Bug description:
  This is a solution post for the Windows version(s).

  Description of the problems this solves.
  ---------------------------------------------------------------
  Issue 1: 64bit windows users get issues with dll files or includes upon running even the simplest script. ("dependent libraries" issues)
  Cause 1: 64bit java is unable to load the wow32 32bit dll's.

  Issue 2: To fix issue 1 we must modify the bat file and remove a comment.
  This is annoying to have to do, especially for new users.  It also causes an java output console to stay open.
  Cause: Bat file and using java instead of javaw and not starting with the background start command.

  ---------------------------------------------------------------

  Solution: Please modify the bat file for the Windows copies to the contents in the "COPY BETWEEN" below.
  This will detect if it system has the env variables for 32bit and use that for java path.
  This also replaces java with javaw and uses background start process prefix.

  Also please make the windows shortcut created with the installer point to the bat file.
  You may want to consider renaming the extension to .cmd instead of .bat.

  This should eliminate many issues I have seen on forums and in this bug list.
  I have tested this with Windows 7 (64bit) and Windows 2003 (32bit).
  I do not see any reason it will not work for a majority of the users on other Windows Combinations, unless they choose a custom Java path.

  ---------------------------------------------------------------

  ####\/\/\/\/\/####  COPY BETWEEN ####\/\/\/\/\/####

  @echo off
  PATH=%PATH%;%~d0%~p0tmplib
  set JAVA_EXE="javaw"
  if defined PROGRAMFILES(X86) set JAVA_EXE="%PROGRAMFILES(X86)%\Java\jre6\bin\javaw.exe"
  start /B "Silkuli-IDE Loader...." %JAVA_EXE% -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dpython.path="%~d0%~p0sikuli-script.jar/" -jar "%~d0%~p0sikuli-ide.jar" %*

  ####/\/\/\/\/\####  COPY BETWEEN ####/\/\/\/\/\####

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/586699/+subscriptions