473,385 Members | 1,356 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,385 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 1421
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.