identifier expected error when trying to create a class instance?

public static Time time;
//Cannot find symbol package1.Controller - both have the same package statement.
//When the 2nd line is included ony that is flagged as giving an error
//Gives <identifier> expected
public static Time time;
time = new Time();
//Simply typing:
time = new Time();
//does too
The classes look like:
package package1;
public class Controller extends Applet
public static Time time;
time = new Time();
    public void init()
     this.setLayout(new FlowLayout());
     Panel panel = new Panel();
     add(Time.timeP);
    public void paint()
     //Some stuff here
package package1;
import java.awt.*;
import java.io.*;
public class Time extends Panel implements Runnable
    public static Panel timeP;
    public Time() {timeP = new Panel();}
     //Some other unrelated stuff here
}

Sorry, i forgot about that.
public static Time time = new Time();/*Gives
cannot find symbol
symbol: class Time
location class package1.Controller
cannot find symbol
symbol: class Time
location class package1.Controller
It looks like it's looking for the Time class in the Controller class?

Similar Messages

  • Error when trying to create a JCO Destination

    Hi
    I receives the following error when trying to creat a JCO Destination, clicking on the button in the host:port/webdynpro/dispatcher/sap.com/tcwdtools/Explorer
    I get the following error:
    Error stacktrace:
    java.lang.NullPointerException
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus(SystemLandscapeFactory.java:880)
         at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.checkStatus(WDSystemLandscape.java:469)
         at com.sap.tc.webdynpro.tools.sld.NameDefinition.updateJCODestinations(NameDefinition.java:272)
         at com.sap.tc.webdynpro.tools.sld.NameDefinition.updateNavigation(NameDefinition.java:237)
         at com.sap.tc.webdynpro.tools.sld.NameDefinition.wdDoInit(NameDefinition.java:144)
         at com.sap.tc.webdynpro.tools.sld.wdp.InternalNameDefinition.wdDoInit(InternalNameDefinition.java:223)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:274)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:540)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:398)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:555)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:422)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)
         at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:43)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:540)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:398)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.makeVisible(ViewManager.java:620)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.performNavigation(ViewManager.java:263)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:740)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:350)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:640)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:391)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Any ideas?
    Regards
    Kay-Arne

    Hi,
    Have you configured your SLD? Check JCO Destination error out or search for "com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus" in the SDN forums.
    Best regards,
    Vladimir

  • Error when trying to create XUSER information for SAPServiceSID

    Hi all,
    I am getting the following error when trying to create the XUSER information for the SAPServiceSID user on a WINDOWS/MAXDB 7.9 install..  Does anyone know a FIX for this?
    >xuser -c .\SAPServiceSID -U c -u CONTROL,P@ssw0rd -d SID -n HOSTNAME -S INTERNAL -t 0 -I 0 set
    FATAL: Close xuser entry failed: could not write USER data [1307]
    I am running the command as the SIDADM user. 
    I have tried the solutions in the following notes without success:
    39642
    1542818
    39439
    1875264
    1409913
    Thanks!

    Hi Jayson,
    Try this.
    Solution
    Add the "Administrators" group under:
    Control Panel
    -> All Control Panel Items
       -> Administrative Tools
          -> Local Security Policy
             -> Local Policies
                -> User Rights Assignment
                  -> Take ownership of files or other objects
    You check you command and modify.
    xuser.exe -c Hostname\SAPServiceSID -U DEFAULT -u Username, Password -d SID -n Hostname -S Schema_Name -t 0 -I 0 set'
    Regards,
    V Srinivasan

  • Error when trying to create a site collection

    Hi, 
    I receive the following error when trying to create a site collection in sharepoint 2013. Any ideas of what I can do to resolve?
    Sorry, something went wrong
    Failed to call GetTypes on assembly Microsoft.AnalysisServices.SharePoint.Integration, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91. Method 'ParseLogFileEntry' in type 'Microsoft.AnalysisServices.SharePoint.Integration.ConnectionUsageDefinition'
    from assembly 'Microsoft.AnalysisServices.SharePoint.Integration, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' does not have an implementation. Method 'ParseLogFileEntry' in type 'Microsoft.AnalysisServices.SharePoint.Integration.RequestUsageDefinition'
    from assembly 'Microsoft.AnalysisServices.SharePoint.Integration, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' does not have an implementation. Method 'ParseLogFileEntry' in type 'Microsoft.AnalysisServices.SharePoint.Integration.LoadUsageDefinition'
    from assembly 'Microsoft.AnalysisServices.SharePoint.Integration, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' does not have an implementation. Method 'ParseLogFileEntry' in type 'Microsoft.AnalysisServices.SharePoint.Integration.UnloadUsageDefinition'
    from assembly 'Microsoft.AnalysisServices.SharePoint.Integration, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' does not have an implementation.
    thanks,
    Sherazad

    Hi  ,
    Based on the error message, please check whether you have installed the spPowerPivot.msi add-in on each of your SharePoint server, and ran the configuration wizard, make sure that the powerpivotwebapplicationsolution.wsp
    is deployed correctly.
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Eric Tao
    TechNet Community Support

  • Portal runtime error when trying to create new Iviews in EP

    Hi
    Require an Urgent help
    getting portal runtime error when trying to create a new iView in portal. I am unable to create a single iView  in portal.
    It was working before please see this error message
      Portal Runtime Error
    An exception occurred while processing a request for :
    iView : com.sap.portal.appintegrator.sap.WebDynproPageBuilder
    Component Name : com.sap.portal.appintegrator.sap.WebDynproPageBuilder
    Error occurs during the rendering of jsp component.
    Exception id: 05:20_12/01/08_0004_17115850
    See the details for the exception ID in the log file
    AM Iworking on NW2004s sp11. I was able to create iViews on this system before
    let me know where to check the log file also. Points will be awarded
    Thank you
    Krishna Kanth
    Edited by: siddi siddi on Jan 13, 2008 12:05 AM

    Krishna Kanth,
    logs can be read from nwa, if you hv the relevant access or get portal admin to pass the defaulttrace file to you. Login to nwa, navigate to Monitoring-Logs and traces and select (either default trace or last 24hrs) to view the logs. hope this helps
    prachi

  • Getting error when trying to create Exchange Connector in System Center Service Manager 2012

    Getting error when trying to create Exchange Connector in System Center Service Manager 2012
    The connection to the server was unsuccessful. Please check the server name and/or credentials entered.
    Additional Information: The server URL is not accessible or the user does not have permission to access it (message: The request failed. The remote server returned an error: (401) Unauthorized.
    Warm Regards, Pramod Kumar Singh Manager-IT

    Someone sorted out this issue by installing API 1.2 and copying the dll files to the service manager server ,service folder and replacing it with API 2.0 dll files.
    Also, your question is related to SCSM, please post at SCSM forum if you have further question.
    Juke Chou
    TechNet Community Support

  • I get this error when trying to create a ringtone - iTunes could not connec

    I get this error when trying to create a ringtone:
    "iTunes could not connect to the iTunes Store - an unknown error occurred (11556)"
    But I CAN connect - if I click on the iTunes Store, it connects right away.
    I want to make a ringtone from a song that I purchased, but all I get is the same error message.
    iTunes 9.2.2, Ireland iTunes Store.

    have you seen this KB article: http://support.apple.com/kb/HT1398 ?
    JGG

  • Solution to stop error when trying to create a portfolio

    Hi all,
    I finally found a way to make a portfolio in acrobat pro 9. The problems I was having were explained in the thread titled "Acrobat pro 9 has a stop error when trying to create a portfoloi"
    It seems ther is another way to do this, by selecting 'combine' and then 'merge files into a single pdf' rather than 'assemble pdf portfolio'.
    The merge option also gives the choice of making a pdf package and does not result in a stop error with authplay.dll.
    So much for Adobe support who conuld not tell me this or respond to support requests.
    All I have to do now is to remember to not click on 'assemble pdf portfolio' when I want to assemble a pdf portfolio but "merge files into a single pdf" when I want to assemble a pdf portfolio.
    I would still like to hear from Adobe why acrobat pro 9 has a stop error with authplay.dll.
    I feel a lot happier now.

    I read through the pdf wth your emails to/from customer support. I'll have to defer to someone else because it seems you have tried what I would suggest.
    If someone else does not respond with a better plan and you are willing to spend a bit more time before writing off Acrobat 9, I would try the process below one last time. (If you are using a CS suite, while authplay.dll is found in each of the directories, it does not appear that the issue extends to the other programs.)
    1. Using Add/Remove Programs, uninstall all Adobe Acrobat and Reader software and uninstall the Adobe Flash Player Active X and Adobe Flash Player Plugin. If you have it, uninstall Adobe Air.
    2. In C:\Documents and Settings\(your profile name)\Application Data\Adobe, delete the Acrobat and Adobe PDF folders if they still exist.
    3. Reinstall only Acrobat 9.
    4. From Acrobat, run the updater Help > Check for Updates and install all updates.
    5. Verify Adobe Acrobat is now version 9.2: Help > About Adobe Acrobat Pro  (If for any reason it is not 9.2, use the update on http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows
    6. Test
    Message was edited by: Anna Nmty
    While searching for a solution, I just saw your post over at acrobatusers.com (http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=15765). Looks like my advice was largely a duplicate, although your event log indicates Acrobat did not update properly.

  • 500 internal server error when trying to create users

    I am getting a 500 internal server error when trying to create users. What is the cause? We tried reinstalling the latest java jdk release and that didn't help.

    Check whether your DBControl or ASControl service is still running or crashed. EM is not able to connect to the Management Server.
    For instance in Windows, you may see that the Servise is not started. Then check for error logs in $ORACLE_HOME/sysman/logs for any related error messages in the log files

  • Sharepoint designer 2010 32 bit error when trying to create a workflow

    Windows 7 64 bit enterprise pc's with sharepoint designer 32 bit see these errors when trying to create a workflow on any Sharepoint 2010 farm - dev and production
    "The list of workflow actions on the server references an assembly that does not exist. Some actions will not be available. The assembly is Microsoft.Office.Workflow.Actions, Version=14.0.0.0 ..."
    "The list of workflow actions on the server references an assembly that does not exist. Some actions will not be available. The assembly is Microsoft.SharePoint.WorkflowActions, Version=14.0.0.0 ..."
    "The list of workflow actions on the server references an assembly that does not exist. Some actions will not be available. The assembly is Microsoft.SharePoint, Version=14.0.0.0 ..."
    Using an XP pc and 32bit designer user able to create workflow. We have to use 32 bit designer as we have Office 2010 32 bit for compatiblility reasons
    Any ideas on how to resolve?

    Hi Nick, check out this link for possible solutions:
    https://mohamedelkassas.wordpress.com/2014/12/26/the-list-of-workflow-actions-on-the-server-references-an-assembly-that-does-not-exist-some-actions-will-not-be-available/
    cameron rautmann

  • "Operation is not valid due to the current state of the object" error when trying to create a link for a shared folder in OneDrive

    I'm trying to share a folder in OneDrive with another user in my organization, and create a link so that people outside of the company can see the folder. Whenever I try to create a link I get an error that says: "Couldn't create the link sorry something
    went wrong operation is not valid due to the current state of the object" How do I resolve this?

    Hi,
    Sorry for replying late and I noticed that you posted another thread in this forum:
    http://social.technet.microsoft.com/Forums/en-US/2b8c6f54-9c59-4b37-b28f-1d49a1b7913b/operation-is-not-valid-due-to-the-current-state-of-the-object-error-when-trying-to-create-a-link?forum=officeitpro
    I've replied and kindly refer to it to see if it is helpful.
    Regards,
    Melon Chen
    TechNet Community Support

  • Error when trying to create class file

    I am getting this error when I try to create file
    clobsearch.java:246: not a statement ex;
    protected Element getDocumentRoot(Clob c)
    Element root;
    Reader read = c.getCharacterStream();
    String s = convertClob(read, 8192);
    SAXReader sread = new SAXReader("org.dom4j.io.aelfred.SAXDriver");
    sread.setMergeAdjacentText(true);
    sread.setStripWhitespaceText(true);
    Document doc = sread.read(new StringReader(s));
    root = doc.getRootElement();
    return root;
    Exception ex;
    ex; <--- this is line 246
    System.out.println(ex.getMessage());
    return null;
    any help would be appricated
    thanks
    robert

    The guy who wrote this code is no longer with the company
    the server IP got changed and he had an IP coded in the program
    i managed to uncompile the code
    i changed the IP to the new one
    when I tryed to create the class file i get the error
    so as far as what is happenning with the ex I am not sure
    here is another piece of code that might help
    really all i need to do is get the class file created again...
    protected Element getDocumentRoot(Clob c)
    Element root;
    Reader read = c.getCharacterStream();
    String s = convertClob(read, 8192);
    SAXReader sread = new SAXReader("org.dom4j.io.aelfred.SAXDriver");
    sread.setMergeAdjacentText(true);
    sread.setStripWhitespaceText(true);
    Document doc = sread.read(new StringReader(s));
    root = doc.getRootElement();
    return root;
    Exception ex;
    ex;
    System.out.println(ex.getMessage());
    return null;
    protected double toDouble(String s)
    double d = 0.0D;
    try
    d = Double.parseDouble(s);
    catch(NumberFormatException ne) { }
    return d;
    protected String convertClob(Reader in, int blen)
    StringWriter sw = new StringWriter(32768);
    char buf[] = new char[blen];
    int len = 0;
    try
    while((len = in.read(buf)) != -1)
    sw.write(buf, 0, len);
    in.close();
    sw.close();
    catch(IOException ioe)
    len = 1;
    return null;
    String s = sw.toString();
    int q = s.indexOf("<Quote");
    int end = 0;
    if(q == 0)
    end = s.indexOf("</Quote>") + 8;
    } else
    q = s.indexOf("<Project");
    if(q == 0)
    end = s.indexOf("</Project>") + 10;
    else
    end = s.indexOf("</Order>") + 8;
    return s.substring(0, end);
    public static void main(String args[])
    if(args.length < 2)
    System.out.println("Usage: clobsearch tablename [searchpattern] [datesql]");
    System.out.println("Where: searchpattern like \"Geodesic Dome\" and datesql like \" where quotedate >= to_date('01/01/2004', 'MM/DD/YYYY')\"");
    System.out.println("OR: clobsearch tablename searchpattern -data idfile [idcolname]");
    System.out.println("Where: searchpattern as above, idfile is a one per line file of quote or order numbers, idcol=column name for id col");
    System.exit(1);
    clobsearch cs = new clobsearch(args);
    }

  • Error when trying to create Delivery

    Hi SAP Gurus
    When trying to create delivery from Sales order(Va02>Sales document>Delivery),it is taking to Delivery(Vl01n).But there at the initial screen itself it is displaying the error message"Order doesnot exist"
    Kindly let me know where could be the issue.
    Regards
    Sushmitha

    Hi Laxmipathy
    Tx for your reply.
    I have checked the doc flow and could see no blocks.
    No reason for rejections.
    Also seen VOV7 and checked for the item cat details.I could see "H-delivery Related Billing-No Zero Quantities" maintained for Billing Relevance field.
    Tx in advance.
    Regards
    Sushmitha

  • Error when trying to create a new Voyager Workspace through Infoview

    Hi,
    When trying to create a new Voyager Workspace through Infoview, I get the following Error
    "An Error hs occured while attempting to connect to the OLAP server.Failed to initialize(The following component Microsoft OLEDB Provider for Anaysis Services 2005 returned server error(An error was encountered in the transport layer;the peer prematurely closed the connection"
    I clicked on New Voyager Workspace & then it displays the list of connections available. When, I click on any connection , then I receive thefollowing error
    "An Error hs occured while attempting to connect to the OLAP server.Failed to initialize(The following component Microsoft OLEDB Provider for Anaysis Services 2005 returned server error(An error was encountered in the transport layer;the peer prematurely closed the connection"
    An Insight of our environment regarding this, we have an clustered environment with Voyager Installed. Platform is Windows Server 2003. We have all the required Microsoft client tools installed on the Production Servers.
    This was working fine earlier. We were able to create Voyager WorkSpace at one instance of time. The problem at that point of time was the MDAS Server was not showing up in CMC, i.e as we had clustered environment, only one of the MDAS Server was showing up in the CMC. it was missing the other MDAS Server. but, at that time we were able to create Voyager Workspace.
    So, in order to view the other MDAS Server in CMC, we had changed the name of the Server in CCM for both the MDAS Servers.
    In detail, Server A.MDAS Server & Server B.MDAS Server- they both were not showing up in CMC. only one of them was showing up in Servers list in CMC.
    So, in CCM we had changed the name of Server1.MDAS server to be Server1 &
    for Server2.MDAS Server to be Server1 as well.
    AFter this both the MDAS Servers were showing uo in CMC.
    but, when I login into Infoview & click on new Voyagerworkspace & select a connection, I recieve the follwoing error
    "An Error hs occured while attempting to connect to the OLAP server.Failed to initialize(The following component Microsoft OLEDB Provider for Anaysis Services 2005 returned server error(An error was encountered in the transport layer;the peer prematurely closed the connection"
    Request to let me know the possible steps in resolving this ASAP

    Hi,
    Try to create the objects again and take the screenshot of SU53 when you get the error and see the authorization object for which you are getting the error here.
    It is possible that you dont have development authorization.
    Also the issue could be that the system is not configured to create the objects begining with Z.
    Check this with basis as well.
    Thanks
    Ajeet

  • Satellite U205-S5034 - Error when trying to create the recovery discs

    Hi Everyone,
    I am having trouble with The TOSHIBA Recovery Disk Creator. When trying to create the recovery discs this error comes up:
    An unexpected error occurred. Please quit this application and restart it. (Error Code: 0F00FE-F1-00000002)
    The machine is a Satellite U205-S5034 running XP Pro SP3.
    Any help will be greatly appreciated. Thanks and have a great day.
    DaveMatt44

    Hi
    What kind of DVDs you are using for creating a Toshiba recovery disc? As yet I have tried Verbatim DVD-R and TDK DVD-R and never had a problem with these discs. Friend of tried DVD+R and he couldnt create a recovery disc. After that he tried DVD-R and all was fine but I dont know why this happened.
    So please try other discs.
    Furthermore check the Toshiba page for a firmware update of CD/DVD drive. Maybe it will help you.

Maybe you are looking for

  • Envio de XML via email, e no corpo do email, referencia a NFe...

    Bom dia, Onde trabalho o GRC já envia os XML´s para as empresas cujos emails estao cadastrados. Porém no corpo do email, preciso que seja incluída a msg abaixo. Gostaria de alguma dica de como fazer isso. Grato, Roberto Prezado cliente, Você está rec

  • Why Might Data Execution Prevention Be Closing iTunes 11.2.0.115?

    I don't own any Apple hardware and only use iTunes to listen to songs I purchased in the iTunes store that only work in iTunes. I started noticing problems when I updated to version 11.2.0.115 today. The "iTunes.exe" process remains in the "Processes

  • Background color change for  XML Template

    Hi All, We have created a xml template for creation of news using xml form builder. When we are creating a news by using this template the background color of the news always shows SAP default color (light blue) for both Renderlist and Show forms. Ou

  • Discoverer Viewer Actions changed by User (version Oracle 10.1.2)

    Does anyone know if it is possible to control the list of available actions to selected users of discoverer Viewer? I'm using a Portal Dashboard to display Discoverer worksheets. The user can click on the analyze link, which brings up the Discoverer

  • Trully need help folks......

    import java.awt.*; import java.awt.event.*; import javax.swing.*; class VideoStoreMainFrame extends JFrame      private JButton managerButton, cashierButton, customerButton;      private JLabel note;      public VideoStoreMainFrame()           super(