build sikuli in Win32 issue

Asked by michaelzhao329

i built Sikuli as manual instruction. but get below error. I tried many ways including set java path,... make sure java path is correct. Have no idea ... :(

...
[ 98%] Building CXX object src/main/native/CMakeFiles/VisionProxy.dir/D_/sukuli/
tesseract-2.04/pageseg/leptonica_pageseg.cpp.obj
leptonica_pageseg.cpp
[100%] Building CXX object src/main/native/CMakeFiles/VisionProxy.dir/D_/sukuli/
tesseract-2.04/pageseg/leptonica_pageseg_interface.cpp.obj
leptonica_pageseg_interface.cpp
[100%] Building CXX object src/main/native/CMakeFiles/VisionProxy.dir/D_/sukuli/
tesseract-2.04/pageseg/pageseg.cpp.obj
pageseg.cpp
Linking CXX shared module ..\..\..\..\target\lib\VisionProxy.dll
LINK : warning LNK4031: no subsystem specified; CONSOLE assumed
   Creating library ..\..\..\..\target\lib\VisionProxy.lib and object ..\..\..\.
.\target\lib\VisionProxy.exp
[100%] Built target VisionProxy
org\sikuli\script\Win32Util.java:13: package com.sun.awt not exist
import com.sun.awt.AWTUtilities;
                  ^
org\sikuli\script\Win32Util.java:80: 找不到符号
符号: 变量 AWTUtilities
位置: 类 org.sikuli.script.Win32Util
      AWTUtilities.setWindowOpacity(win, alpha);
      ^
org\sikuli\script\Win32Util.java:84: 找不到符号
...

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
michaelzhao329
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

path-to-java\jre6\bin

has to be in SYSTEM_PATH !!

Revision history for this message
michaelzhao329 (michaelzhao329) said :
#2

already set jre/bin in system path ; still got same error....

Revision history for this message
RaiMan (raimund-hocke) said :
#3

Sorry, there must be some problems with references to the JDK (do you have it installed?)

Revision history for this message
michaelzhao329 (michaelzhao329) said :
#4

i think so, going to reinstall JDK ...
 i have installed java access bridge, not sure what's going on...

thx RaiMan

> To: <email address hidden>
> From: <email address hidden>
> Subject: Re: [Question #167506]: build sikuli in Win32 issue
> Date: Thu, 11 Aug 2011 09:06:22 +0000
>
> Your question #167506 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/167506
>
> Status: Open => Answered
>
> RaiMan proposed the following answer:
> Sorry, there must be some problems with references to the JDK (do you
> have it installed?)
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/167506/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/167506
>
> You received this question notification because you asked the question.

Revision history for this message
michaelzhao329 (michaelzhao329) said :
#5

it did work after reinstall JDK ...
root cause should be Java Access Bridge in jre/lib/ext ....

thx anyway