jacob

[ 转 ] 一个平庸程序员的自白

若如初见. 提交于 2019-12-02 06:36:27
Jacob Kaplan-Moss 是著名 Python 框架 Django 的 Co-Creater 和核心开发者,在 Heroku 担任安全部门的 Director, 他常年参加 Python 社区的年度聚会 PyCon ,并经常上台演讲。在这次 PyCon 2015 上,他声称自己顶多只是一个平庸的程序员,幻灯片上也写着: "Hi, I'm Jacob, and I'm a mediocre programmer." 这次演讲非常精彩,视频可以 在 Youtube 上看到 (如果不想看视频,这里也有一篇文字总结: https://lwn.net/Articles/641779/ )。Jacob 以马拉松为例,试图说明大部分人在大部分领域都是平庸的(Most people are average at most things.),特别好的和特别坏的都是极少数,但在程序员领域,我们听到的大都是某某程序员 rocks 或者 sucks ,基本没有中间状态,这是一件非常奇怪的事情。他还提到“真正的程序员”(real programmer)这个概念,也就是所谓的 "10x programmer" ,你只有精通某些原理或者长得像 Mark Zarkerberg 才算是一个 real programmer ,而一个使用各种云服务以及 API 快速搭建自己应用的人就不算,这非常可笑。顺带一提

Can't co-create object / Can't find moniker | Jacob

丶灬走出姿态 提交于 2019-12-02 00:40:45
问题 When creating an ActiveXComponent using JACOB I get the following error. com.jacob.com.ComFailException: Can't co-create object at com.jacob.com.Dispatch.createInstanceNative(Native Method) at com.jacob.com.Dispatch.<init>(Dispatch.java:99) at com.jacob.activeX.ActiveXComponent.<init>(ActiveXComponent.java:58) at com.paston.jacobtest.RidderIQ.main(RidderIQ.java:30) The COM object which I need to use from a program which doesn't register its DLLs by itself during installation. To register the

Can't co-create object

北战南征 提交于 2019-12-01 22:42:31
i made a dll in .net and call that from java program using jacob.since yesterday i have windows 7 32 bit os so program run successfully.now i formated and install windows 7 64 bit os.so following error encounter: com.jacob.com.ComFailException: Can't co-create object at com.jacob.com.Dispatch.createInstance(Native Method) at com.jacob.com.Dispatch.<init>(Dispatch.java) at com.jacob.activeX.ActiveXComponent.<init>(ActiveXComponent.java) at product.Control_product.main(Control_product.java:21) Register all the dll files but the error is occured. Use a 32bit JVM to execute your code. The DLL of

Can't co-create object / Can't find moniker | Jacob

谁都会走 提交于 2019-12-01 20:33:30
When creating an ActiveXComponent using JACOB I get the following error. com.jacob.com.ComFailException: Can't co-create object at com.jacob.com.Dispatch.createInstanceNative(Native Method) at com.jacob.com.Dispatch.<init>(Dispatch.java:99) at com.jacob.activeX.ActiveXComponent.<init>(ActiveXComponent.java:58) at com.paston.jacobtest.RidderIQ.main(RidderIQ.java:30) The COM object which I need to use from a program which doesn't register its DLLs by itself during installation. To register the DLL I used the 64bit version of RegAsm according to this article that could help. Also, I tried to load

仿百度文库解决方案(二)——利用Jacob调用MS Office转换文档为PDF

浪子不回头ぞ 提交于 2019-12-01 18:34:05
目录 仿百度文库解决方案(一)—— 总体思路 仿百度文库解决方案(二)—— 利用Jacob调用MS Office转换文档为PDF 仿百度文库解决方案(三)—— 利用JCom调用MS Office或者Acrobat API转换文档为PDF 仿百度文库解决方案(四)—— 利用JODConverter调用OpenOffice.org服务转换文档为PDF 仿百度文库解决方案(五)—— 利用SWFTools转换PDF文档为SWF 仿百度文库解决方案(六)—— 利用FlexPaper显示Flash(SWF) Jacob简介   Jacob是Java与COM组件桥接的缩写,即JAVA-COM Bridge。通过使用Jacob类库,我们可以很方便地在Java程序中调用COM自动化组件。Jacob最初是由美国人Dan Alder在Inventure公司担任CTO时编写的,目的是为了方便众多的程序员在Java2虚拟机上,调用Win32平台上COM自动化服务器中的组件。当Jacob项目以开源的方式在网络上公布以后,越来越多的人开始参与项目的研发与改进中去。   Jacob类库中只有两个包:com.jacob.activex和com.jacob.com。com.jacob.activex包建立在com.jacob.com基础之上,主要包含了ActiveXComponent类。com.jacob

How do I use a 32 Bit COM object from a 64 bit process?

北慕城南 提交于 2019-12-01 14:06:45
I Use Jacob (JAVA COM Bridge) on a 64 Bit Machine and want to load COM Objects from a 32 bit DLL. How can I do that? You will need to host the 32 bit COM object in a 32bit process. So either your entire app will have to run 32bit or youll need to place the COM object in something like COM+ and use cross process calls. I solved the problem as follows: Created a small 32 bit out-of-process COM server (.exe) that serves as a factory COM object to create the needed 32 bit objects. So now my app is running 64bit and using 32 bit COM objects. My64bitApp<-->32BitOutOfProcFactory<-->32bitCOMServerDLL

Connect 64bit Java with 32bit COM dll using Com4j or Jacob

◇◆丶佛笑我妖孽 提交于 2019-12-01 10:34:16
I have the following configuration: 1) Windows 10 64-bit 2) An application that has only a 32-bit version and is available through COM. I access the .dll file of the 32-bit application using the tlbimb.jar to generate the interfaces needed and I succeed. Scenario 1: I try to access the 32-bit application using the Java 8 32-bit installation. I can invoke the methods through COM succesfully without any problem. Scenario 2: I try to access the 32-bit application using a Java 8 64-bit installation. I get an error message: Exception in thread "main" com4j.ExecutionException: com4j.ComException:

Connect 64bit Java with 32bit COM dll using Com4j or Jacob

我的梦境 提交于 2019-12-01 07:38:03
问题 I have the following configuration: 1) Windows 10 64-bit 2) An application that has only a 32-bit version and is available through COM. I access the .dll file of the 32-bit application using the tlbimb.jar to generate the interfaces needed and I succeed. Scenario 1: I try to access the 32-bit application using the Java 8 32-bit installation. I can invoke the methods through COM succesfully without any problem. Scenario 2: I try to access the 32-bit application using a Java 8 64-bit

jacob 多个web项目报错 jacob-1.14.3-x64.dll already loaded in another classloader jacob

空扰寡人 提交于 2019-11-29 14:49:29
多个web项目报错 jacob-1.14.3-x64.dll already loaded in another classloader jacob 这个问题困扰了很久,网上很多解决方案,很多都不成功,可用的资料也很少,主要问题是一个项目加载了 jacob-1.14.3-x64.dll 这个dll文件,其它项目就不能加载. 最终解决方案如下 1,部署环境tomcat,在tomcat lib 中加入jacob jar 包 2,在tomcat webapp 下 对应使用到 jacob 的项目下的lib下删除 jacob-1.14.3.jar 即可 来源: CSDN 作者: a1986aaaaa 链接: https://blog.csdn.net/a1986aaaaa/article/details/46878917

How to configure .dll file in Java?

…衆ロ難τιáo~ 提交于 2019-11-29 04:22:42
I am using Jacob jar file in my java application. This Jacob jar file comes with a .dll file. I have added Jacob jar file to my classpath. But when I execute my application a runtime error occurs as "couldn't load jacob-1.15-M3-x86.dll file" How can I load this .dll file? Edited:================================================================================= I had set the "path" environment varaible to the dir that contains my .dll file and loading that .dll file as follows static { System.loadLibrary("jacob-1.15-M3-x86.dll"); } but the following error occured java.lang.UnsatisfiedLinkError: