473,408 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Error in running java card project

107 100+
I have created a new java card project and added new applet file to it, but when I try to run the project it shows below error:

Expand|Select|Wrap|Line Numbers
  1. java/lang/NoClassDefFoundError: java/lang/String
  2.  
My Code is

Expand|Select|Wrap|Line Numbers
  1. package smartapplet;
  2.  
  3. import javacard.framework.APDU;
  4. import javacard.framework.Applet;
  5. import javacard.framework.ISOException;
  6.  
  7. public class SmartApplet extends Applet {
  8.  
  9. private SmartApplet () {
  10. }
  11.  
  12. public static void install(byte bArray[], short bOffset, byte bLength)
  13.         throws ISOException {
  14.     new SmartApplet().register();
  15. }
  16.  
  17. public void process(APDU arg0) throws ISOException {
  18.     // TODO Auto-generated method stub
  19.  
  20. }
  21.  
  22. }
  23.  
Please Help

Thanks
Raju
Attached Files
File Type: doc SUT.z10.doc (1.39 MB, 325 views)
File Type: doc SUT.z11.doc (1.39 MB, 267 views)
File Type: doc SUT.z12.doc (1.39 MB, 264 views)
Oct 28 '14 #1
2 1424
Frinavale
9,735 Expert Mod 8TB
The String class, is part of the java.lang package; however, you have neglected to import this package.

Checkout this tutorial about Using Package Members for more information about import.

-Frinny
Oct 28 '14 #2
zmbd
5,501 Expert Mod 4TB
rajujrk :

In the posted code, at what point/line did the error occur?

As I pointed out in another thread, because many of us do this part time from secured computers, your attachments are not available and the amount of time for reading and troubleshooting code is very limited.

You might receive much more help if their content is extracted and the text posted and properly formatted and the basic troubleshooting steps have been performed.
(^_^)
Oct 29 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Familie Spies | last post by:
Hi all, When running a program I made in VB under Windows XP i'm getting the following error: ! Compile error. Can't find project or library. (see also http://home.kabelfoon.nl/~hspies/2.jpg ) ...
3
by: J | last post by:
Hi, I have setup a test server with the following installed: 1) Windoes Server 2003 - Latest SPs applied. 2) Ms_SQL Server 2000 - Latest SPs applied 3) Visual Studio 2003 I have Admin...
2
by: Mike9900 | last post by:
Hello, I am getting an error when building the project in release mode. The error is only for one project in a solution. I check the properties and release settings are the same as debug...
1
by: rave3085 | last post by:
Helo friends, I Had a VB Project in my system which was not done by me! But when i tried to Run that it gave me a message! Compile Error: Can't Find Project Or Library! Immediately after...
5
by: haran | last post by:
Hi, I have developed a project by using java Swings. Now i want to deploy that project into web. If its applet means we can deploy that by using browser. so plz help me to deploy the java swing...
2
by: wouter | last post by:
Hello, Being a chemical engineering i'm only little acquainted with programming. However I made a made a excel program with macro's using VBA. This program is used a lot in our company. However...
2
by: khalidanwar123 | last post by:
i am getting the following error while updating a clob field. ERROR java.sql.SQLException: Data size bigger than max size forthis type: 4003 19:28:27,499 ERROR at...
1
by: squrel | last post by:
Hello all.. i need a very urgent help here... i have done a project in VB6 and SQLServer 2000 but few days back my pc had to get formatted and i took the back up of my project. i have installed VB...
1
by: Gurpreet Singhh | last post by:
whats error in java statement to insert data into sql server 2005??? # String query = "insert into dbo.guru VALUES('"taskdata.getTaskid() +',' + taskdata.getTaskname()...
0
by: naveen tekkem | last post by:
i had putty in my system connected to some remote host running with linux . i have to execute my java web project by using linux command cron job in putty software. help me i dont have much idea...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.