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

Bug #586699 reported by Brain Creation
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Undecided
Unassigned
Nominated for Sikulix by Brain Creation

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 ####/\/\/\/\/\####

Revision history for this message
Brain Creation (braincreation) wrote :
Changed in sikuli:
assignee: nobody → Brain Creation (braincreation)
description: updated
description: updated
Changed in sikuli:
assignee: Brain Creation (braincreation) → nobody
Revision history for this message
RaiMan (raimund-hocke) wrote :

Congratulations!!!
I knew this should be possible somehow. Thanks.

Revision history for this message
Tsung-Hsiang Chang (vgod) wrote :

Great.
Thanks for this bat. I will put it into the next release.

description: updated
Changed in sikuli:
status: New → Fix Committed
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.