A problem of aglet who can help me?

This is my program,but error throw when i run.
import com.ibm.aglet.*;
import java.net.*;
import com.ibm.aglet.system.Aglets;
public class simpleaglet{
AgletProxy proxy;
public static void main(String [] args){
     System.out.println("test is start");
     try{
     AgletProxy proxy=Aglets.createAglet("atp://"+InetAddress.getLocalHost().getHostAddress()+":4434",null,"DisplayAglet",null);
     catch(Exception e) {}
     System.out.println("test is end");
the error information:
Exception in thread "main" java.lang.NoClassDefFoundError
at com.ibm.aglet.system.Aglets.createAglet(Unknown Source)
at simpleaglet.main(simpleaglet.java:17)
who can help me mail my email [email protected] you

If you are having trouble creating the aglets, you should make sure you're doing it correctly in the first place.
Make sure you open Thaiti and can create the aglet in there. Then once you have one aglet, that aglet should use it's AgletContext to create a new aglet. Don't use the static creator method. So you would use Tahiti to load "MyAgent", which would immediately spawn another aglet.
public class MyAgent extends Aglet {
     public MyAgent() {
          makeAgent(getAgletContext(),getCodeBase());
     public void makeAgent(AgletContext context, URL codeBase) {
          try {
          context.createAglet(codeBase, "com.agents.BuyerAgent", null);
          catch (Exception e) {
               System.out.println("ERROR: Exception in makeAgent!");
               e.printStackTrace();
}

Similar Messages

  • Even though I have repaired, deinstalled and reinstalled itunes, the assitent still tells me that I can't burn or import music due to an incomplete installation... I have been using itunes for years now and never had a problem...who can help??? thx

    Hey everybody,
    even though I have repaired, deinstalled and reinstalled itunes, the assitent still tells me that I can't burn or import music due to an incomplete installation... I have been using itunes for years now and never had a problem...who can help??? thx

    check out this support article.

  • Problem With GUI ( Who can help me! )

    Hallo,
    It�s a very simple program to See the Clock on a panel. The program works well, but if I want to include a GUI to my program, it don�t want. I use runable action and I think that is be the problem.
    Here below you can see the code�s. I�m sure there is someone who can help me.
    Thanks a lot,
    Seyyed
    The code:
    public class Clock_maken extends java.applet.Applet
    implements Runnable {
    public volatile Thread clockThread = null;
    JLabel           Datuum_label;
    DateFormat      formatter;
    Locale           locale;
    Date           currentDate;
    String          today;
    public void init(){ 
    locale = Locale.getDefault();
    Datuum_label = new JLabel("date");
    public void start() {       
    Datuum_label.setForeground(Color.black);
    add(Datuum_label);
    if(clockThread == null) {
    clockThread = new Thread(this);
    clockThread.start();
    public void run() {
         Thread myThread = Thread.currentThread();
         while (clockThread == myThread) {
         currentDate = new Date();
    formatter =                     DateFormat.getDateTimeInstance(DateFormat.FULL,
              DateFormat.MEDIUM, locale);
    today = formatter.format(currentDate);
    Datuum_label.setText(today);
    try {
    Thread.sleep(1000);
    } catch (InterruptedException e){ }
    public void stop() {clockThread = null;}
    public static void main(String[] args){
    JFrame.setDefaultLookAndFeelDecorated(true);
    JFrame      lunarPhasesFrame = new JFrame("Lunar Phases");
    lunarPhasesFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Clock_maken phases = new Clock_maken();
    phases.init();
    phases.start();
    lunarPhasesFrame.pack();
    lunarPhasesFrame.setVisible(true);
    Now i want to create a GUI like folowing, but it dont work. Do u know wat is de probleem of mijn prograam.
    private static void createAndShowGUI() {
    JFrame.setDefaultLookAndFeelDecorated(true);
         /*     JFrame      lunarPhasesFrame = new JFrame("Lunar Phases");
              lunarPhasesFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    */ Clock_maken phases = new Clock_maken();
         /*     phases.init();
              phases.start();
              lunarPhasesFrame.pack();
         lunarPhasesFrame.setVisible(true);*/
    public static void main(String[] args) {
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    }

    Continued here, with formatted code:
    http://forum.java.sun.com/thread.jspa?threadID=725022

  • Who can help me :)--a problem with java program(reset problem in java )

    I do not know how to make the button reset,my program only could reset diagram but button.If any one who could help me to solve this problem.The problem is When the reset button is pressed, the image should immediately revert to the black square, and the 4 widgets listed above should show values that
    correspond to the black square.The code like this,first one is shapes:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class shapes extends JFrame {
         private JPanel buttonPanel; // panel for buttons
         private DrawPanel myPanel;  // panel for shapes
         private JButton resetButton;
        private JComboBox colorComboBox;
         private JRadioButton circleButton, squareButton;
         private ButtonGroup radioGroup;
         private JCheckBox filledButton;
        private JSlider sizeSlider;
         private boolean isShow;
         private int shape;
         private boolean isFill=true;
        private String colorNames[] = {"black", "blue", "cyan", "darkGray", "gray",
                                   "green", "lightgray", "magenta", "orange",
                                   "pink", "red", "white", "yellow"};   // color names list in ComboBox
        private Color colors[] = {Color.black, Color.blue, Color.cyan, Color.darkGray,
                              Color.gray, Color.green, Color.lightGray, Color.magenta,
                              Color.orange, Color.pink, Color.red, Color.white, Color.yellow};
         public shapes() {
             super("Draw Shapes");
             // creat custom drawing panel
            myPanel = new DrawPanel(); // instantiate a DrawPanel object
            myPanel.setBackground(Color.white);
             // set up resetButton
            // register an event handler for resetButton's ActionEvent
            resetButton = new JButton ("reset");
             resetButton.addActionListener(
              // anonymous inner class to handle resetButton events
                 new ActionListener() {
                       // draw a black filled square shape after clicking resetButton
                     public void actionPerformed (ActionEvent event) {
                             // call DrawPanel method setShowStatus and pass an parameter
                          // to decide if show the shape
                         myPanel.setShowStatus(true);
                             isShow = myPanel.getShowStatus();
                             shape = DrawPanel.SQUARE;
                         // call DrawPanel method setShape to indicate shape to draw
                             myPanel.setShape(shape);
                         // call DrawPanel method setFill to indicate to draw a filled shape
                             myPanel.setFill(true);
                         // call DrawPanel method draw
                             myPanel.draw();
                             myPanel.setFill(true);
                             myPanel.setForeground(Color.black);
                   }// end anonymous inner class
             );// end call to addActionListener
            // set up colorComboBox
            // register event handlers for colorComboBox's ItemEvent
            colorComboBox = new JComboBox(colorNames);
            colorComboBox.setMaximumRowCount(5);
            colorComboBox.addItemListener(
                 // anonymous inner class to handle colorComboBox events
                 new ItemListener() {
                     // select shape's color
                     public void itemStateChanged(ItemEvent event) {
                         if(event.getStateChange() == ItemEvent.SELECTED)
                             // call DrawPanel method setForeground
                             // and pass an element value of colors array
                             myPanel.setForeground(colors[colorComboBox.getSelectedIndex()]);
                        myPanel.draw();
                }// end anonymous inner class
            ); // end call to addItemListener
            // set up a pair of RadioButtons
            // register an event handler for RadioButtons' ItemEvent
             squareButton = new JRadioButton ("Square", true);
             circleButton = new JRadioButton ("Circle", false);
             radioGroup = new ButtonGroup();
             radioGroup.add(squareButton);
             radioGroup.add(circleButton);
            squareButton.addItemListener(
                // anonymous inner class to handle squareButton events
                new ItemListener() {
                       public void itemStateChanged (ItemEvent event) {
                           if (isShow==true) {
                                 shape = DrawPanel.SQUARE;
                                 myPanel.setShape(shape);
                                 myPanel.draw();
                   }// end anonymous inner class
             );// end call to addItemListener
             circleButton.addItemListener(
                   // anonymous inner class to handle circleButton events
                new ItemListener() {
                       public void itemStateChanged (ItemEvent event) {
                             if (isShow==true) {
                                 shape = DrawPanel.CIRCLE;
                                 myPanel.setShape(shape);
                                 myPanel.draw();
                             else
                                 System.out.println("Please click Reset button first");
                   }// end anonymous inner class
             );// end call to addItemListener
             // set up filledButton
            // register an event handler for filledButton's ItemEvent
            filledButton = new JCheckBox("Filled", true);
             filledButton.addItemListener(
              // anonymous inner class to handle filledButton events
            new ItemListener() {
                  public void itemStateChanged (ItemEvent event) {
                    if (isShow==true) {
                            if (event.getStateChange() == ItemEvent.SELECTED) {
                                  isFill=true;
                                  myPanel.setFill(isFill);
                                  myPanel.draw();
                            else {
                                isFill=false;
                                  myPanel.setFill(isFill);
                                  myPanel.draw();
                    else
                        System.out.println("Please click Reset button first");
              }// end anonymous inner class
             );// end call to addItemListener
            // set up sizeSlider
            // register an event handler for sizeSlider's ChangeEvent
            sizeSlider = new JSlider(SwingConstants.HORIZONTAL, 0, 300, 100);
            sizeSlider.setMajorTickSpacing(10);
            sizeSlider.setPaintTicks(true);
            sizeSlider.addChangeListener(
                 // anonymous inner class to handle sizeSlider events
                 new ChangeListener() {
                      public void stateChanged(ChangeEvent event) {
                          myPanel.setShapeSize(sizeSlider.getValue());
                             myPanel.draw();
                 }// end anonymous inner class
             );// end call to addChangeListener
            // set up panel containing buttons
             buttonPanel = new JPanel();
            buttonPanel.setLayout(new GridLayout(4, 1, 0, 50));
             buttonPanel.add(resetButton);
             buttonPanel.add(filledButton);
            buttonPanel.add(colorComboBox);
            JPanel radioButtonPanel = new JPanel();
            radioButtonPanel.setLayout(new GridLayout(2, 1, 0, 20));
            radioButtonPanel.add(squareButton);
            radioButtonPanel.add(circleButton);
            buttonPanel.add(radioButtonPanel);
            // attach button panel & draw panel to content panel
            Container container = getContentPane();
            container.setLayout(new BorderLayout(10,10));
            container.add(myPanel, BorderLayout.CENTER);
             container.add(buttonPanel, BorderLayout.EAST);
            container.add(sizeSlider, BorderLayout.SOUTH);
            setSize(500, 400);
             setVisible(true);
         public static void main(String args[]) {
             shapes application = new shapes();
             application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }second one is drawpanel:
    import java.awt.*;
    import javax.swing.*;
    public class DrawPanel extends JPanel {
         public final static int CIRCLE = 1, SQUARE = 2;
         private int shape;
         private boolean fill;
         private boolean showStatus;
        private int shapeSize = 100;
        private Color foreground;
         // draw a specified shape
        public void paintComponent (Graphics g){
              super.paintComponent(g);
              // find center
            int x=(getSize().width-shapeSize)/2;
              int y=(getSize().height-shapeSize)/2;
              if (shape == CIRCLE) {
                 if (fill == true){
                     g.setColor(foreground);
                      g.fillOval(x, y, shapeSize, shapeSize);
                else{
                       g.setColor(foreground);
                    g.drawOval(x, y, shapeSize, shapeSize);
              else if (shape == SQUARE){
                 if (fill == true){
                     g.setColor(foreground);
                        g.fillRect(x, y, shapeSize, shapeSize);
                else{
                        g.setColor(foreground);
                    g.drawRect(x, y, shapeSize, shapeSize);
        // set showStatus value
        public void setShowStatus (boolean s) {
              showStatus = s;
         // return showstatus value
        public boolean getShowStatus () {
              return showStatus;
         // set fill value
        public void setFill(boolean isFill) {
              fill = isFill;
         // set shape value
        public void setShape(int shapeToDraw) {
              shape = shapeToDraw;
        // set shapeSize value
        public void setShapeSize(int newShapeSize) {
              shapeSize = newShapeSize;
        // set foreground value
        public void setForeground(Color newColor) {
              foreground = newColor;
         // repaint DrawPanel
        public void draw (){
              if(showStatus == true)
              repaint();
    }If any kind people who can help me.
    many thanks to you!

    4 widgets???
    maybe this is what you mean.
    add this inside your actionPerformed method for the reset action
    squareButton.setSelected(true);
    colorComboBox.setSelectedIndex(0);
    if not be more clear in your post.

  • I have a problem, i can't change my lockscreen wallpaper after i upgrade my iphone 4s to ios 5.1.1... Is there anyone who can help me?

    I have a problem, i can't change my lockscreen wallpaper? Doesnt work...is there anyone who can help me regarding this problem? Thx

    To help, we need more detailed information.
    --What steps are you trying?
    --What does the device tell you (any pop-ups or messages)?
    --Are you able to change the Home screen wallpaper, or is that affected too?
    --Are you the phone's owner/administrator, or is this a device used for work (assigned/administered by IT staff, possible on an Exchange server)?
    --Have you jailbroken the device?

  • Ive finished my first website now my next problem, who can help?

    Hi there,
    With lots of help from Nadia, ive finished my website..
    http://www.tlmgoldman.com/
    Now ive got to move on to an other level and i hope you can help me.
    As you can see the website is working fine. Now ive got one new question from my client. Is it possible that my client can change the text himself? And he want to add a new page with a lot off new pictures.. for the employers.
    What is the best way to do this. Is it possible to do this without a cms system because cms is for me like flying to mars..
    Is there some kind of program so my client can upload some pictures and changes some text on all the pages?
    I will be happy to hear from you..
    Regards Brian

    Hi thank you for your response,
    but when i replace the text my whole left column dissapears. Must i replace the first text or just add it can you tell me where to put it?
    Welkome bij TLM Goldman<br />
    TLM Goldman levert sinds 2007 consultingdiensten in de branche Trading & Investments. De focus van onze cliënten ligt op de handel in financiële instrumenten en derivaten zoals aandelen, obligaties, energie, carbon, opties, equity swaps, futures en gerelateerde producten. TLM Goldman zet zich in voor zijn cliënten opdat zij concurrerend blijven in hun markt, operationele voordelen behalen en aan internationale wet- en regelgeving voldoen.
    Date: Mon, 24 May 2010 15:54:07 -0600
    From: [email protected]
    To: [email protected]
    Subject: Ive finished my first website now my next problem, who can help?
    Switch to Code View.
    <div id="left_column">
    h3. Welcome to TLM Goldman
    <!begin Cushy CMS editable division>
    <div class="cushycms">
    </div>  <!end cushycms>
    </div>  <!end left_column>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com
    >

  • I am trying to install Adobe Premiere Elements 9 without success. I successfully installed Photoshop Elements 9 without a problem. The message I am getting is 'Invalid Unicode file - .\Autoplay\LangData\en_US\lang.dat'. Anyone out there who can help pleas

    I am trying to install Adobe Premiere Elements 9 without success. I successfully installed Photoshop Elements 9 without a problem. The message I am getting is 'Invalid Unicode file - .\Autoplay\LangData\en_US\lang.dat'. Anyone out there who can help please?

    click setup, not autoplay.

  • Error Message:"Cannot find or create the font 'WP-MathA'. Some characters may not display or print correctly."  Who can help me solve this problem?

    Some of the pdf files I work with (receive) come up with a comment: “Cannot find or create the font ‘WP-MathA’. Some characters may not display or print correctly.”  Who can help me solve this problem?
    Thank you in advance for  your time.
    Marlen

    Hello Anubha,
    I am having a similar problem on my machine.  I was using Word 2008 and I created a PDF inside Word.
    I am opening the file on the system itself and I am running Windows 8.1.  I am using Version 11 of Reader.
    When the PDF I created (my resume) attempts to open, it says:  cannot find or create the file Times, Bold.  Some characters may not display or print correctly. 
    However, the entire Reader keeps freezing and will not allow me to open or test print the document.  Also, it is not displaying any of the Bold Times New Roman Print.  Can you please help?  Thanks.

  • Hello is there anybody who can help me in german? i have the same problem like the guy with i tunes. it won´t open an give me an error "An application has made an attempt to load the C runtimelibrary incorrectly" Please contact the application´s support..

    I´ve so many privat things on I tunes like pictures, music etc.and i won´t loose them. is there anybody who can help me to save my private things and help me to solve teh problem
    Thanks you for help greetings from austria

    I just had the same error: 
    R6034
    An application has made an attempt to load the C runtime library incorrectly.  Please contact the apps support team for more info.
    I went to http://support.apple.com/kb/ht1925 and did a complete removal and reinstallation of iTunes. You MUST follow the directions here exactly...it's more than just iTunes that must be removed, and it MUST be done in the order in which the support article says.  I followed the exact instructions, and iTunes is back on my machine (no more C runtime error) and you do NOT lose your music...it's all in my library, as it was before.
    Good luck!

  • I think pesimo customer service three days, I'm looking for someone I can ayudr activation problem with my CC and can not find anyone who can help me.

    I think pesimo customer service three days, I'm looking for someone I can ayudr activation problem with my CC and can not find anyone who can help me.

    Online Chat Now button near the bottom for Activation and Deactivation problems may help
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html

  • When I try to install the latest version (10.5) of iTunes, the following message appears: "There was a problem with this Windows Installer package. A program running during installation is terminated unexpectedly." Is there somebody who can help me?thanks

    When I try to install the latest version (10.5) of iTunes, the following message appears: "There was a problem with this Windows Installer package. A program running during installation is terminated unexpectedly." Is there somebody who can help me?thanks

    I used this site and it fixed my problems. Hoping it will help with yours too
    http://support.microsoft.com/mats/Program_Install_and_Uninstall

  • My login option turned to disabled ,according  to the tips ,i've changed my passwords many times, but i still can't login my itunes store ,who can help me to solve the problem?

    My login option turned to disabled ,according  to the tips ,i've changed my passwords many times, but i still can't login my itunes store ,who can help me to solve the problem?

    Try here >  Can't connect to the iTunes Store
    Try disabling anti virus software and turning off the Firewall.

  • Hi! I have problems with my calender. The diarise of dates is sometimes not authentic, dates dissapeare or were put on a wrong day. Who can help?

    Hi! I have problems with my calender. The diarise of dates is sometimes not authentic, dates dissapeare or were put on a wrong day. Who can help?

    Don't worry I've sorted it! I just had to turn off Reminders as well in iCloud. Calendar then worked fine, even when I turned Calendar and Reminders back on.

  • Since Ios 7 Update of my iPhone 5 I can not log into any WLAN any more - who can help to solve this major problem

    Hi all,
    I updated my iPhone 5 recently to IOS 7 - Since then I do not get any access to my home WLAN / WIFI with the iphone 5.
    At same time the iphone 3S and IPAD 1 of my wife (both IOS 5.x) still work fine in our homes WLAN / WIFI.
    Who can help to get my Iphone 5 with IOS 7 back to work in the home WIFI ?
    Thanks in advance for any possible solution.
    Best regards
    Dirk from Hamburg Germany

    Try this first.
    On the iPhone go to Settings > General > Reset and select Reset Network Settings.
    This will erase all saved wi-fi networks and settings.
    If no change after this, try resetting your modem and wireless router. Disconnect the router from the power source followed by disconnecting the modem from the power source. Wait a few minutes followed by powering your modem back on allowing it to completely reset before powering your wireless router back on allowing it to completely reset with the modem.

  • Problems about deploy a adapter.Who can help??

    I confirm that the zip file path is right.I use the winrar to create the rar file,and use the winzip to create .sda file.
    Who can help??Thanks very much
    ===========================================================================
    Deployment started Wed Sep 13 13:54:19 GMT+08:00 2006
    ===========================================================================
    Starting Deployment of cmbc.accenture.connector
    Aborted: development component 'cmbc.accenture.connector'/'sap.com'/'SAP AG'/'7.0004.20050713150837.0000':
    Caught exception during application deployment from SAP J2EE Engine's deploy API:
    com.sap.engine.deploy.manager.DeployManagerException: com.sap.engine.services.deploy.container.DeploymentException: Cannot update archive file cmbc_ra.rarerror in opening zip file. Reason:
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).DMEXC)
    Deployment of cmbc.accenture.connector finished with Error (Duration 5609 ms)

    Hi Sky,
    Please ensure that the content of cmbc_ra.sda is the following:
    - META-INF (check in all files if all the names are comliant for your adapter structure)
    - cmbc_ra.rar
    In the cmbc_ra.rar
    META-INF (check the content of ra.xml file)
    cmbc_ra.jar
    Hope this help.
    Francesco Bersani

Maybe you are looking for

  • Audition has encountered an error.

    I got this error message. how can i solve this? Audition has encountered an error. [\premiere2.0\Backend\Src\Core\Preferences.cpp-253] and this message box also popup. Shutting Down... To continue working where you left off, please restart Audition.

  • Hooking up PS3 to X-fi El

    Alright, So I just finished intalling the X-fi elite and set up the receiver. The instructions in the box were not much help for what im trying to do, nor the FAQs. I am really hoping someone out there can help me with this problem: I am running a Kl

  • How much RAM will my late 08 MB take?

      Model Name:          MacBook   Model Identifier:          MacBook5,1   Processor Name:          Intel Core 2 Duo   Processor Speed:          2 GHz   Number Of Processors:          1   Total Number Of Cores:          2   L2 Cache:          3 MB   Me

  • Disable iphoto to open automattically?

    Whenever I try to sync my iphone 3g iPhoto automatically pops up even if I don't want it. I only complain about this because I dont use the camera too often, but I sync all the time for podcasts and stuff.

  • I.d issue

    Hey guys, So i am in a total pickle, my blackberry user id has an invalid email, basically i messed up and put googlemail.co.uk instead of .com, this is now registered on my device, and having upgraded apps or ive been avoiding this as i had forgotte