Im puling my hair out! compiler error message

can any one please give me an insight into why my program is giving me the following message
myTry3.java [24:1] variable output might not have been initialized
JOptionPane.showMessageDialog(null,output,"Information",JOptionPane.INFORMATION_MESSAGE);
i cant understand this as i have set up the variable as a string at the start of the program. some guidance would be well appreciated here if possible please. thanks.

Then maybe you need to assign something sensible to output, won't you?
After all, you were the one who was insisting that it was initialized properly just a while ago. That turned out to be incorrect, didn't it?
Peeking at my javadocs, I don't see a four-argument ctor for JOptionPane that takes an int as the fourth argument.
My next idea is to suggest that you remove that first 'null' from the argument list and assign a sensible output message to 'output':
output = "Something informative";
JOptionPane.showMessageDialog(output,"Information",JOptionPane.INFORMATION_MESSAGE);Why don't you declare the output String closer to the JOptionPane? Narrow scope is a good thing.
Other advice? Stop tearing at your hair every time you get a Java error. You'll be bald soon. Read the javadocs more often. Stop assuming that everything you do is correct and that the machine is persecuting you. Doubt yourself more. - MOD

Similar Messages

  • Compiler Error Message: CS0433

    Compiler Error Message: CS0433: The type 'CrystalDecisions.Web.CrystalReportPartsViewer' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Web\11.5.3700.0__692fbea5521e1304\CrystalDecisions.Web.dll' and 'c:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Web\10.2.3600.0__692fbea5521e1304\CrystalDecisions.Web.dll'
    Support Information:
    Windows Server 2003
    Crystal 9,10 and 11 support required based on reports and web configuration.
    This error relates to the following configuration:
    Visual Studio 2005
    Crystal .Net that comes with VS2005 SP2 (10.2.3600.0)
    Web application deployment.
    I am told that some Web.Config settings would fix this, but no one has been to specific.
    Thanks
    -Jonathan

    Been over those files many times today actually. Thanks for the suggestion though. Apparently this type of issue is a known issue when you have multiple DLL's in the assembly cache with regards to how Crystal is laid out.
    My Web.Config has no refference to either assembly, the project reference only refferences 10.2.3600.0 DLL's, Specific Version is set to true on all of them. The only way around this problem from what I have read is to use some sort of Web.Config adjustment, and the only article that even slightly goes into this is:
    http://blogs.gotdotnet.com/richarde/archive/2005/09/02/468187.aspx
    As you can see by that article, Microsoft is not only aware of this problem, but have had to do work arounds in the Web.Config themself to get around it. The problem is, I do not know the xmlns to use for Crystal, the depenentAssembly information, or even the assemblyIdentity to use in this case.
    What I need is the <runtime> variables for atleast version 10.2.3600.0 and 11.5.3700.0 along with 11.5.3300.0, some of my reports are directly created inside of VS 2005 C# .Net and need to be displayed in a web project, others are created in VS 2003 and used in an application layer and those are fine, but finally, I have Crystal XI R2 reports (several people creating these) which are displayed on a web page via <assemblies> tags within those sub project websites.
    The sticker at the moment is the VS2005 C# projects. I would LOVE to just shove a package at VS 2005 to force it to upgrade from 10.2.3600.0 to 11.5.3700.0, then it wouldn't matter as much, but Microsoft won't support me, they consider this a Business Objects issue. What I am looking for is the Web.Config <runtime> setttings.
    <runtime>
       <assemblyBinding xmlns="????">
            <dependentAssembly>
                 <assemblyIdentity name="???" publicKeyToken="???" />
                 <bindingRedirect oldVersion="??" newVersion="??" />
            </dependentAssembly>
       </assemblyBinding>
    </runtime>
    One for me to get past this issue.. Or some sort of upgrade to VS 2005 to bring it up to Crystal XI R2 package level, or some direction there of.

  • Compiler error messages

    Have compiled two source files from the Ivor Horton book Understanding java 2 and they both compile successfully. However when I go to run the program I get the following compiler error message.
    Exception in thread "main" java.lang.NoSuchMethodError : main
    what essentially does this mean because they are saved in the right directory and compile with no complications.

    I believe you do not have a main method. you cannot run any java class, and just compiling the classes does not imply that it will run. To run a program you need to have the main method...
    Say for the following class it will compile but will throw the exception you mentioned if you try to run the program since it does not have the main method.
    public class Test
    public static void test(String[] args)
    System.out.println(" Hello World");
    throws:
    Exception in thread "main" java.lang.NoSuchMethodError: main
    Now if you replace method name test with main
    it will run.
    public class Test
    public static void main(String[] args)
    System.out.println(" Hello World");
    }

  • CRVS2010 Beta - Compiler Error Message: BC32206:

    Compiler Error Message: BC32206: The project currently contains references to more than one version of CrystalDecisions.Web, a direct reference to version 12.0.2000.0 and an indirect reference (through 'StarPDM2.PDMSpecCrystal.CrystalReportViewer1') to version 14.0.2000.0. Change the direct reference to use version 14.0.2000.0 (or higher) of CrystalDecisions.Web
    I put the lines in the web.config as stated in the notes.
    thanks
    Ken

    Mandeep,
    Have you got any solution for this as I am also facing the same issue.
    Server Error in '/applicationnameqa' Application.
    Compilation Error
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
    Compiler Error Message: CS1705: Assembly 'applicationname.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'CrystalDecisions.CrystalReports.Engine, Version=14.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' which has a higher version than referenced assembly 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
    Source Error:
    [No relevant source lines]
    Source File:    Line: 0
    Show Detailed Compiler Output:
    c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\applicationnameqa\ce84c14c\a620f1ad\assembly\dl3\7d95d4c9\041adbd0_2e72ca01\applicationname.Splitter.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.InfoStore\12.0.1100.0__692fbea5521e1304\CrystalDecisions.Enterprise.InfoStore.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Build.Framework\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Framework.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.WebForms\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.WebForms.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.ReportSource\12.0.2000.0__692fbea5521e1304\CrystalDecisions.ReportSource.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.Common\10.0.0.0__b03f5f7f11d50a3a\Microsoft.ReportViewer.Common.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\WINDOWS\assembly\GAC\CrystalDecisions.ReportAppServer.DataDefModel\12.0.1100.0__692fbea5521e1304\CrystalDecisions.ReportAppServer.DataDefModel.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\applicationnameqa\ce84c14c\a620f1ad\App_Code.whwoj_l1.dll" /R:"C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.Framework\12.0.1100.0__692fbea5521e1304\CrystalDecisions.Enterprise.Framework.dll" /R:"C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.Viewing.ReportSource\12.0.1100.0__692fbea5521e1304\CrystalDecisions.Enterprise.Viewing.ReportSource.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.Desktop.Report\12.0.1100.0__692fbea5521e1304\CrystalDecisions.Enterprise.Desktop.Report.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Entity\v4.0_4.0.0.0__b77a5c561934e089\System.Web.Entity.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Shared\12.0.2000.0__692fbea5521e1304\CrystalDecisions.Shared.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\WINDOWS\assembly\GAC\CrystalDecisions.ReportAppServer.Controllers\12.0.1100.0__692fbea5521e1304\CrystalDecisions.ReportAppServer.Controllers.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\WINDOWS\assembly\GAC\CrystalDecisions.ReportAppServer.ClientDoc\12.0.1100.0__692fbea5521e1304\CrystalDecisions.ReportAppServer.ClientDoc.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Management\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Management.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\applicationnameqa\ce84c14c\a620f1ad\assembly\dl3\c350966a\d484edb6_cf17cb01\applicationname.Web.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Web\12.0.2000.0__692fbea5521e1304\CrystalDecisions.Web.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Data.Entity\v4.0_4.0.0.0__b77a5c561934e089\System.Data.Entity.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.CrystalReports.Engine\12.0.2000.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\applicationnameqa\ce84c14c\a620f1ad\App_Web_reportviewertest.aspx.cdcab7d2.rqat3bqm.dll" /D:DEBUG /debug+ /optimize- /win32res:"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\applicationnameqa\ce84c14c\a620f1ad\wrr15z3d.res" /w:4 /nowarn:1659;1699;1701 /warnaserror-  "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\applicationnameqa\ce84c14c\a620f1ad\App_Web_reportviewertest.aspx.cdcab7d2.rqat3bqm.0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\applicationnameqa\ce84c14c\a620f1ad\App_Web_reportviewertest.aspx.cdcab7d2.rqat3bqm.1.cs"
    Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
    Copyright (C) Microsoft Corporation. All rights reserved.
    c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\applicationnameqa\ce84c14c\a620f1ad\assembly\dl3\c350966a\d484edb6_cf17cb01\applicationname.Web.DLL: error CS1705: Assembly 'applicationname.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'CrystalDecisions.CrystalReports.Engine, Version=14.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' which has a higher version than referenced assembly 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
    c:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.CrystalReports.Engine\12.0.2000.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll: (Location of symbol related to previous error)
    Thank you
    Hrushikesh Patel
    Edited by: Hrushikesh Patel on Jun 30, 2010 8:43 AM

  • Hi Experts , I am currently facing problems while running restricted version copy .. The log says 0 location products copied and that the process has has timed out. the error message is /SAPAPO/MVM_INT_SVC_CO_VER_LCW reported exception in task DP00014, th

    Hi Experts , I am currently facing problems while running restricted version copy in sap apo .. The log says 0 location products copied and that the process has timed out. the error message is " /SAPAPO/MVM_INT_SVC_CO_VER_LCW reported exception in task DP00014 " , then ending in time limit exceeded. could anyone explain why this happens. please note even if the log says 0 location products copied , in reality they have have been partially copied.
    Regards
    Jerel

    Hi, thank you for your replies, I found out few things about my servlet, and its portability
    and i have few questions, although i marked this topic as answered i guess its ok to post
    I am using javax.servlet.context.tempdir to store my files in that servletcontext temporary directory. But i dont know how to give hyperlink
    of the modified files to the user for them to download the modified files.
    What i am using to get the tempdir i will paste
    File baseurl = (File)this.getServletContext().getAttribute("javax.servlet.context.tempdir");
    System.out.println(baseurl);
    baseurl = new File(baseurl.getAbsolutePath()+File.separator+"temp"+File.separator+"files");
    baseurl.mkdirs();so i am storing my files in that temp/files folder and the servlet processes them and modifies them, then how to present them as
    links to the user for download ?
    and as the servlet is multithreaded by nature, if my servlet gets 2 different requests with same file names, i guess one of them will be overwritten
    And i want to create unique directory for each request made to the servlet , so file names dont clash.
    one another thing is that i want my servlet to be executed by my <form action> only, I dont want the user to simply type url and trigger the servlet
    Reply A.S.A.P. please..
    Thanks and regards,
    Mihir Pandya

  • Compiler Error Message: BC30451: Name 'UserEmail' is not declared.

    Have the message when I test the page. Anyone sugest a
    solution please?
    Compiler Error Message: BC30451: Name 'UserEmail' is not
    declared.
    Page code below.
    <%@ Page Language="VB" ContentType="text/html"
    ResponseEncoding="iso-8859-1" %>
    <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls"
    Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutra l"
    %>
    <MM:DataSet
    id="dsUsers"
    runat="Server"
    IsStoredProcedure="false"
    ConnectionString='<%#
    System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_conSQLPerene lle")
    %>'
    DatabaseType='<%#
    System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_conSQL Perenelle")
    %>'
    CommandText='<%# "SELECT dbo.Users.UserEmail,
    dbo.Users.UserPassword FROM dbo.Users WHERE
    dbo.Users.UserEmail=@UserEmail AND
    dbo.Users.UserPassword=@UserPassword" %>'
    Expression='<%# IsPostBack %>'
    Debug="true"
    ><Parameters>
    <Parameter Name="@UserEmail" Value='<%#
    IIf((Request.Form("UserEmail") <> Nothing),
    Request.Form("UserEmail"), "") %>' Type="NVarChar" />
    <Parameter Name="@UserPassword" Value='<%#
    IIf((Request.Form("UserPassword") <> Nothing),
    Request.Form("UserPassword"), "") %>' Type="NVarChar" />
    </Parameters></MM:DataSet>
    <MM:PageBind runat="server" PostBackBind="true" />
    <script language="VB" runat="server">
    Protected Sub Page_Load(ByVal Src As Object, ByVal E As
    EventArgs)
    ' Don't cache this page.
    Response.Expires = -1
    Response.AddHeader("Pragma", "no-cache")
    Response.AddHeader("cache-control", "no-store")
    ' Check user credentials entered on the page
    If (UserEmail.Value =
    dsUsers.FieldValue("UserEmail",Nothing))
    &&(UserPassword.Value =
    dsUsers.FieldValue("UserPassword",Nothing)) Then
    ' The user has been authenticated.
    ' 1. Create the authentication ticket.
    ' 2. Redirect to the appropriate page.
    ' 1. Create the authentication ticket.
    ' Create and use the forms authentication ticket.
    FormsAuthenticationTicket ticket = New
    FormsAuthenticationTicket(1,
    Request.Form("UserEmail"),
    DateTime.Now, ' issue time
    DateTime.Now.AddMinutes(30), ' expires in 30 minutes
    False, ' not persistent
    Dim ' role assignment gets stored in the UserData As
    "Users")
    ' Create a new (encrypted) HttpCookie using the ticket just
    created
    ' and name it accordingly to the value specified in the
    <forms> element
    ' in the web.config file.
    Dim cookie As HttpCookie = New
    HttpCookie(FormsAuthentication.FormsCookieName,FormsAuthentication.Encrypt(ticket))
    ' Add the cookie to the outbound response.
    Response.Cookies.Add(cookie)
    ' Redirect as appropriate.
    Dim ReturnUrl As String
    If Request.QueryString("ReturnURL") Is Nothing Then
    ReturnUrl = "/client-area/index.aspx"
    Else
    ReturnUrl = Request.QueryString("ReturnURL")
    End If
    Response.Redirect(ReturnUrl)
    Else
    Msg.Text = "Invalid Credentials: Please try again"
    End If
    End Sub
    </script>

    Answered myself. JUst named the imput fields incorrectly.
    Couple of other problems also but sorted and now working
    fine...

  • Struts and Tiles Problem:compiler error message

    I imported the application "tiles-documentation.war" from jakarta-struts-1.1 into the newly installed JDevloper(Version 9.0.5.2 Build 1618) and try to make it running.
    While with the former Jdeveloper 9.0.4 I can run it nicely(a few manual editing of some files, though), with this newer version I just can not proceed with the following error message.
    Project: D:\jdev\mywork\oc4j_startup\tiles_doc\tiles_doc.jpr
    D:\jakarta-struts-1.1\webapps\tiles-documentation\tutorial\common\menu.jsp
    Error: package and class have same name: tutorial.common._menu
    the same kind of message repeated many many times.
    It seems that I can not probe any more...
    Can someone help me out? Thanks in advance

    Right so these where messages from the JSP compile or from the import process?

  • I do not understand the compiler error message

    The code below is supposed to get multiple integer inputs from the console, place them on an array, and check for the NumberFormatException. When I compile it, it is giving an error message that I do not understand.
         A console program that accepts integer input from the user and throws a NumberFormatException if the entry is not an integer.
         Created on: August 20, 2003
    import javax.swing.*;
    import java.util.*;
    public class ArgstoNumbers2
         public static void main(String[] args)
              //Prompt user for input
              System.out.print("Enter a number: ");
              //Create and array to accept the user's input
              int [] integerArgs;
              //Fill array with users input
              while(true)
                   try
                        integerArgs = getInt();
                        break;
                   //Verfy that the input is an integer
                   catch (NumberFormatException e)
                        System.out.println("Not a number. Please enter a number.");
                        System.exit(1);
         //Start of the getInt() method
         public static int getInt()
              String numberString;
              int intVal = 0;
              boolean endChar = false;
              while(!endChar)
                   try
                        numberString = getString();
                        intVal = Integer.parseInt(numberString);
                        endChar = true;
                   catch (NumberFormatException e)
                        System.out.println("Not a number. Please enter a number.");
                        System.exit(1);
              return intVal;
         //End of the getInt() method
         //Start of the getString() method
         public static String getString()
              int aChar = -1;
              String consoleChars = "";
              boolean endChar = false;
                   while(!endChar)
                        try
                             aChar = System.in.read();
                             if ((aChar == 10) || (aChar == 13)) endChar = true;
                             else consoleChars = consoleChars + (char)aChar;
                        catch (Exception e)
                             System.out.println(e.getMessage());
                             System.exit(0);
              return consoleChars;
         //End of the getString() method

    Hi,
    A possible problem would be at line
    integerArgs = getInt();
    since here you would get an incompatible types error since 'integerArgs' is an array and 'getInt()' returns a primitive int value.
    This needs to be changed and then am sure your code should compile.
    Hope the above helps.
    John Morrison
    PS: As paul was saying, putting in the error message would be a faster way to get an answer since most developers on the forum would be hard pressed for time and may not be able to actually try out your code.

  • My Itunes wont open and windows will send out an error message

    Hello
    I was working with Itunes for a long time with no problem what so ever until suddenly yesterday when I opened it I recived an error message from windows saying the process has to close and will I want to send out an error report to windows.
    I went on to move my Itunes library and repair the Itunes via the downloaded installation file but when it did not work I uninstalled it completly and reinstalled it with no effect...
    If any one have any idea as to how to solve this pls help....
    thank you

    windows installer has stopped working
    a problem caused the program to stop working correctly.
    windows will close the program and notify you if a solution is avabilable.
    ... and that's one that I wasn't thinking of ...
    Head into your Windows Update. Are there any new updates available for you? If so, and you install, does that clear up the error message?

  • "Unable to Check Out File Error" Message

    I'm new to using Adobe products, so forgive me if this is a dumb question! My graphic designer sent me a INDD file to edit the text in and when I try to open it in both InDesign and InCopy, I receive an "Unable to Check Out this File" error message. I just downloaded InDesign CC and InCopy CC (the free trial versions). She said that all settings on her end should allow me to view it. Any help is much appreciated!
    Thank you!

    I've just experienced the same error message in CS4. I got rid of it by going to the Links panel, selecting all the links to Incopy, and Unlinking.

  • Java compilation error messages

    Is there any way for HTML DB to return error messages during Java compilation? Every create java command I submit -- unless there is a grievous syntax error -- seems to return statement processed:
    Given....
    CREATE OR REPLACE FUNCTION returnOne
       RETURN NUMBER
    AS LANGUAGE JAVA
       NAME 'JavaTest.returnOne ()
                return int';Test #1 -- a valid Java source code:
    create or replace java source named "JavaTest" as
    public class JavaTest
      public static int returnOne()
           return 1;
    Statement processed.
    0.20 seconds
    begin
      htp.p(returnOne());
    end;
    1
    Statement processed.
    0.11 secondsTest #2 -- Invalid source code -- there is no indication until runtime that anything is wrong:
    create or replace java source named "JavaTest" as
    public class JavaTest
      public static int returnOne()
           iCalendar ical   = new iCalendar();
           return 1;
    Statement processed.
    0.18 seconds
    begin
      htp.p(returnOne());
    end;
    ORA-29541: class ARDB.JavaTest could not be resolved
    0.37 seconds               :(

    Er....yeah....but do you have any idea why the SQL Command Processor would not return any errors when trying to compile a class with a non-valid dependency?
    Another example:
    create or replace and compile java source named "JavaTest" as
    public class JavaTest
      public static int returnOne()
           MyFooBarClass ns = new MyFooBarClass();
           return 1;
    Statement processed.
    0.37 seconds
    select * from user_errors where name = 'JavaTest';
    NAME     TYPE     SEQUENCE     LINE     POSITION     TEXT     ATTRIBUTE     MESSAGE_NUMBER
    JavaTest     JAVA CLASS     1     0     0     ORA-29535: source requires recompilation     ERROR     0
    JavaTest     JAVA SOURCE     1     0     0     JavaTest:5: cannot resolve symbol     ERROR     0
    JavaTest     JAVA SOURCE     2     0     0     symbol : class MyFooBarClass      ERROR     0
    JavaTest     JAVA SOURCE     3     0     0     location: class JavaTest     ERROR     0
    JavaTest     JAVA SOURCE     4     0     0     MyFooBarClass ns = new MyFooBarClass();     ERROR     0
    JavaTest     JAVA SOURCE     5     0     0     ^     ERROR     0
    JavaTest     JAVA SOURCE     6     0     0     JavaTest:5: cannot resolve symbol     ERROR     0
    JavaTest     JAVA SOURCE     7     0     0     symbol : class MyFooBarClass      ERROR     0
    JavaTest     JAVA SOURCE     8     0     0     location: class JavaTest     ERROR     0
    JavaTest     JAVA SOURCE     9     0     0     MyFooBarClass ns = new MyFooBarClass();     ERROR     0
    JavaTest     JAVA SOURCE     10     0     0     ^     ERROR     0
    JavaTest     JAVA SOURCE     11     0     0     2 errors     ERROR     0Well, now that I know about user_errors, I can go ahead -- but that was sort of a surprising find.....

  • Interesting compiler error message

    Hi,
    i have the following fragment of code:
         public void setTheArmies(int attacking, int defending) {
              defending.setArmies(defending);
              attacking.setArmies(attacking);
              game.repaint();
         }defending and attacking are both of typr Country, the setArmies() method in class Country is as follows:
         public void setArmies(int a) {
              occArmies = a;
         }When i try and compile it, it comes up with the following error message:
    java:254: Can't invoke a method on a int.
    java:255: Can't invoke a method on a int.This is strange as im clearing using an integer as an argument for this method????? Can someone please help me.
    Thanks
    Cath

    you have variables named the same 'defending', one is an int, the other is an object.
    Hi,
    i have the following fragment of code:
    public void setTheArmies(int attacking, int
    defending) {
    defending.setArmies(defending);
    attacking.setArmies(attacking);
    game.repaint();
    }defending and attacking are both of typr Country, the
    setArmies() method in class Country is as follows:
    public void setArmies(int a) {
    occArmies = a;
    }When i try and compile it, it comes up with the
    following error message:
    java:254: Can't invoke a method on a int.
    java:255: Can't invoke a method on a int.This is strange as im clearing using an integer as an
    argument for this method????? Can someone please help
    me.
    Thanks
    Cath

  • My upgrade to IOS5 for iphone 4 continually times out with error message 3259. Any ideas on why?

    My download of ios5 continually times out in itunes, quoting error message 3259. Any ideas why

    THIS WAS COPIED FROM A THREAD THAT WORKED FOR ME SO I CAN'T TAKE THE CREDIT
    Open notepad as administrator, and direct yourself to:
    C:\Windows\System32\Drivers\etc
    open the "Hosts" file:
    note the "127.0.0.1 gs.apple.com" portion near the bottom. your hosts may be different, and if so, then look for that part specifically. the problem for me, lied within the fact that just before the "127.0.0.1 gs.apple.com" part, there originally was no hash(#) with the space like the rest of the hosts file. This was all I had to fix. After editing and then SAVING the hosts file in notepad I restarted iTunes and the update went through without a hitch!
    so if you do not see the hash and space before the "127.0.0.1 gs.apple.com" part, all you have to do is put the #, and then press tab! I hope this works for some of you guys! So just to be clear, that particular line in the file should look like:
    # 127.0.0.1 gs.apple.com
    good luck!

  • ALE errored out with error message 127

    Hi all,
           We have a process where we trigger an ALE of INVOIC type using output type in invoice document.  When I saw some time back, i encontered following  error message "
    Object 0009543773                                                                               
    Output type: ALE Invoice                                                                               
    B1   ALE group messages   127 No partner profiles (message control) maintained      
    When I tried today, I am not getting this error.  I didn't do any changes.  I am worried that this might happen in production as well.  I am curious to know why this error happened earlier and why it is not appearing now.  Also, a remedy action if this happens in production.

    Hi sudhakar,
    can u post the solution for this problem pls.so tht it can be helpfull to us.
    Regards,
    Sameer

  • I try to generate a chm file over the net and I get a compiling error message

    Hi all,
    I am trying to generate chm files over the net, and the same project when I am generating the same chm locally works fine, however when I am attempting to generate the same chm on a network location, it gives me a compiling error and aborts the generation. It is also keeping the chm file open afterwards, so I have to reboot the machine.
    It is RH7 working on a Windows XP Pro 32 bit.
    Thank you

    It is not a project issue. RoboHelp is just not designed to work that way but like a lot of things, some people can use them outside what they were designed for. However, just because some people can work that way, it does not follow everyone can.
    I've seen people with projects on a network and they say have been doing it for years so it must be OK. A while later they come back and say the problem is fixed since moving it locally.
    Sorry but it looks like you are stuck with working the way you do or getting your colleague to do it. It might be as simple as he is on a different bit of your network.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Can't figure out simple error message

         public int findAccount(int accountNum)
              int i;
              for(i = 0; i < accountCount; i++)
              if(accounts[i] = accounts[accountNum])
                        return i;
              else
                   return -1;
    It gives me this error message:
    C:\bank\Bank.java:79: incompatible types
    found : support.BankAccount
    required: boolean
                   if(accounts[i] = accounts[accountNum])
    ^
    1 error
    the source code didn't put the post right, it should have the array accounts with the i index, I'm sure you know what I mean, its only putting accounts

    Actually, it should be:
    for(i = 0; i < accountCount; i++){
    if(accounts == accounts[accountNum])
    return i;
    else
    return -1;
    to correct the syntax error. You may still have logic errors but this clears up the syntax error. Note the DOUBLE equals, in Java conditionals and iterators must take booleans (no auto-downcasting), in addition, the double equals only checks for reference equality, not value equality. To check for value equality between objects, you should use foo.equals(bar) and overload equals(). Hope this helps.
    silentOpen

Maybe you are looking for

  • Information in purchase order item

    Hi experts I have one requirement when we create PO than during each line item some information should come to give total open PO quantity and total stock available for that material so can we give some pop up at each line item or we create tab scree

  • HT4858 What about number of days. How long is a photo stored in shared photo stream? 30 days?

    What about number of days. How long is a photo stored in shared photo stream? 30 days? Also, do photos in a photo stream (shared or personal) get backed up on a pc if the icloud panel is there? Regards               

  • Creating a Simple Number Field

    I want to basically create a JTextField only instead of text, numbers including decimals. I tried putting number into a text field but java won't see them as double. I tried the tutorial example with a formatted text field, however, they explain abst

  • Portadat to FCP 7 on my macbook pro?

    I have a timecode portadat. What hardware and software do I need to transfer it to final cut pro 7 on my macbook pro? MacBook Pro, Mac OS X (10.7.2), 17" Intel Core 2 Duo

  • Incorrect texts in SAP Query Designer

    Hello, I have problems with incorrect text in SAP Query designer, I work with SAP codepage 1404 and I see all queries correct, but when I want to edit some query with some special character for czech language its problem. Query designer can=t use cze