您现在的位置是:首页 > 编程 > 

Watij 在WIDOWS 7 能使用吗?

2025-07-26 20:30:44
Are you using the old api or the new WebSpec api?  WebSpec works fine  on  Win 7  X 64.  Two soluti. Best solution, switch to WebSpec API as the old version  of Watij (.2.1) is being replace
Are you using the old api or the new WebSpec api?  WebSpec works fine  on  Win 7  X 64. 


Two soluti. Best solution, switch to WebSpec API as the old version 
of Watij (.2.1) is being replaced with WebSpec. 

Alternative solution, run in 2-bit mode. I have not tried it but two 
thoughts come to mind. The first is that Java has a switch (-D2 I 
think) to make 64-bit Java run in 2 bit mode. This might trick Watij 
into using the 64-bit DLL. The other option is to create a shortcut 
and set it to run in 2-bit mode (might be called Compatibility mode). 
If you run things from the shortcut it should be totally 2 bit and 
work fine. From the command line you can use the RUAS.EXE to set the 
mode. 



Watij (the old API) works fine on Win 7 64bit, too. Just make sure to 
use a 2bit java version. (Otherwise a 64bit jni dll is missing) 


Hi, 
    I m facing same problem. I installed Watij (webspec_1.0.1_beta) 
today on Windows 7. Wrote following code 

@Test 
        public void testRun() 
        { 
        Spec spec = new Spec().safari(); 
        (http://www.google); 
        spec.find(input).with(name== q ).set(value= Watij ); 
        spec.find(input).with(type== button ).with(value== Google 
Search ).click(); 
        //check results 
        spec.find(a).with(href== http://watij/ ).shouldExist(); 
        } 

but it throws exception of 

java.lang.ExceptionInInitializerError 
Caused by: com.jniwrapper.LibraryotFoundException: Cannot find 
JIWrapper native library (jniwrap64.dll) 

I tried few things but no use. I m not sure what s missing. 

Any direction is appreciated, 
Thanks, 
Anu 

On Sep 22, 11:5 pm, chribuhhh <chribu...@googlemail> wrote: 



   
Brian Knorr  
View profile  
 More opti ov 7 2010, 8:20 am
Yes for the WebSpec API on windows 64 you have to use 2 bit java sdk. 

The old Watij api works with IE on Windows.  Watij s new WebSpec api 
works with IE and Mozilla on Windows, Safari and Mozilla on Mac, and 
Mozilla on Linux.  For Windows 7 (64bit) make sure you are using a 
2bit Java SDK.  On Mac you just have to pass in -d2 in your VM args 
to force 2bit Java execution. 

On ov 8, 1:1 pm, Anamika T 


I have used Watij with IE7 and IE8. o problems at all. It does not 
work on x64 systems however. 






#感谢您对电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格的认可,转载请说明来源于"电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格

本文地址:http://www.dnpztj.cn/biancheng/1075411.html

相关标签:无
上传时间: 2025-07-09 22:36:44
留言与评论(共有 19 条评论)
本站网友 奥沙利铂
29分钟前 发表
  Anu  On Sep 22
本站网友 保值投资
23分钟前 发表
chribuhhh <chribu...@googlemail> wrote
本站网友 预订火车票
23分钟前 发表
1
本站网友 生而自由
6分钟前 发表
5 pm
本站网友 胸腺五肽
16分钟前 发表
//watij/ ).shouldExist();          }  but it throws exception of  java.lang.ExceptionInInitializerError  Caused by
本站网友 邝字怎么读
15分钟前 发表
20 am Yes for the WebSpec API on windows 64 you have to use 2 bit java sdk.  The old Watij api works with IE on Windows.  Watij s new WebSpec api  works with IE and Mozilla on Windows
本站网友 饮用水水质标准
11分钟前 发表
//watij/ ).shouldExist();          }  but it throws exception of  java.lang.ExceptionInInitializerError  Caused by
本站网友 报表软件
8分钟前 发表
     Brian Knorr   View profile    More opti ov 7 2010
本站网友 富光
5分钟前 发表
Anamika T  I have used Watij with IE7 and IE8. o problems at all. It does not  work on x64 systems however. 
本站网友 会成
28分钟前 发表
20 am Yes for the WebSpec API on windows 64 you have to use 2 bit java sdk.  The old Watij api works with IE on Windows.  Watij s new WebSpec api  works with IE and Mozilla on Windows
本站网友 北京二手房行情
11分钟前 发表
20 am Yes for the WebSpec API on windows 64 you have to use 2 bit java sdk.  The old Watij api works with IE on Windows.  Watij s new WebSpec api  works with IE and Mozilla on Windows
本站网友 流碧
8分钟前 发表
Are you using the old api or the new WebSpec api?  WebSpec works fine  on  Win 7  X 64.  Two soluti. Best solution
本站网友 深圳小型办公室
9分钟前 发表
1 pm
本站网友 一期临床
12分钟前 发表
//www.google);          spec.find(input).with(name== q ).set(value= Watij );          spec.find(input).with(type== button ).with(value== Google  Search ).click();          //check results          spec.find(a).with(href== http
本站网友 中国老区网
27分钟前 发表
and  Mozilla on Linux.  For Windows 7 (64bit) make sure you are using a  2bit Java SDK.  On Mac you just have to pass in -d2 in your VM args  to force 2bit Java execution.  On ov 8
本站网友 led照明产品
0秒前 发表
too. Just make sure to  use a 2bit java version. (Otherwise a 64bit jni dll is missing)  Hi
本站网友 深圳快闪
4分钟前 发表
Safari and Mozilla on Mac
本站网友 柳南二手房
25分钟前 发表
  Thanks