博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
java开发2.0 Kilim初体验
阅读量:2394 次
发布时间:2019-05-10

本文共 454 字,大约阅读时间需要 1 分钟。

把之前文章的例子写了一遍,发现还是某些地方需要注意下,嘿嘿

首先是照着例子写一遍,不用多说,开发环境结构如图:
然后在build.xml文件里写一段运行weaver的target,如图:
这里需要注意的是,如果没有运行过这个weaver的话,直接运行Calculator类将报错,报错信息如下:
这个target要注意classpath的元素配置,是与build.xml文件里的path相同,如图:
如何让ant运行weaver成功呢?
首先将bin/目录下的文件,拷贝到target目录下(注意bin目录与target目录同级,如果没有target目录,新建即可),如图:
然后ant运行weave target,结果如下:
重写Calculator和DeferredDivision两个类,新生成一个S_O2.class文件。
接着这个步骤很重要:
将重写的两个类,拷贝回bin目录对应的目录下里;
另外将kilim/S_O2.class,也拷贝到bin目录下;
然后执行Calculator,结果如图:

转载地址:http://rpzob.baihongyu.com/

你可能感兴趣的文章
IDL save postscript file
查看>>
Bibtex如何使authors in the citation 最多显示两个
查看>>
Bibtex 如何cite 不同格式
查看>>
Cmake environmental variables: how to make find_package, find_path and find_library work
查看>>
Cmake space in path windows
查看>>
Differences between Tesla and a GeForce Series GPU
查看>>
Faster Parallel Reductions on Kepler
查看>>
NVIDIA Tesla C2075 vs Tesla K10 theoretical performance
查看>>
Fast floor/ceiling functions C
查看>>
Continue Long Statements on Multiple Lines Matlab
查看>>
What does “warning: not all control paths return a value” mean? (C++)
查看>>
C++ 运算符优先级
查看>>
Savitzky-Golay smoothing
查看>>
IDL get variable size in bytes
查看>>
high-frequency emphasis filter matlab
查看>>
cat -n
查看>>
使用 ftrace 调试 Linux 内核,第 2 部分
查看>>
使用 ftrace 调试 Linux 内核,第 3 部分
查看>>
内存储器管理概述、内存分配与释放、地址映射机制(mm_struct, vm_area_struct)、malloc/free 的实现
查看>>
glibc-printf
查看>>