Error ( while instantiating a class)

I encountered the following errors ...plz help..Click and Clicka are two public classes which i have written ..Both of them have actionPerformed function defined ..
gui.java:14: cannot resolve symbol
symbol  : class Click
location: class gui
ActionListener listner = new Click();
*^*
gui.java:18: cannot resolve symbol
symbol  : class Clicka
location: class gui
ActionListener listnera = new Clicka();
*^*
*2 errors*
import java.awt.event.ActionListener;
import javax.swing.*;
import java.awt.*;
import java.applet.*;
public class gui
       public static void main(String[] args)
        JFrame frame = new JFrame();
        JPanel panel = new JPanel();
      frame.getContentPane().add(panel);
        JButton button = new JButton("Click to Start IWRMS");
        panel.add(button);
        ActionListener listner = new Click();<----------------------------------------------------ERROR1
        button.addActionListener(listner);
      JButton buttona = new JButton("Stop Irrigation");
      panel.add(buttona);
      ActionListener listnera = new Clicka();<----------------------------------------------------ERROR2
      buttona.addActionListener(listnera);
        frame.setTitle("Intelligent Water Resource Management System");
        frame.setSize(500,500);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
}now here is the class click that is have written ...
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
public class Clicks implements ActionListener
  {    String input;
       public void actionPerformed(ActionEvent event)
          input = JOptionPane.showInputDialog("Enter the location of hex file (example C://new.txt");
          JOptionPane.showMessageDialog(null, "You have selected " + input );
        Edited by: maneesh2706 on Jun 4, 2008 7:17 PM
Edited by: maneesh2706 on Jun 4, 2008 7:17 PM

ok..iam sorry it was a typing error...
This is class click
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
public class Click implements ActionListener
  {    String input;
       public void actionPerformed(ActionEvent event)
          input = JOptionPane.showInputDialog("Enter the location of hex file (example C://new.txt");
           JOptionPane.showMessageDialog(null, "You have selected " + input );
This is the class clicka
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
import java.io.FileReader;
import java.io.IOException;
import java.io.BufferedReader;
import java.lang.*;
          public class Clicka implements ActionListener
        public void actionPerformed(ActionEvent event)
            JOptionPane.showMessageDialog(null,"Duration is sent via serial port!");
            fill_buffer();
   public void fill_buffer( )
//code...this function is fine //
}

Similar Messages

  • Error while creating model classes, operation aborted in NWDS

    Hi All,
    When i select Adaptive rfc 2 model  and then search for the RFC,  when i select RFC and click on next i get an error while importing :
    Error while creating model classes, operation aborted.
    It is working fine in visual composer and i have activated function module, RFC but getting same error. It is also working in web service navigator also.
    Can any one help me out??
    Regards,
    Pradeep kumar
    Edited by: pradeep_546 on Feb 17, 2011 9:35 PM
    Edited by: pradeep_546 on Feb 17, 2011 9:36 PM
    Edited by: pradeep_546 on Feb 17, 2011 9:37 PM

    Hai guys thanks for reply
    Tushar,
    I am using NWDS 7.2, ce7.2 server, ECC 6.0.
    Amit,
    I have tested the JCO destinations they are working fine and i created a new pair of JCO destinations but unable to import the Adaptive RFC2 Model gives same error but Adaptive webservices are working fine in my NWDS7.2
    Deepak,
    I am unable to create model in other projects also.
    I have sufficient amount of memory in my drive.
    I have imported the DC to other NWDS but it gives same error.
    Thanks for all,
    Regards,
    Pradeep Kumar G
    Edited by: pradeep_546 on Feb 18, 2011 3:05 PM

  • Error while instantiating report Z_RD_ABSENCE_REPORT

    Hi Guys,
    we have just patched BWD, and while testing the broadcast setting i came across the following error.
    Error while instantiating report Z_RD_ABSENCE_REPORT 
    Notification Number RSBOLAP 014 
    I am opening report designer and when i publish via Bex Broadcaster this message is shown. I have checked SDN and sap market place but most of the soultion seem to focus on WAD.
    My feeling is that it is a JAVA error and is somethng basis might be able to fix.
    Please can anyone let me know if they have come across this problem before, and help would be much appriciated.
    Thanks
    Forhad

    Hello Forhad,
    RSBOLAP 014 is a issue regarding communication between ABAP (backend ) VS BI Java side.
    Read the note 937697 and follow his manual instructions.
    This note will start the BI Diagnostics. There you will see a red mark with RSBOLAP issue. COrrect this red mark following the recommendation on "Action" field.
    Good luck.
    Edward S. John

  • Getting status as ERROR while instantiating Business Object in work flow?

    Hi,
    Getting status as ERROR while instantiating Business Object in work flow.
    How to rectify it.
    Tahnks in Advance.
    Moderator message: please have a look at the dedicated Workflow forum on SCN.
    Edited by: Thomas Zloch on Jan 19, 2012

    Hi,
    Go to SWDD and create a new workflow. This workflow will have two steps. This is just for test purpose so we are not going to define any triggering event etc.  First step will instantiate (creating a runtime object) a business object and second step will use that runtime object to execute one of its method. We know that to instantiate any BO we need the object key to be passed. Key uniquely identifies a runtime instance of Business Object (henceforth we will refer it as BO or business object interchangeably). 
    use Business Object SYSTEM and method GENERICINSTANTIATE to instantiate any Business Object in workflow

  • Error While Creating Asset Class

    Hi Friends,
    I am getting the following error in development client while creating the asset class AB2200.
    "Screen Layout 200 was not created"  but the same was created.
    Please guide me how to handle this error and the reason for me getting this error message while creating asset class.
    Your quick response would be highly solicited.
    Thanks and Regards,
    C.R.Srinath

    Hi Srinath
    There are 2 things.. Create the screen layout and Define the screen layout... (IMG> AA > Master Data> Screen Layout for asset classes)
    Complete both the steps here and specify the same sccreen layout in your asset class
    Regards
    Ajay M

  • Error while extending controller: class name is wrong or not included

    Hi All,
    I am getting this error while I port my extended controller class to the custom top and assign this controller to the page. I have made sure its the class file that is copied. The directory is correct, the permissions were given using chmod 775. There exists a soft link betwen the custom top and the oracle top as well. What else am I missing here?
    Error: oracle.apps.fnd.framework.OAException: Could not create Java class: (oracle.apps.ap.oie.entry.webui.XXEntryFlowPageCO) associated with region: (GeneralInformationPG). This is probably because the class name is wrong or not included in project.

    :( Started out with that Gyan. If i do give the path with xx. appended to it, it lets me save and when i log back in and there are no changes to the page. I go to the personalise option to find the modification has been overwritten. I was told that this is so because Oracle doesnt recognise the xx.path and since there exists a soft link already the standard path with the new controller name should work.
    i have really tried both of these options and am not sure what could be wrong. thanks for all your attempts to help. anything else i can try?

  • Error while instantiating...help!!!!

    IAM VERY NEW TO JAVA ....PLZ TELL ME HOW TO ACESS THE STRING DEFINED IN AN ANOTHER CLASS...THNX IN ADVANCE ..THE FOLLOWING ERROR CAME WHEN I TRIED...
    C:\j2sdk1.4.2_08\bin>javac test3.java
    test3.java:9: 'class' or 'interface' expected
    test1 sample =new test1(); // instantiating
    *^*
    *1 error*
    FILE TEST1
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    import java.io.FileReader;
    import java.io.IOException;
    import java.io.BufferedReader;
    import java.lang.*;
    public class test1
    String s="check";
    }FILE TEST3
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    import java.io.FileReader;
    import java.io.IOException;
    import java.io.BufferedReader;
    import java.lang.*;
    test1 sample =new test1(); // instantiating
    public class test3
    System.out.println( sample.s);
    }

    IAM VERY NEW TO JAVA ....PLZ TELL ME HOW TO ACESS THE STRING DEFINED IN AN ANOTHER CLASS...
    THNX IN ADVANCE ..http://www.catb.org/~esr/faqs/smart-questions.html#writewell
    Write in clear, grammatical, correctly-spelled language
    We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding (often enough to bet on, anyway). Answering questions for careless and sloppy thinkers is not rewarding; we'd rather spend our time elsewhere.
    So expressing your question clearly and well is important. If you can't be bothered to do that, we can't be bothered to pay attention. Spend the extra effort to polish your language. It doesn't have to be stiff or formal ? in fact, hacker culture values informal, slangy and humorous language used with precision. But it has to be precise; there has to be some indication that you're thinking and paying attention.
    Spell, punctuate, and capitalize correctly. Don't confuse ?its? with ?it's?, ?loose? with ?lose?, or ?discrete? with ?discreet?. Don't TYPE IN ALL CAPS; this is read as shouting and considered rude. (All-smalls is only slightly less annoying, as it's difficult to read. Alan Cox can get away with it, but you can't.)
    More generally, if you write like a semi-literate boob you will very likely be ignored. So don't use instant-messaging shortcuts. Spelling "you" as "u" makes you look like a semi-literate boob to save two entire keystrokes. Worse: writing like a l33t script kiddie hax0r is the absolute kiss of death and guarantees you will receive nothing but stony silence (or, at best, a heaping helping of scorn and sarcasm) in return.
    If you are asking questions in a forum that does not use your native language, you will get a limited amount of slack for spelling and grammar errors ? but no extra slack at all for laziness (and yes, we can usually spot that difference). Also, unless you know what your respondent's languages are, write in English. Busy hackers tend to simply flush questions in languages they don't understand, and English is the working language of the Internet. By writing in English you minimize your chances that your question will be discarded unread.

  • Error while De-Compiling class files

    Hi Gurus,
    I am facing one issue.
    While de-compiling class files, Some of the class files are not getting de-compiled correctly. When I open de-compiled Java file, the code is with errors where some of the code lines are not in proper form.
    I have experienced this with couple of times now. I am using JAD as a tool.
    Please help.
    Thanks,
    -Abm

    "Some of the class files are not getting de-compiled correctly. When I open de-compiled Java file, the code is with errors where some of the code lines are not in proper form."
    Well, unless you put a sample of error, how do you expect any solution?--Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Getting Error while using CallTarget class

    I am getting following error while using the CallTarget.
    "Exception in thread "main" java.lang.NullPointerException
    at org.apache.tools.ant.taskdefs.Ant.init(Ant.java:147)
    at org.apache.tools.ant.taskdefs.CallTarget.init(CallTarget.java:85)
    at org.apache.tools.ant.taskdefs.CallTarget.setTarget(CallTarget.java:150
    at AntCallTarget.main(AntCallTarget.java:7)"
    Can anyone please help me solve this problem.
    The code where i am getting this error is
              CallTarget antCall = new CallTarget();
              antCall.setTarget("Main");

    I am getting following error while using the CallTarget.
    "Exception in thread "main" java.lang.NullPointerException
    at org.apache.tools.ant.taskdefs.Ant.init(Ant.java:147)
    at org.apache.tools.ant.taskdefs.CallTarget.init(CallTarget.java:85)
    at org.apache.tools.ant.taskdefs.CallTarget.setTarget(CallTarget.java:150
    at AntCallTarget.main(AntCallTarget.java:7)"
    Can anyone please help me solve this problem.
    The code where i am getting this error is
              CallTarget antCall = new CallTarget();
              antCall.setTarget("Main");

  • Errors while instantiated a custom java object within jsp pages.

    I'm currently trying to role out a war file created on JavaBeans IDE 3.5.1. I have custom created classes
    that are instantiated by using:
    used.TransactionsHolder p_transactions = (used.TransactionsHolder) session.getAttribute("s_transactions");
    Where used is the package and TransactionsHolder
    is the class I am trying to create an object from. When
    I use this syntax I receive this error:
    __transactionPage.java:90: cannot resolve symbol
    symbol  : class TransactionsHolder 
    location: package used
                    used.TransactionsHolder p_transactions = (used.TransactionsHolder) session.getAttribute("s_transactions"); //[ transactionPage.jsp; Line: 12]
    ;Any suggestions?

    Can you please log a TAR with Oracle Support using Metalink to resolve this issue. They can help you collect all the log and trace files to determine the why this problem is occuring.
    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • Clocking wizzard throws error while instantiating in IPI

    Dear community,
    I am using the ZedBoard without the PS side. My Goal is to create a 50MHz clock for my logic. So I use the 100MHz PL clock (the ZedBoard provides a 100MHz clock at Zynq pin Y9).
    To get the 50MHz I am trying to use a MMCM which I would like to create with the clocking wizard. Therefore I do the following steps in Vivado 14.4:
    creating new rtl project without any design files and choosing the zedboard
    create block design
    add ip --> clocking wizard
    Then the following error occurs without instantiating the clock wizard (list of tcl commands):
    create_project clocking_wizard_test C:/Users/abcd/VHDL_Code/Vivado_Testground/clocking_wizard_test -part xc7z020clg484-1
    INFO: [IP_Flow 19-234] Refreshing IP repositories
    INFO: [IP_Flow 19-1704] No user IP repositories specified
    INFO: [IP_Flow 19-2313] Loaded Vivado IP repository 'C:/Xilinx/Vivado/2014.4/data/ip'.
    set_property board_part em.avnet.com:zed:part0:1.2 [current_project]
    set_property target_language VHDL [current_project]
    create_bd_design "design_1"
    Wrote  : <C:/Users/abcd/VHDL_Code/Vivado_Testground/clocking_wizard_test/clocking_wizard_test.srcs/sources_1/bd/design_1/design_1.bd>
    startgroup
    create_bd_cell -type ip -vlnv xilinx.com:ip:clk_wiz:5.1 clk_wiz_0
    ERROR: [#UNDEF] conversion to double from string is failed
    unexpected "," outside function argument list
    in expression "1000 / 10,000"
    ERROR: [IP_Flow 19-3188] Error occurred while initializing 'clk_wiz_0'
    Tcl error in update procedure while setting value 'MMCM' on the parameter 'PRIMITIVE'. unexpected "," outside function argument list
    in expression "1000 / 10,000"
    CRITICAL WARNING: [IP_Flow 19-973] Failed to create IP instance 'design_1_clk_wiz_0_0'. Error during customization.
    ERROR: [#UNDEF] Error occurred while initializing 'clk_wiz_0'
    Tcl error in update procedure while setting value 'MMCM' on the parameter 'PRIMITIVE'. unexpected "," outside function argument list
    in expression "1000 / 10,000"
    ERROR: [BD 5-7] Error: running create_bd_cell.
    ERROR: [Common 17-39] 'create_bd_cell' failed due to earlier errors.
    endgroup
    How can I fix it?

    Thanks first of all for your replies.
    Allright, now I got some results. Or in different words: I can reproduce a strange behavior regarding the clocking wizard:
    Leave the system language (win7) set to German and changing just the decimal separator (,) with (.) it does not work.
    When I got the error message (see initial thread) than I can work around with closing Vivado and reopen it. If I try to instantiate the MMCM with the clocking wizard after reloading Vivado then it works (without error or warning messages). I even can gernerate a bitstream. But everytime I open a synthesized or implemented design I get the above mentioned errors. If I delete the clocking wizard at the IPI and try to add a "new" one then Vivado refuses it again (at least until I close Vivado and reopen it again). With this method I would say it works almost ;-)
    set the system language (win7) globally to US English it works. At least I wasn´t able to reproduce this error.
    Is this issue planned to be fixed in the next version of Vivado?
    Regards!

  • Build app with ODT and Oracle UDT - Error while creating custom class

    Hello CShay,
    I am testing you sample code to create UDT with ASP.Net app. It is also published in Oracle magazine.
    The article is also published at following link:
    http://www.oracle.com/technology/oramag/oracle/08-may/o38net.html
    I am able to successfully implement all the steps before "Using Custom Class Wizard". When I right click on any of the object (CUSTOMER_OBJ, PHONELIST_OBJ, and ADDRESS_OBJ) and select Generate Custom Class, I get the following error:
    Oracle custom class wizard.
    Class can be generated only for either C#, VB or Managed C++ projects.
    Am I missing any thing?
    Thanks in advance for your help.

    Yes I confirm that I choose File->New Website.
    I don't see the following option
    File -> New Project, and then under Visual C#, select ASP.NET Web Application
    I am using VS2005 Professional Edition.
    The options I see under Visual C# are:
    If I click on
    Windows tab:
    Windows Application
    Windows Control Library
    Console Application
    Empty Project
    Class Library
    Web Control Library
    Window Servcie
    Crystal Report Application
    and Search Online Templates in My Templates tab.
    Couple of options for Smart Device which also doesn't include ASP.Net
    then Database, Starter kits and Office tabs which also doesn't include ASP.net thing.
    I don't know how did you see that option or you might be using different version of VS (Enterprise).
    But right now I am stuck.
    Please provide me your valuable comments.
    Thanks for your help.

  • Error while compiling java class (ora-29535 source requires recompilation)

    Hello. I`m new with oracle and i`m having a problem with java classes. Few days ago i loaded java classes (loadjava) from jar file(biojava3-structure-3.0.2.jar) and compiled ( everything compiled with status valid). Now i`m writing my own class and i can`t import classes from biojava3. I`m getting error:
    Projekt:7: cannot access org.biojava.bio.structure.Atom
    bad class file: null
    class file has wrong version 50.0, should be 49.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import org.biojava.bio.structure.Atom;
    I have tryed to change jdk version in netbeans from 1.7 to 1.6. I created java class in sql plus That still not resolved my problem.
    Please help me.

    consider posting in Java forum instead of Database forum
    https://forums.oracle.com/forums/category.jspa?categoryID=285

  • A  classpath error while  importing a class with @page import property

    Hi ,
    I am using Tomcat contaniner for jsp applications. I have developed a page that i have import a class. when i use
    <%@ page import="myclass" &>
    i got an error that myclass not found. I have placed into tomcat\webapps\myproject\web-inf\classes directory. So How will I set the classpath for myclass to work?
    thanks.

    I was able to simulate your problem when I created a mismatch in the case of the name of the class.
    for example if my program is called MyClass.java
    and in the import I do <@page import="myclass" %>
    Are you sure about the case of class name that you are using? Please check that the file is called myclass.java the class defined inside it is called myclass and the class file that is copied into the WEB-INF/classes directory is also myclass.class. There should be no difference in the case of the names. like MyClass.java or MyclaSS.class
    Other things to check are
    1. If myclass is defined in a package then you have to import with the package.
    2. Make sure that your jsp is located in the myprojects directory and the class file is copied under myprojects/WEB-INF/classes.
    Let me know if things still don't work
    regards,
    Abhishek.

  • Error while importing java class into oracle forms 10g

    Hi
    I have generated a web service client using jdeveloper 10g. It consists of complex type methods. I am trying to import the class files using java importer in oracle form 10g. I am able import all of them successfully except one. That one is the main method. Please see the error and suggest me how to overcome this error.
    Exception occurred: java.lang.NoClassDefFoundError: oracle/jdeveloper/webservices/runtime/WrappedDocLiteralStub
    Thanks in advance

    Do you see oracle/jdeveloper listed in "Import Java Classes" when you try to import?
    If not, make sure you add C:\DevSuiteHome_1\jdev\lib\jdev.jar to FORMS_BUILDER_CLASSPATH in registry
    Also excetion indicates: oracle/jdeveloper/webservices/runtime/WrappedDocLiteralStub
    If you typing it - type: oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub

Maybe you are looking for

  • Jabber for windows crashing

    Jabber for windows - crashes on start up CUCM 7.1.3 Windows 7 32 bit Cisco Presence   8.0.2.10000-30 - these are in the application event log Log Name:      Application Source:        MsiInstaller Date:          6/27/2012 10:43:19 PM Event ID:      1

  • Freight Line Item on customer billing documents

    The systems is ECC 6.0.7. We will be charging freight cost to our customers going forward, so freight will show up as a separate posting to a separate GL acocunt. A new condition type is created for this purpose. Our business wants to post freight co

  • Networking Printers   Windows Vista and Mac

    I have my Mac connected to my home network(wired) and a HP 5550 printer connected to my Mac. I would like to print from my Vista PC to the HP via the network, but it keeps stating that I don't have sufficent permission when using Bonjour for windows.

  • Invoices with and without PO

    Dear experts is there a straightforward way, firstly to list all invoices booked within a year for a given purch org, and secondly to find out which are linked to a purchase order, and which aren't? Kind regards Sergei Volkov Edited by: Sergei Volkov

  • External material number should not contain purely numbers

    Hi Gurus, I have created the material number range for a specific material type. I need the number to be assigned externally. When i try to create a new material master (with only numbers)on the above material type, the system throwing " For the spec