简体   繁体   English

Eclipse JCOP-重建项目?

[英]Eclipse JCOP- rebuilding project?

I am using jcop tool plugin with eclipse and my atr is:- 我在Eclipse中使用jcop工具插件,我的atr是:-

--Opening terminal
<div class="jive-quote"> /card -a a000000003000000 -c com.ibm.jc.CardManager</div>
--Waiting for card...
ATR=3B E9 00 00 81 31 FE 45 4A 43 4F 50 34 31 56 32    ;....1.EJCOP41V2
    32 A7                                              2.

everything is fine with sample applet { it contain a empty process () or gives 90 00 for select applet apdu } 样本applet一切都很好{它包含一个空进程()或为选择applet apdu给出90 00}

I am using eclipse ide and jcop plugin, basically my problem is to building project when any changes occoured, initially when i start a new project with steps like:- 1- java card project 我正在使用eclipse ide和jcop插件,基本上我的问题是在发生任何更改时构建项目,最初是在我使用以下步骤启动新项目时:-1- Java卡项目

2-java applet 2-java小程序

3-package id 3个包裹的编号

4-applet id 4个小程序ID

5-basic template of applet ... 小程序的5个基本模板...

N- finish ok N-完成

then when screen open, at the left side i saw cap file propery window ,and automatically there are cap file in bin folder. 然后,当屏幕打开时,在左侧我看到了cap文件属性窗口,并且bin文件夹中自动有cap文件。

It means jcop tool used converter to make .cap file, but when i add some lines according to my requirment, I am unable to build it again or unable to get a new cap file. 这意味着jcop工具使用了转换器来制作.cap文件,但是当我根据自己的要求添加一些行时,我无法再次构建它或无法获取新的cap文件。 May be i need to set some build path , but first time it automatically build so it also 可能是我需要设置一些构建路径,但是第一次它会自动构建,因此它也会
indicate that there are no need to set the build path. 表示不需要设置构建路径。 I am confused in this area. 我在这方面感到困惑。 Is i need to reference the path of converter.jar { jcdk 2.2.1 }? 我是否需要引用converter.jar {jcdk 2.2.1}的路径? or jcop plugin also have the required jar for converting .class to .cap , inside it. 或jcop插件还具有将.class转换为.cap所需的jar。 how i rebuild it and make a new fresh .cap file. 我如何重建它并制作一个新的.cap文件。

some jar file which i paste in plugin folder of eclipse are:- 我粘贴在eclipse插件文件夹中的一些jar文件是:-

com.ibm.bluez.jcop.eclipse.demopack_1.0.2.jar
com.ibm.bluez.jcop.eclipse.perftest_1.0.2.jar
com.ibm.bluez.jcop.eclipse.signlite_1.0.2.jar
com.ibm.bluez.jcop.eclipse.targetpack.gemplus_1.0.0.jar
com.ibm.bluez.jcop.eclipse.targetpack_1.0.3.3.jar
com.ibm.bluez.jcop.eclipse_1.0.3.3.jar
com.ibm.bluez.jcop.eclipse_3.1.1.a.jar

before i was using JCDE plugin for simulation process but here i did not use JCDE, I have only eclipse + jcop plugin 在我将JCDE插件用于仿真过程之前,但在这里我没有使用JCDE,我只有eclipse + jcop插件

I tried to tell you, what is my problem, If you still have any doubt , Let me know. 我试图告诉你,我的问题是什么,如果您还有任何疑问,请告诉我。

Waiting for your reply and thanks for your time ............ 等待您的答复并感谢您的时间.............

If your Java classes compiled correctly then the build path should be OK. 如果您的Java类正确编译,则构建路径应该正确。 It's more likely that the JCOP converter (it's included as a build step in the project) fails. JCOP转换器(包含在项目的构建步骤中)很有可能会失败。 This could be because there are some Java Card restrictions that have been broken. 这可能是因为某些Java Card限制已被打破。 Unfortunately, the JCOP converter can fail silently. 不幸的是,JCOP转换器可能会静默失败。 Common reasons are: the use of integers within expressions/comparisions and the use of byte code (method calls, field access) within constants ( static final fields). 常见原因是:在表达式/比较中使用整数,以及在常量( static final字段)中使用字节码(方法调用,字段访问)。

If you cannot figure it out, try to compile and convert using the official Java Card API and converter (you can add additional libs to the official converter in the form of .ext files and of course .jars or classes). 如果无法弄清楚,请尝试使用官方Java Card API和转换器进行编译和转换(可以将其他库以.ext文件的形式(当然还有.jars或类)添加到官方转换器中)。 It will probably catch more errors, including the ones above. 它可能会捕获更多错误,包括上述错误。

No need JCDE. 无需JCDE。 After you change the code, just save it and then go to run configuration menu to install the applet. 更改代码后,只需保存它,然后转到运行配置菜单以安装小程序。 Then everything is ok. 那一切都很好。

i think this would be very useful for you to start building the java card development environment. 我认为这对您开始构建Java卡开发环境非常有用。 http://www.phonesdevelopers.com/1755905/ http://www.phonesdevelopers.com/1755905/

Initially i was unable to getting the eclipse and JCOP concept, but now i do. 最初,我无法获得日食和JCOP的概念,但现在我可以了。 now I am able to build the project or eclipse is building it automatically !!!! 现在我能够构建项目,或者eclipse会自动构建它! I faced this problem b'se i am a newbie in java card. 我是Java卡的新手,因此遇到了这个问题。 but now things going good to me. 但是现在情况对我有利。

I want to share my getting here:-- 我想分享我的到这里:

My dout was - Is jcop intially have all the Jar's , converter which is required to create a cap file???? 我的 do悔是-jcop 最初是否拥有创建cap文件所需的所有Jar转换器?
My ans is - Yes, EVERYTHING IT HAVE INSIDE. 我的回答是 -是的,一切都在里面。
you just get eclipse ide and get jcop plugin , and paste jcop plugin jar's inside the plugin folder of ecipse and START ECLIPS AGAIN. 您只需获取eclipse ide并获取jcop插件 ,然后将jcop插件jar粘贴到ecipse的plugin文件夹中,然后重新启动 ECLIPS。

NOW EVERYTHING IS SET FOR YOU, 现在一切准备就绪,
NO REQUIREMENT OF JCDE-java card development envoirnment 作者JCDE-Java Card开发envoirnment 要求
no requirement of jcdk- java card development kit , 无需 jcdk- java卡开发套件,
no requirement of set any build path in eclipse. 无需在Eclipse中设置任何构建路径。 just make your applet , and run with jcop tool. 只需创建applet,然后使用jcop工具即可运行。
ECIPSE AUTOMATICALLY BUILD OPTION WILL CREATE A FRESH .CAP FILE WHENEVER U MADE A NEW CHANGES cheers!!! 每当您进行新的更改时,ecipse自动构建的选项都会创建一个新的.CAP文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM