Problem in compiling the sample applet

hello: im installed jdk 1.2.2 now i wanna folow the instruction written in the
PDF document.i did everything as it is but when i arrived to the step
"compiling the sample applet" i issue the command
" javac -g src/com/sun/javacard/samples/helloWorld/*.java"
but it doesn't work it give me a message that the command is not known.
i changed the directory where i issue the command from to c:\jdk1.1.6\bin
then he find it but i have an other problem is that he makes to error:
"package.javacard.framework not found in the import"
"import javacard.framework.*"
the second errer :
"superclass com.sun.javacard.samples.HelloWorld.applet of class com.sun.javacard.samples.HelloWorld.HelloWorld not found"
"public class HelloWorld extends applet"
i don't know why it doesn't work eventhought i folowed the steps as they are written .
can some one help me because i can"t pass to the next step if i couldn't compile those files.
thank you very much

See http://forum.java.sun.com/thread.jsp?forum=7&thread=203737

Similar Messages

  • NewBie : How can I do to compile the samples of XML Parser ?

    How can I do to compile the samples of XML Parser ?
    I must create a Makefile file, and after ?
    Thanks

    It`s for the Parser C++.
    thanks

  • I want to compile the sample code oci02.c with "vc 6.0", what should i do?

    I want compile the sample oci02.c in "D:\oracle\ora90\oci\samples' with "ms vc 6.0",
    and I don't want to use the command line like
    "cl -I%ORACLE_HOME%\oci\include -I. -D_DLL -D_MT %1.c /link /LIBPATH:%ORACLE_HOME%\oci\lib\msvc oci.lib kernel32.lib msvcrt.lib /nod:libc".
    what should i do to change the "vc 6.0"'s compiling setings?

    Do the following:
    In MS Visual Studio:
    1) Go to 'Tools' -> 'Options' -> 'Directories' -> 'Include Files' and add a new entry for OCI header files by browsing to the directory where they r located. ex; 'D:\ORACLE\ORA817\OCI\INCLUDE'
    2) Go to 'Tools' -> 'Options' -> 'Directories' -> 'Library Files' and add a new entry for OCI LIB files by browsing to the directory where they r located. ex; 'D:\ORACLE\ORA817\OCI\LIB\MSVC'
    3) In your program #include <oci.h> header file
    4) Go to 'Project' -> 'Settings' -> 'Link' -> 'Object/library modules' and enter 'oci.lib' there.
    This is all u need to do. Just remember OCI.DLL should be available in your $PATH
    All the best!
    jAGzZz!!!

  • Problems with compiling the BlackJackServer program

    hello.
    this is james mcfadden. I have developed a multiplayer BlackJack card game in Java. the game consists of six programs: BlackJack.java, BlackJackServer.java, BlackJackClient.java, Card.java, Deck.java, and Hand.java. i got most of the game code from http://www.netsoc.tcd.ie/~duncan/dev/java/games/blackjack/. When i compile the server i get the following errors (i've also included the source code in this message):
    ----jGRASP exec: javac -g X:\NETPROG\Assignment2\BlackJackServer.java
    BlackJackServer.java:56: cannot find symbol
    symbol : method getSource()
    location: class BlackJack
    bj.getSource();
    ^
    BlackJack.java:176: cannot find symbol
    symbol : method getCodeBase()
    location: class BlackJack
    card_images[current_card_loading]=getImage(getCodeBase(),"cards/"+(current_card_loading+1)+".gif");
    ^
    BlackJack.java:197: cannot find symbol
    symbol : constructor Deck(BlackJack,java.awt.Image[])
    location: class Deck
    deck=new Deck(this,card_images);//Create a new deck object
    ^
    3 errors
    ----jGRASP wedge2: exit code for process is 1.
    ----jGRASP: operation complete.
    how do i go about fixing these errors?
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class BlackJack extends JFrame implements ActionListener,Runnable{
       private Deck deck;//The deck
         private Hand player_hand;//player hand
         private Hand dealer_hand;//dealer hand
         private JButton bHit=new JButton("Hit");
         private JButton bStay=new JButton("Stay");
         private JButton bRestart=new JButton("New Game");
         //lets do some double buffering
         Image offIm=null;
         Graphics offGraphics=null;
         Dimension offDimension=null;
         Image[] card_images=new Image[52];
         private boolean cards_loaded=false;
         private int current_card_loading=0;
         String message;//print a message
         int width;//The width of the applet
         int height;//The height of the applet
         int card_width=-1;
         int card_padding=-1;//How much should we pad the cards by?
         private int games=-1;//How many games have been played?
       public BlackJack(){
              Thread card_loader=new Thread(this);
          card_loader.start();
       public static void main(String[] args){
          JFrame frame=new JFrame("BlackJack");
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setSize(500,500);
          frame.setLocation(200,200);
          BlackJack bj=new BlackJack();
          frame.setContentPane(bj);
          frame.setVisible(true);
         public void newGame(){
              bHit.setEnabled(true);
              bStay.setEnabled(false);
              player_hand=new Hand();//Create new hands
              dealer_hand=new Hand();
              //shuffle the deck.
              deck.shuffleCards();
              games++;
         public void hit(){
              bStay.setEnabled(true);
              player_hand.addCard(deck.dealCard());
              if(player_hand.getValue()>21){
                   message="You loose! (score:"+player_hand.getValue()+")";
                   //disable the hit and stay buttons...
                   bHit.setEnabled(false);
                   bStay.setEnabled(false);
                   return;
              message="Score: "+player_hand.getValue();     
         public void stay(){
              while(dealer_hand.getValue()<17){
                   dealer_hand.addCard(deck.dealCard());
              if(dealer_hand.getValue()<=21&&player_hand.getValue()<dealer_hand.getValue()){
                   message="You loose! ("+player_hand.getValue()+" - "+dealer_hand.getValue()+")";
              else if(player_hand.getValue()==dealer_hand.getValue()){
                   message="You draw! ("+player_hand.getValue()+")";
              else{
                   message="You win! ("+player_hand.getValue()+" - "+dealer_hand.getValue()+")";
              bHit.setEnabled(false);
              bStay.setEnabled(false);
         public void actionPerformed(ActionEvent e){
              if(e.getSource()==bRestart){
                   newGame();
              else if(e.getSource()==bHit){
                   hit();
              else if(e.getSource()==bStay){
                   stay();
              repaint();
         public void paint(Graphics g){
              update(g);
         public void update(Graphics g){
              //lets sord out double buffering
              if(offGraphics==null){
                   offIm=createImage(getSize().width,getSize().height);
                   offGraphics=offIm.getGraphics();
              if(!cards_loaded){
                   //display a message saying we're loading the cards...
                   offGraphics.setFont(new Font("Arial",Font.PLAIN,14));
                   offGraphics.setColor(new Color(171,205,239));
                   offGraphics.fillRect(0,0,getSize().width,getSize().height);
                   offGraphics.setColor(Color.black);
                   offGraphics.drawString("Loading cards... ",5,20);
                   offGraphics.drawRect(15,40,102,10);
                   offGraphics.drawRect(13,38,106,14);
                   offGraphics.setColor(new Color(171,205,239));
                   offGraphics.fillRect(0,0,150,35);
                   offGraphics.setColor(Color.black);
                   offGraphics.fillRect(15,40,(current_card_loading)*2,10);
                   offGraphics.drawString("Loading card: "+current_card_loading+1,15,20);
              else{
                   Image currentCard;
                   while(card_width==-1){
                        card_width=deck.getCard(0).getImage().getWidth(this);
                   if(card_padding==-1){
                        card_padding=(width-(card_width*2)-4)/4;
                   //clear the background
                   offGraphics.setColor(Color.blue);
                   offGraphics.fillRect(0,0,width,height);
                   offGraphics.setColor(Color.black);
                   offGraphics.fillRect(1,1,width-2,height-2);
                   offGraphics.setColor(Color.white);
                   offGraphics.drawString("PLAYER:",card_padding,40);
                   offGraphics.drawString("DEALER:",(width/2)+card_padding,40);
                   offGraphics.drawString(message,5,height-20);
                   if(games>0){
                        offGraphics.drawString(games+" game(s) played...",5,height-10);
                   //Draw the players hand
                   for(int i=0;i<player_hand.getCardCount();i++){
                        currentCard=player_hand.getCards().getImage();
                        offGraphics.drawImage(currentCard,card_padding,70+(20*(i-1)),this);
                   //now draw the dealers hand
                   for(int i=0;i<dealer_hand.getCardCount();i++){
                        currentCard=dealer_hand.getCards()[i].getImage();
                        offGraphics.drawImage(currentCard,(width/2)+card_padding,70+(20*(i-1)),this);
              //draw buffered image
              g.drawImage(offIm,0,0,this);
    public void run(){
              MediaTracker t=new MediaTracker(this);
              System.out.println("Frame getting cards...");
              for(current_card_loading=0;current_card_loading<52;current_card_loading++){
                   card_images[current_card_loading]=getImage(getCodeBase(),"cards/"+(current_card_loading+1)+".gif");
                   if(card_images[current_card_loading]==null){
                        System.out.println("Null card... ["+current_card_loading+"]");
                   else{
                        t.addImage(card_images[current_card_loading],0);
                   try{
                        t.waitForID(0);
                   catch(InterruptedException e){
                        System.err.println("Interrupted waiting for images..>");
                   //lets show our new status
                   repaint();
              //create the deck object now
              deck=new Deck(this,card_images);//Create a new deck object
              card_width=deck.getCard(0).getImage().getWidth(this);
              bHit.addActionListener(this);
              bStay.addActionListener(this);
              bRestart.addActionListener(this);
              bHit.setEnabled(false);
              bStay.setEnabled(false);
              width=getSize().width;
              height=getSize().height;
              this.add(bHit);
              this.add(bStay);
              this.add(bRestart);
              player_hand=new Hand();//Create the hands
              dealer_hand=new Hand();
              //make sure that the buttons appear properly
              this.validate();
              message="";
              cards_loaded=true;
              System.out.println("End of thread...");
              repaint();
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.awt.*;
    import javax.swing.*;
    public class BlackJackServer extends JFrame{
       //Text area for displaying contents
       private JTextArea jta=new JTextArea();
       public static void main(String[] args){
          new BlackJackServer();
       public BlackJackServer(){
          //Place text area on the frame
          setLayout(new BorderLayout());
          add(new JScrollPane(jta),BorderLayout.CENTER);
          setTitle("BlackJack Server");
          setSize(500,300);
          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          setVisible(true);//It is necessary to show the frame here!
          try{
             //Create a server socket
             ServerSocket serverSocket=new ServerSocket(8000);
             jta.append("Server started at "+new Date()+'\n');
             //Listen for a connection request
             Socket socket=serverSocket.accept();
             //Create data input and output streams
             DataInputStream inputFromClient=new DataInputStream(socket.getInputStream());
             DataOutputStream outputToClient=new DataOutputStream(socket.getOutputStream());
             while(true){
                //Receive bet from the client
                float bet=inputFromClient.readFloat();
                //Compute double the bet
                float doublebet=bet+bet;
                //Send double the bet back to the client
                outputToClient.writeFloat(doublebet);
                jta.append("Bet received from client: "+bet+'\n');
                jta.append("Double the bet found: "+doublebet+'\n');
          catch(IOException ex){
             System.err.println(ex);
              BlackJack bj=new BlackJack();
              bj.getSource();
    }//end class BlackJackServer
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class BlackJackClient extends JFrame{
       //Text field for receiving bet
       private JTextField jtf=new JTextField();
       //Text area to display contents
       private JTextArea jta=new JTextArea();
       //IO streams
       private DataOutputStream toServer;
       private DataInputStream fromServer;
       public static void main(String[] args){
          new BlackJackClient();
       public BlackJackClient(){
          //Panel p to hold the label and text field
          JPanel p=new JPanel();
          p.setLayout(new BorderLayout());
          p.add(new JLabel("Enter bet"),BorderLayout.WEST);
          p.add(jtf,BorderLayout.CENTER);
          jtf.setHorizontalAlignment(JTextField.RIGHT);
          setLayout(new BorderLayout());
          add(p,BorderLayout.NORTH);
          add(new JScrollPane(jta),BorderLayout.CENTER);
          jtf.addActionListener(new ButtonListener());//Register listener
          setTitle("BlackJack Client");
          setSize(500,300);
          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          setVisible(true);//It is necessary to show the frame here!
          try{
             //Create a socket to connect to the server
             Socket socket=new Socket("localhost",8000);
             //Create an input stream to receive data from the server
             fromServer=new DataInputStream(
             socket.getInputStream());
             //Create an output stream to send data to the server
             toServer=new DataOutputStream(socket.getOutputStream());
          catch(IOException ex){
             jta.append(ex.toString()+'\n');
       private class ButtonListener implements ActionListener{
          public void actionPerformed(ActionEvent e){
             try{
                //Get the bet from the text field
                float bet=Float.parseFloat(jtf.getText().trim());
                //Send the bet to the server
                toServer.writeFloat(bet);
                toServer.flush();
                //Get double the bet from the server
                float doublebet=fromServer.readFloat();
                //Display to the text area
                jta.append("Bet is "+bet+"\n");
                jta.append("Double the bet received from the server is "+doublebet+'\n');
             catch(IOException ex){
                System.err.println(ex);
    }//end class BlackJackClient
    import java.awt.*;
    class Card{
       Image image;
       int value;
       /*Constructor*/
       public Card(Image image,int value){
          this.image=image;
          this.value=value;
       /*Return the image associated with the card*/
       public Image getImage(){
          return image;
       /*Return the current value of the card*/
       public int getValue(){
          return value;
       /*Change the value of the card*/
       public void setValue(int value){
          this.value=value;
    import java.awt.*;
    //import java.applet.*;
    import java.net.*;
    import java.io.*;
    class Deck{
         Card[] cards=new Card[52];
         int currCard;
         public Deck(/*Blackjack myApplet,*/Image[] card_images){
              //These are the (initial) values of all the cards
              int[] values={11,2,3,4,5,6,7,8,9,10,10,10,10,11,2,3,4,5,6,7,8,9,10,10,10,10,11,2,3,4,5,6,7,8,9,10,10,10,10,11,2,3,4,5,6,7,8,9,10,10,10,10};
              //Make all the cards, getting the images individually
              for(int i=0;i<52;i++){
                   cards=new Card(card_images[i],values[i]);
              //Shuffle the cards
              shuffleCards();
         public void shuffleCards(){
              Card temp;
              //loop through each card in the deck and swap it with some random card
              for(int i=0;i<52;i++){
                   int rand=(int)(Math.random()*52);
                   temp=cards[51-i];//take the current card
                   cards[51-i]=cards[rand];//and swap it with some random card
                   cards[rand]=temp;
              //now, reset the currentCard to deal
              currCard=0;
         public Card dealCard(){
              Card card=cards[currCard];
              currCard++;
              return card;
         public Card getCard(int i){
              return cards[i];
    class Hand{
         private Card cards[]=new Card[10];
         private int count;
         private int value;
         public void Hand(){
              count=0;
              value=0;
         public Card[] getCards(){
              return cards;
         public int getCardCount(){
              return count;
         public void addCard(Card c){
              cards[count]=c;
              value+=cards[count].getValue();
              if(c.getValue() == 11 && value > 21){//got and ace, so decrement the value of the hand by 10,if it would have been above 21
                   value-=10;
              count++;
         public int getValue(){
              return value;
         public boolean ace(){
              int aceIndex=0;
              boolean result=false;
              for(int i=0;i<count;i++){
                   if (cards.getValue()==11){
                        value-=10;
                        return true;
              return false;

    Why are you posting this yet again after I told you what the problem was 2 days ago:
    http://forum.java.sun.com/thread.jspa?threadID=5147720
    Nobody likes to repeat themselves, nor what others have already told you.

  • Create problem when compiling the servlet

    hi,
    i got a problem when i compile a servlet
    when i try to compile the servlet, it shows that it could
    not found the classes like httpservlet, etc.
    means the classes of the servlet
    i am using the j2sdk1.4.1 edition,
    i had include the javax.servlet.*; in the program
    please tell me what can be the problem & especially any solution for that

    the javax.servlet package and it's sub packages (javax.servlet.http, javax.servlet.jsp, javax.servlet.jsp.tagext) are not included with the Standard Edition. These packages are part of the Enterprise Edition. Check out this link for download:
    http://java.sun.com/j2ee/sdk_1.3/

  • Problem while compiling the Device Driver source code onSolaris 8 intel pla

    Hello!
    We are writing Device Driver for PCI (PMC) based HS serial
    communication card on Solaris 8(intel edition).The Processor
    used is Celeron/Pentium III.
    We are facing following problems.
    1) Kindly let us know the cc compiler options for xarch=isa.
    2) Presently we have included following header files.
         #include <sys/ddi.h>
         #include <sys/sunddi.h>
    3)We tried to compile our driver soure file (pmc.c) using
    FORTE DEVELOPER 6 UPDATE 1 with the following command.
         # cc -Xa -D_KERNEL -c pmc.c
    4) The compiler is not able to reach to our source code. It prematurely fails
    while compiling the system header files
    5) The errors were reported during Preprocessor
    compilation in /SYS/*.h header files.
    cc: Warning: using -Xa, ignoring all other -X options
    "/usr/include/iso/limits_iso.h", line 54: warning: macro redefined: SHRT_MIN
    "/usr/include/iso/limits_iso.h", line 56: warning: macro redefined: USHRT_MAX
    "/usr/include/iso/limits_iso.h", line 59: warning: macro redefined: UINT_MAX
    "/usr/include/sys/vnode.h", line 486: syntax error before or at: rlim64_t
    "/usr/include/sys/vnode.h", line 486: warning: undefined or missing type for: rlim64_t
    "/usr/include/sys/vnode.h", line 487: warning: undefined or missing type for: cred_t
    "/usr/include/sys/vnode.h", line 487: warning: undefined or missing type for: ssize_t
    "/usr/include/vm/page.h", line 468: undefined or not a type: pgcnt_t
    6)Kindly let us know :-
    a) if any Environment variables to be set.
    b) What all the system include headre files are required & in what sequence if any.
    Expecting a early reply .
    Can anybody help us.
    Thanking you for your kind co-operation.
    A.P.SINGH
    INDIA               

    Try to use cc comiler from /opt/SUNWspro/bin/ like
    /opt/SUNWspro/bin/cc -Xa -D_KERNEL -c pmc.c

  • JAAS - problem in compiling the program

    Hi,
    I am working on JAAS .
    I tried the Authorization example given in this link of sun site.
    http://java.sun.com/javase/6/docs/technotes/guides/security/jaas/tutorials/GeneralAcnAndAzn.html
    I was trying to compile that program but SamplAzn.java..is not compiling.
    when I try it given the error below :
    --------------------Configurat
    ion: <Default>--------------------
    D:\AZN\sample\SampleAzn.java:135: cannot find symbol
    symbol : class SampleAction
    location: class sample.SampleAzn
    PrivilegedAction action = new SampleAction();
    ^
    Note: D:\AZN\sample\SampleAzn.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Process completed.
    --------------------------------------------------------------------------------So,What should I do ?
    Thankx..

    Yes , I created the directory structure as given in the link.
    I can compile all other ".java" file.
    But I don't know why I can't compile SampleAzn.java file.

  • Why is the constructor of EnsTopic package private?How did you compile the sample?

    JmsSample.java:77: EnsTopic(java.lang.String) is not public in com.iplanet.ens.j
    Topic topic = new com.iplanet.ens.jms.EnsTopic(ensTopic);
    ^

    A work around is to change the offending statement to
    Topic topic = topicSess.createTopic(ensTopic);

  • Problem to compile sample code with C++ Parser on Unix

    I just downloaded C++ parser and tried to compile the sample source code, but I got
    the following error:
    g++ -o DOMSample -I../include DOMSample.cpp -L../lib/xml8 -L../lib/core8 -L../lib/nls8 -L../lib/xmlc8 -L../lib/nsl -L../lib/socket
    Undefined first referenced
    symbol in file
    Node::getFirstChild(void) /var/tmp/ccarlA8y.o
    Node::getValue(void) /var/tmp/ccarlA8y.o
    XMLParser::xmlterm(void) /var/tmp/ccarlA8y.o
    XMLParser::getDocumentElement(void) /var/tmp/ccarlA8y.o
    xmlinit__9XMLParserPUcPFPvPCUcUi_vPvP8xmlsaxcbT3T1 /var/tmp/ccarlA8y.o
    Node::hasChildNodes(void) /var/tmp/ccarlA8y.o
    Node::getChildNode(unsigned int) /var/tmp/ccarlA8y.o
    Node::getName(void) /var/tmp/ccarlA8y.o
    Node::numChildNodes(void) /var/tmp/ccarlA8y.o
    XMLParser::xmlparse(unsigned char *, unsigned char *, unsigned int)/var/tmp/ccarlA8y.o
    Node::getType(void) /var/tmp/ccarlA8y.o
    ld: fatal: Symbol referencing errors. No output written to DOMSample
    collect2: ld returned 1 exit status
    make: *** [DOMSample] Error 1
    Please help me out. Thanks,
    null

    I have the similar problem when I tried to compile sample code with C++ parser on WinNT4. I am using Micrsoft Visual Studio V6.0. I added the include file and lib file in the path.
    Here are the error messages:
    Linking...
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall XMLParser::xmlterm(void)" (?xmlterm@XMLParser@@QAEXXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NamedNodeMap * __thiscall DocumentType::getEntities(void)" (?getEntities@DocumentType@@QAEPAVNamedNodeMap@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall NamedNodeMap::item(unsigned int)" (?item@NamedNodeMap@@QAEPAVNode@@I@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall NamedNodeMap::getLength(void)" (?getLength@NamedNodeMap@@QAEIXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NamedNodeMap * __thiscall DocumentType::getNotations(void)" (?getNotations@DocumentType@@QAEPAVNamedNodeMap@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class DocumentType * __thiscall XMLParser::getDocType(void)" (?getDocType@XMLParser@@QAEPAVDocumentType@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall XMLParser::xmlparse(unsigned char *,unsigned char *,unsigned int)" (?xmlparse@XMLParser@@QAEIPAE0I@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall XMLParser::xmlclean(void)" (?xmlclean@XMLParser@@QAEXXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::replaceData(unsigned long,unsigned long,unsigned char *)" (?replaceData@CharacterData@@QAEXKKPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::deleteData(unsigned long,unsigned long)" (?deleteData@CharacterData@@QAEXKK@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::insertData(unsigned long,unsigned char *)" (?insertData@CharacterData@@QAEXKPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::appendData(unsigned char *)" (?appendData@CharacterData@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall CharacterData::substringData(unsigned long,unsigned long)" (?substringData@CharacterData@@QAEPAEKK@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall CharacterData::getLength(void)" (?getLength@CharacterData@@QAEIXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall CharacterData::setData(unsigned char *)" (?setData@CharacterData@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall CharacterData::getData(void)" (?getData@CharacterData@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Text::splitText(unsigned long)" (?splitText@Text@@QAEPAVNode@@K@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::cloneNode(int)" (?cloneNode@Node@@QAEPAV1@H@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall NamedNodeMap::removeNamedItem(unsigned char *)" (?removeNamedItem@NamedNodeMap@@QAEPAVNode@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall NamedNodeMap::setNamedItem(class Node *,class Node * *)" (?setNamedItem@NamedNodeMap@@QAEHPAVNode@@PAPAV2@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NamedNodeMap * __thiscall Node::getAttributes(void)" (?getAttributes@Node@@QAEPAVNamedNodeMap@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Element::removeAttributeNode(class Attr *)" (?removeAttributeNode@Element@@QAEPAVAttr@@PAV2@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Element::setAttribute(unsigned char *,unsigned char *)" (?setAttribute@Element@@QAEPAVAttr@@PAE0@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Element::removeAttribute(unsigned char *)" (?removeAttribute@Element@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Element::getAttributeNode(unsigned char *)" (?getAttributeNode@Element@@QAEPAVAttr@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Attr::setValue(unsigned char *)" (?setValue@Attr@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall Element::setAttributeNode(class Attr *,class Attr * *)" (?setAttributeNode@Element@@QAEHPAVAttr@@PAPAV2@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Attr * __thiscall Document::createAttribute(unsigned char *,unsigned char *)" (?createAttribute@Document@@QAEPAVAttr@@PAE0@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class DocumentFragment * __thiscall Document::createDocumentFragment(void)" (?createDocumentFragment@Document@@QAEPAVDocumentFragment@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Element::normalize(void)" (?normalize@Element@@QAEXXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::removeChild(void)" (?removeChild@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::replaceChild(class Node *)" (?replaceChild@Node@@QAEPAV1@PAV1@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Document * __thiscall Node::getOwnerDocument(void)" (?getOwnerDocument@Node@@QAEPAVDocument@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getParentNode(void)" (?getParentNode@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall NodeList::item(unsigned int)" (?item@NodeList@@QAEPAVNode@@I@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall NodeList::getLength(void)" (?getLength@NodeList@@QAEIXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NodeList * __thiscall Document::getElementsByTagName(class Element *,unsigned char *)" (?getElementsByTagName@Document@@QAEPAVNodeList@@PAVElement@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: void __thiscall Node::setValue(unsigned char *)" (?setValue@Node@@QAEXPAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getPreviousSibling(void)" (?getPreviousSibling@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getLastChild(void)" (?getLastChild@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getNextSibling(void)" (?getNextSibling@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::getFirstChild(void)" (?getFirstChild@Node@@QAEPAV1@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::insertBefore(class Node *,class Node *)" (?insertBefore@Node@@QAEPAV1@PAV1@0@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class EntityReference * __thiscall Document::createEntityReference(unsigned char *)" (?createEntityReference@Document@@QAEPAVEntityReference@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class CDATASection * __thiscall Document::createCDATASection(unsigned char *)" (?createCDATASection@Document@@QAEPAVCDATASection@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class ProcessingInstruction * __thiscall Document::createProcessingInstruction(unsigned char *,unsigned char *)" (?createProcessingInstruction@Document@@QAEPAVProcessingInstruction@@PA
    E0@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Comment * __thiscall Document::createComment(unsigned char *)" (?createComment@Document@@QAEPAVComment@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Text * __thiscall Document::createTextNode(unsigned char *)" (?createTextNode@Document@@QAEPAVText@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Element * __thiscall XMLParser::getDocumentElement(void)" (?getDocumentElement@XMLParser@@QAEPAVElement@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Node * __thiscall Node::appendChild(class Node *)" (?appendChild@Node@@QAEPAV1@PAV1@@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Element * __thiscall Document::createElement(unsigned char *)" (?createElement@Document@@QAEPAVElement@@PAE@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Document * __thiscall XMLParser::getDocument(void)" (?getDocument@XMLParser@@QAEPAVDocument@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class Document * __thiscall XMLParser::createDocument(void)" (?createDocument@XMLParser@@QAEPAVDocument@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall XMLParser::xmlinit(unsigned char *,void (__cdecl*)(void *,unsigned char const *,unsigned int),void *,struct xmlsaxcb *,void *,unsigned char *)" (?xmlinit@XMLPar
    ser@@QAEIPAEP6AXPAXPBEI@Z1PAUxmlsaxcb@@10@Z)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall Node::numChildNodes(void)" (?numChildNodes@Node@@QAEIXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: class NodeList * __thiscall Node::getChildNodes(void)" (?getChildNodes@Node@@QAEPAVNodeList@@XZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall Node::hasChildNodes(void)" (?hasChildNodes@Node@@QAEHXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Attr::getValue(void)" (?getValue@Attr@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: int __thiscall Attr::getSpecified(void)" (?getSpecified@Attr@@QAEHXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Attr::getName(void)" (?getName@Attr@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Node::getValue(void)" (?getValue@Node@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: unsigned char * __thiscall Node::getName(void)" (?getName@Node@@QAEPAEXZ)
    FullDOM.obj : error LNK2001: unresolved external symbol "public: short __thiscall Node::getType(void)" (?getType@Node@@QAEFXZ)
    LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
    Debug/orafulldom.exe : fatal error LNK1120: 64 unresolved externals
    Error executing link.exe.
    orafulldom.exe - 65 error(s), 0 warning(s)
    null

  • Exactly how to run sample Applets

    First, let me say exactly what I have done: I unzipped the Solaris version of the Java Card Development Kit on my machine. I then downloaded and unzipped the walletdemo. I opened two terminals and in one typed: jcwde -p 9025 jcwde.app and got the appropriate message. In the other, I typed: apdutool walletApp.scr and got: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException. What does this mean? I don't have the regular JDK installed, does that matter? How do I run one of the sample applets that came with JCDK?
    Thanks

    Hello ! Did you compiled the Wallet.java File ya you need java 1.3 for running the .java file .
    Neelesh
    [email protected]

  • Silly problem when compiling main class

    hi there,
    i have a problem when compiling the main class.
    the classes used by the main class are not recognized. the compiler can't locate the children classes.
    i've already set the path and classpath environment variables, but there's still something missing.
    how should i organize my folders in order to be able to compile the main class successfully, please?
    thanks.

    It would be good to have a precise problem description: the actual command used, folder structure and environment variable settings. Even if you have to construct a simple test case with a couple of classes that illustrates the problem.
    In the absence of that some generic remarks:
    The PATH variable typically points at all the folders that contain executable files that you use often. You can always access other executable files by specifying there full names.
    The CLASSPATH variable is typically left unset.
    When you use the java tools (like the javac compiler or the java runtime) you can specify the classpath that you want to use with -cp. This will override any CLASSPATH value. So in the simple case of two classes (Main and MyClass), you can put them in anywhere you like (for example C:\MyJavaStuff) and compile and run with:
    {noformat}
    C:\MyJavaStuff> javac -cp . *.java
    C:\MyJavaStuff> java -cp . Main
    {noformat}(Mind the dot after -cp))
    By a "main" class I guess you mean a class with a static void main(String args[]) method, but I am suspicious of your "child" classes. Perhaps packages are involved. A precise description of the problem would help.

  • Error when compiling the J2ee tutorial source files

    HI,
    I have installed ant, j2ee tomcat-3.2.2 and jdk1.3 and when i tried to compile the source file downloaded from java.sun by
    ant converter, it prompted
    "Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/main"
    I am running it on win98 with the autoexec.bat containing the followings:
    set J2EE_HOME=c:\j2sdkee1.3
    set JAVA_HOME=c:\jdk1.3.1
    set ANT_HOME=c:\jakarta-ant-1.3
    set TOMCAT_HOME=c:\tomcat\jakarta-tomcat-3.2.2
    set classpath=;.;c:\jdk1.3.1\jre\lib\rt.jar;c:\j2sdkee1.3\lib\j2ee.jar;c:\jaxp\xalan.jar;c:\jaxp\crimson.jar;c:\jaxp\jaxp.jar;c:\C:\jakarta-ant-1.3\lib\ant.jar;C:\jakarta-ant-1.3\lib\jaxp.jar;C:\jakarta-ant-1.3\lib\parser.jar
    PATH=%PATH%;"C:\Program Files\Mts";C:\PROGRA~1\ULTRAE~1;c:\jdk1.3.1\bin;c:\j2sdkee1.3\bin;c:\jakarta-ant-1.3\bin;C:\PROGRA~1\MICROS~4\80\TOOLS\BINN
    Really thx for help !!!!

    Hi.
    I am compiling the sample converter.ear downloaded from
    the j2ee tutorial bundle form java.sun. I am using jakarta-ant-1.4alpha-bin.zip downloaded from jakarta
    oh..yes it should be org.apache.tools.ant.Main ....sorryfor typo.....
    look forward to any helpful reply

  • Problem while loading the applet across SSL in IE 5.0 & NS 6.0

    Hi
    Can any one of u guys solve my problem????
    I m trying to load an applet thru https protocol in both the browsers( IE 5.0 and Netscape 6.0). I am having a jar file which contains the applet class files and some helper files for the applet.When i m accessing the image URL (in the html file for the applet) thru https protocol itz working fine on both the browsers. But when i try to access codebase thru https i m getting different errors on both the browsers. Errors r as follows.
    Exception in IE 5.0
    java.net.ConnectException: HTTPS response=404
    at
    sun.plugin.protocol.https.BrowserHttpsInputStream.openStream(Native
    Method)
    at
    sun.plugin.protocol.https.BrowserHttpsInputStream.<init>(Unknown
    Source)
    at
    sun.plugin.protocol.https.BrowserHttpsURLConnection.getInputStream(Unknown
    Source)
    at sun.plugin.cachescheme.PluginURLConnection.downLoadFile(Unknown
    Source)
    at
    sun.plugin.cachescheme.PluginJarCacheHandler.downloadJarFileToCache(Unknown
    Source)
    at
    sun.plugin.cachescheme.PluginJarCacheHandler.cacheHandler(Unknown
    Source)
    at
    sun.plugin.cachescheme.PluginJarCacheHandler.getJarFilesPath(Unknown
    Source)
    at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Exception in Netscape 6.0
    java.lang.ClassFormatError: package1/package2/package3/TiffViewer (Bad
    magic number)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at sun.plugin.security.PluginClassLoader.access$201(Unknown
    Source)
    at sun.plugin.security.PluginClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Plz help me out if any one of u guys have came across such type of problem. Its very very urgent as well as critical. Any help / suggestion will highly be appreciated
    tks in advance
    Soniya

    Hi..
    I m also facing the same problem as described above. I have checked up the path for the class files mentioned in the "code" param in the html file.I also tested with the sample program but could not succed in getting the result.Both the browsers give different error messages as mentioned in the query posted by soniya1.I would be thankful if u can kindly throw some light on this
    if u have some sample code u may kindly drop it to the following mail id
    [email protected]
    hope to hear from u soon
    tx in advance
    R.Lakshmi

  • Problem compiling a basic applet....

    Can anybody point out the error on the following applet code:
    import javax.swing.*;
    import java.awt.Graphics;
    public class AverageApplet{
    double average;
    public void init()
    int counter = 1;
    int total = 0;
    int grade;
    String grades;
    while(counter <= 10 )
    grades = JOptionPane.showInputDialog("Enter the grades as integers:");
    grade = Integer.parseInt(grades);
    counter = counter + 1;
    total = total + grade;
    average = total / 10;
    public void paint( Graphics g )
    super.paint( g );
    g.drawString("The average is: " + average, 30,40 );
    I believe the problem lies on the super.paint(g) method...Can anyone help?

    guestworm wrote:
    Can anybody point out the error on the following applet code: No. It's your job to point out the error, with the full error message (if it's a compile error) or message and stacktrace (if it's a run-time error). It's our job to explain it to you.
    Give us the full information.
    Also, in the future, please use the CODE button in the editor when posting code.

  • Problem deploying the sample application

    anyone had success deploying the Identity Server 5.1 sample applications? I was trying to deploy and run the Authentication sample by going through the directions given in the readme file. I deployed it using amadmin utility and after that i dont know what to do. The instructions are not clear and i think the sample is not in sync with 5.1 version.
    Any feedback is appreciated.
    Thanks
    Hugo

    Yes that is true ..
    I had to modify the steps quite a bit to get it to run ..
    see details below ..
    set the following class paths ..
    JAVA_HOME - Set this variable to your installation of JDK. The JDK should be newer than JDK 1.2.2.
    CLASSPATH - Modify the /opt to the base of your installation. Install_Directory/SUNWam/web-apps/services/WEB-INF/lib directory.
    BASE_CLASS_DIR - Set this variable to the directory where all the Sample compiled classes are located.
    JAR_DIR - Set this variable to the directory where the JAR files of the Sample compiled classes will be created.
    after this in the Makefile make sure to comment JAVA_HOME env variable, you can comment it using #
    and then run make
    this should generate the jar files ..
    cp the jar files to Install_Directory/SUNWam/web-apps/services/WEB-INF/lib".
    Copy AuthenticationSample.properties from Install_Directory/SUNWam/samples/authentication/providers to Install_Directory/SUNWam/web-apps/services/WEB-INF/config/auth/default.
    make a copy of amAuth.xml in /install_dir/SUNWam/config/xml
    in the following line
    <AttributeSchema name="iplanet-am-auth-authenticators"
    type="list"
    syntax="string"
    i18nKey="a17">
    <DefaultValues>
    (add the line below to the existing list of lines) <Value>com.iplanet.am.samples.authentication.providers.AuthenticationSample</Value>
    </DefaultValues>
    </AttributeSchema>
    also modify the auth menu to add the sample ..
    <AttributeSchema name="iplanet-am-auth-menu"
    type="multiple_choice"
    syntax="string"
    i18nKey="a1">
    <ChoiceValues>
    <Value>LDAP</Value>
    <Value>Radius</Value>
    <Value>Membership</Value>
    <Value>Anonymous</Value>
    <Value>Cert</Value>
    <Value>AuthenticationSample</Value>
    </ChoiceValues>
    <DefaultValues>
    <Value>LDAP</Value>
    </DefaultValues>
    </AttributeSchema>
    Delete iPlanetAMAuthService entry and then import (the modified) amAuth.xml using amadmin.
    cd <install-root>/SUNWam/bin
    ./amadmin --runAsDN uid=amAdmin,ou=People,<default_org>,<root_suffix> --password <password> --deleteService iPlanetAMAuthService
    ./amadmin --runAsDN uid=amAdmin,ou=People,<default_org>,<root_suffix> --password <password> --schema amAuth.xml
    Add the AuthenticationSample.jar file path to the Web server JVM classpath:
    cd Install_Directory/SUNWam/servers/https-<host>.<domain>/config
    Modify jvm12.conf to add Install_Directory/SUNWam/web-apps/services/WEB-INF/lib/AuthenticationSample.jar path to the JVM classpath.

Maybe you are looking for