Im new here and trying to develop a applet for Javacard. While following a sample code from a website, I get stuck here. NetBeans says the Package javacardx.framework does not exist.
Im using NetBeans 7.3.1
I would have not linked the Java Classic Jar file properly. Please help me
You cannot program against the standard Java API for Java Card. Java Card only uses (most of the) Java syntax and .class files as intermediate compilation results. Instead you need to configure the libraries of the Java Card SDK. Furthermore you need to run the Java Card converter, and for this you need the converted binaries and "export files" of those libraries.
More information can be found in the Java Card Development Quickstart Guide of the Java Card Netbeans plugin.
Related
I have got jar compiled in java 1.8 from maximo dir and on my machine i have java 1.7 installed do i need to update my machine java before i run this jar. I can not run it before knowing this since it will get recorded in some logs and will update some server side files.
This is more of a Java question than a Maximo question, but no, it will not. You will get an "Unsupported major.minor version 52.0" if you do. This is not because of any features issue, this is simply because the bytecode is tagged as being from Java 8 and so earlier JREs will not run it.
Now this assumes you actually compiled the class files using Java 8, which probably only happened if you have custom code in there. If you are just using the out-of-the-box Maximo classes, those came pre-compiled (in I don't recall which version of Java) and so all you might have done was to bundle them into a jar, or more likely into the Maximo ear (since you don't run the businessobjects.jar). In that case, it doesn't matter what version of Java you used to created the jar/ear, it will run on any version of Java that is the same as or higher than whatever version IBM used to compile the code into classes.
I am trying to download the Java Card Development Kit v2.2.2 , it is not available in oracle web site , can someone help me to get a download link ?
Thanks
Try this link.This might help you to download.
http://caydi31raou.chytrak.cz/websites--blogs/java-card-development-kit-v222.html
Edited
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javame-419430.html
1.You can use the standard development IDE such as Eclipse for Java developer or Netbeans.
2.Download the JavaCard Kit 2.1.1 from Sun/Oracle website here. This includes the library (JAR file) and EXPort files.
3.Create your project on Eclipse. Remove the standard JRE library and put the JAR files from JCDK here.
4.The conversion to .class files are done by javac.
5.To compile class to CAP file, you need to configure ANT build file which refer to JAR and EXP of the JCDK.
You can check the following link for sample of the ANT xml
I want to write a tiny "hello world" J2ME MIDlet. In a sample like this one, classes in javax.microedition.lcdui.* are used for display output. When I try to compile it in Eclipse, I get the error,
The import javax.microedition.lcdui cannot be resolved
I've installed JME SDK 3.4, and I'm able to run MIDlets that don't import javax.microedition.lcdui.*. I read somewhere that lcdui can be obtained from the wireless toolkit; and Oracle says that the wireless toolkit has been integrated into JME SDK as of 3.0+.
So why can't Eclipse find it?
OK, I think I know the answer now.
I got back to the JME SDK 3.4 documentation page on Using Sample projects, and created and ran an instance of UIDemo. It uses lcdui classes, but it runs flawlessly - no errors about inability to resolve javax.microedition.lcdui.*.
The difference appears to be that the working sample uses different libraries than the one I tried at first. The first one uses org.elipse.mtj.JavaMEContainer/Oracle Java(TM) Platform Micro Edition SDK 3.4/IMPNGDevice1,
while the one that works uses org.elipse.mtj.JavaMEContainer/Oracle Java(TM) Platform Micro Edition SDK 3.4/JavaMEPhone1. They contain different sets of jars, e.g. the working one contains midp_2.1.jar, while the earlier one has impng_1.0.jar.
A follow-up question might be, why doesn't IMP-NG have lcdui in it? Well, those who pay attention to what they're doing will have read that
This JSR [for IMP-NG] will define a J2ME profile targeting embedded networked devices that wish to support a Java runtime environment similar to the Mobile Information Device Profile (MIDP) version 2.0, but that do not provide the graphical display capabilities required by MIDP 2.0.
The Information Module Profile - Next Generation (IMP-NG) will be a strict subset of MIDP 2.0, where at least the APIs relating to GUI functionality (the LCDUI) are removed. Functionality not already present in MIDP 2.0 is not anticipated or desired. "
The next question might be, why did I end up selecting IMP-NG when I was going through the tutorial... when I really do want a MIDlet that does something graphically? But I'm not sure I care, now that it's working.
The new me sdk 8.2, as I understood after browsing all class and in packages, does not provides any class to develop user interface. not like sdk 3.4, that have many graphical components.
What does -useproxyclass option does for JCDK 3.0.1 and above? Can you please share some links, materials related to this.
The reason I am asking this is if my applet has any references to global platform libraries the converter is failing with the error:
error: Could not find a java compiler (javac). Do you have a Java JRE (not SDK) installed?
com.sun.javacard.converter.ConverterException
But If I am passing this -useproxyclass option to the converter, the error is not shown.
I am developing a simple Blackberry Application using Blackberry Plugins for Ecplise. I had created a MBO for Customer using the Customer table avaliable in the My Sample Database of Sybase Unwired Platform(version 1.5.2), and generated the codes for this MBO and added these Generated code to the src folder of my application in the Blackberry Plugin for Ecplise. Then added all the required .jar files and .cod files to the application. While running this application by choosing the Run as Blackberry Simulator, it is showing an error.
Error starting SUP101Sample: Module 'sup$2dclient$2drim' not found
Can you please help me, how to correct this error, and run the application?
Upgraded the Sybase Unwired Platform from 1.5.2 to 1.5.5.
Since I am using Sybase Unwired Platform of version 1.5.5, in order to access the code generated by this version I need to use Blackberry Plugin for Ecplise, which is having the JRE 5.0.0.
And in case of the .cod files we need to use sup_client_rim.cod and UltraLiteJ.cod for doing this.
This solves the problem.