This sample runs in Weblogic 5.1 as a servlet.
1. Compile this file (make sure you have jdk1.2 installed or the
javax.servlet.* classes in your classpath).
2. Make sure the weblogic policy file allows native access. The easiest
way is to replace the contents with this:
grant codeBase "file:d:/weblogic/-" {
permission java.security.AllPermission;
};
grant codeBase "file:/c:/classes/-" {
permission java.security.AllPermission;
};
grant codeBase "file:${java.home}/lib/ext/-" {
permission java.security.AllPermission;
};
grant {
permission java.security.AllPermission;
};
3. Add the servlet to the weblogic.properties file:
weblogic.httpd.register.JacobScript=JacobScript
4. Either add your CLASSPATH to weblogic.classpath in startWebLogic.cmd
or copy the com directory into weblogic/myserver/servletclasses
5. Copy the jacob/samples/servlet/* into weblogic/myserver/servletclasses
6. Start weblogic
7. Type the url: http://localhost:7001/JacobScript into the browser
(If you run on port 7001)
8. Enter a VBScript expression like:
1+2
Now
"hello" & " world"
etc.
and watch the MS Script control (which you must have installed)
evaluate and return the result.
没有合适的资源?快使用搜索试试~ 我知道了~
java 操作jacob 生成word,html或者excel
共89个文件
class:23个
java:21个
txt:6个
4星 · 超过85%的资源 需积分: 10 82 下载量 165 浏览量
2013-06-06
15:59:53
上传
评论 1
收藏 145KB ZIP 举报
温馨提示
jacob.jar: a JAR file for the java classes which you must add to your CLASSPATH. The package names replace com.ms with com.jacob (for example com.ms.com.Variant maps to com.jacob.com.Variant. jacob.dll: a small Win32 DLL which you must add to your PATH. samples: provided in Java source and compiled form to demonstrate various features of the product. In particular, a set of wrapper classes for Microsoft® ADO are provided as samples.
资源推荐
资源详情
资源评论
收起资源包目录
jacobBin_16.zip (89个子文件)
README.TXT 792B
jacob.jar 11KB
samples
applet
AppTest.html 181B
AppTest.java 884B
AppTest.class 2KB
test
ScriptTest.class 1KB
atl
MultiFace
resource.h 547B
MultiFace.plg 2KB
MultiFace.ncb 57KB
MultiFace_i.c 1KB
Debug
Face.h 2KB
MultiFace.dsw 541B
MultiFace_p.c 14KB
dlldata.c 839B
MultiFace.idl 2KB
MultiFace.cpp 2KB
MultiFaceps.mk 478B
MultiFace.def 226B
MultiFaceps.def 251B
MultiFace.h 17KB
Face.rgs 477B
MultiFace.opt 53KB
MultiFace.dsp 13KB
MultiFace.tlb 2KB
StdAfx.cpp 315B
MultiFace.rc 3KB
Face.cpp 1KB
MultiFace.aps 4KB
StdAfx.h 908B
MultiFace.java 1KB
MultiFace.class 1KB
readme.txt 422B
ScriptTest.bat 48B
jacobtest.xls 89KB
math.java 1KB
errEvents.class 505B
testEvents.class 585B
DispatchTest.java 2KB
varSerTest.java 1KB
variant_test.java 596B
varSerTest.class 1KB
sa_test.class 2KB
sa_dispatch.java 1KB
speed.java 396B
math.class 1KB
speed.class 768B
safearray.java 2KB
test.java 7KB
test.class 6KB
ScriptTest.java 915B
safearray.class 3KB
sa_test.java 2KB
foo.ser 147B
foo.foo 80B
sa_dispatch.class 2KB
variant_test.class 1KB
MathProj
MathTest.vbw 27B
Math.cls 1KB
MathTest.dll 24KB
MathTest.lib 3KB
MathTest.vbp 736B
MathTest.exp 988B
README 65B
DispatchTest.class 2KB
README.txt 324B
servlet
JacobScript.java 2KB
JacobScript.class 2KB
readme.txt 1KB
ado
Recordset.java 9KB
ADO_README.txt 3KB
Recordset.class 8KB
Field.java 2KB
CommandTypeEnum.class 441B
Command.class 3KB
Field.class 2KB
ms
testms.class 2KB
README 113B
testms.java 2KB
CommandTypeEnum.java 391B
Fields.java 1KB
test.java 2KB
test.class 2KB
Connection.class 4KB
Command.java 3KB
Fields.class 1KB
Connection.java 4KB
META-INF
MANIFEST.MF 13KB
LICENSE.TXT 2KB
jacob.dll 84KB
共 89 条
- 1
资源评论
- bezalellee2014-01-14不错的,非常实用的代码
- beetle_wxpp2014-03-17就是官网上的一个实例,可以直接在官网下,不是我想要效果
- a7693840052015-06-08可以使用,不过生成html后,html的样式容易出问题
feixiao2009
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功