Compiling error for HelloWorld.java

i know this has been asked b4....and im sure has also been answered
but i have checked time and time again to make sure there is no .txt and there isnt, it is in fact a JAVA file but i STILL get this error
error: cannot read: HelloWorld.java
1 error

ahhhh now that i don't have my old problem........i just got a couple new ones.....i hope someone can help me....here they are
C:\Java\HelloWorld.java:3: <identifier> expected
import.java.awt*; (there is a ^ mark under the period after import )
C:\Java\HelloWorld.java:3: '.' expected
import.java.awt.*; ( there is a ^ mark under the semicolon)
C:\Java\HelloWorld.java:5: <identifier> expected
import.javax.swing.*; (there is a ^ mark under the period after import, again)
C:\Java\HelloWorld.java:5: '.' expected
import.javax.swing.*; (there is a ^ mark under the semicolon, again)
4 errors

Similar Messages

  • Java compile error for removed API

    Hi,
    What are the Java compile errors for API that has been removed?
    As I understand it, API elements are deprecated and not removed from the API immediately, but will be removed in future releases or after so many years.
    When Java code is compliled in a higher Java version, and the API has finally been removed - what are the errors that will be ouput in the log?
    Thank you for your time.

    WalterLaan wrote:
    And if you recompile one with a method removed that the other use and then run the other you would get a NoSuchMethodError (or more generally just an error sub class of LinkageError).
    Not that you should be catching those unless you accept classes from the user (as plugins).Presumably you mean he should not be catching them?
    @OP: In general, you should not catch unchecked exceptions. These are RuntimeException, Error, and their descendants. There are exceptions, such as at "layer boundaries," or when you don't want errors in one module/application/plugin/etc. to affect or prevent processing in others.

  • Compilation Error for import classes not found in generated Proxy Class

    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

    Hi,
    I resolved the other errors by changing all references from com.bea.jcom.Variant
    etc to com.linar.jintegra.class name..all were present under the com.linar.jintegra
    package.
    Thank you all anyways,
    Regards,
    rahul
    "Rahul Srivastava" <[email protected]> wrote:
    >
    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling
    the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch
    class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used
    by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found
    inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface
    with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch
    to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the
    COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

  • [svn:fx-trunk] 5353: * Added compiler error for Halo Navigators containing non-Containers

    Revision: 5353
    Author: [email protected]
    Date: 2009-03-17 12:59:06 -0700 (Tue, 17 Mar 2009)
    Log Message:
    * Added compiler error for Halo Navigators containing non-Containers
    as their first level child.
    tests Passed: checkintests
    Needs QA: YES
    Needs DOC: NO
    Bug fixes: SDK-19317
    API Change: NO
    Reviewer: Pete F.
    Code-level description of changes:
    compiler/mxml/lang/StandardDefs.java
    Added getContainerPackage(), isHaloNavigator(), CLASS_VIEWSTACK,
    CLASS_ACCORDION, and PACKAGE_MX_CONTAINERS.
    compiler/mxml/builder/ComponentBuilder.java
    Modified
    ComponentBuilder.ComponentAttributeHandler.nestedDeclaration() to
    report an error if a non-container is declared as a child of a
    Halo navigator.
    compiler_en.properties
    Added HaloNavigatorsRequireHaloContainerChildren message.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-19317
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.jav a
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties

  • [svn:fx-trunk] 10766: Re-commit compiler errors for other theme' s styles feature.

    Revision: 10766
    Author:   [email protected]
    Date:     2009-09-30 15:55:55 -0700 (Wed, 30 Sep 2009)
    Log Message:
    Re-commit compiler errors for other theme's styles feature. If Style metadata has a "themes" attribute, the style is only valid if that theme is applied.
    The Spark theme is applied by default. The halo theme can be specified as a compiler argument or by selecting the "MX Only" component set in Builder.
    All other themes need to be applied using theme+= instead of theme=. If you use theme= you will get warnings about styles used in CSS selectors, and errors if you use any theme-specific style as an attribute on an MXML tag.
    By default, styles that aren't valid for the current theme are errors. These can be changed to warnings with the report-invalid-styles-as-warnings compiler option.
    QE notes: Expect test breakage
    Doc notes: The new policy for themes needs to be documented.
    Bugs: none yet, but I'm sure there will be some...
    Reviewer: Ryan
    Tests run: checkintests, cyclone
    Is noteworthy for integration: Yes
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/defaults.css
        flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CalendarLayout.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToolTip.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Tree.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPan el.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManager.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ToolTipBorder.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/SkinStyles.as
        flex/sdk/trunk/frameworks/projects/halo/defaults.css
        flex/sdk/trunk/frameworks/projects/spark/defaults.css
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/SkinnableDataContainerSkin .mxml
        flex/sdk/trunk/frameworks/projects/sparkskins/src/SparkSkinsClasses.as
        flex/sdk/trunk/frameworks/tests/basicTests/BasicTests.css
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/DefaultsConfigurator.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/MxmlConfiguration.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FXGCompiler.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/MxmlConfiguration.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.jav a
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/AttributeHandler.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/DeclarationHandler.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/reflect/Type.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/reflect/TypeTable.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties
        flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java
    Added Paths:
        flex/sdk/trunk/frameworks/themes/Spark/spark.css
    Removed Paths:
        flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ApplicationBackground.as

    Revision: 10766
    Author:   [email protected]
    Date:     2009-09-30 15:55:55 -0700 (Wed, 30 Sep 2009)
    Log Message:
    Re-commit compiler errors for other theme's styles feature. If Style metadata has a "themes" attribute, the style is only valid if that theme is applied.
    The Spark theme is applied by default. The halo theme can be specified as a compiler argument or by selecting the "MX Only" component set in Builder.
    All other themes need to be applied using theme+= instead of theme=. If you use theme= you will get warnings about styles used in CSS selectors, and errors if you use any theme-specific style as an attribute on an MXML tag.
    By default, styles that aren't valid for the current theme are errors. These can be changed to warnings with the report-invalid-styles-as-warnings compiler option.
    QE notes: Expect test breakage
    Doc notes: The new policy for themes needs to be documented.
    Bugs: none yet, but I'm sure there will be some...
    Reviewer: Ryan
    Tests run: checkintests, cyclone
    Is noteworthy for integration: Yes
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/defaults.css
        flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ApplicationControlBar.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/containers/ControlBar.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Button.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ButtonBar.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/CalendarLayout.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ComboBase.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DateChooser.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/RadioButton.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/TextArea.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/ToolTip.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/Tree.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/VideoDisplay.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/colorPickerClasses/SwatchPan el.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ScrollControlBase.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/CursorManager.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/ToolTipBorder.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/SkinStyles.as
        flex/sdk/trunk/frameworks/projects/halo/defaults.css
        flex/sdk/trunk/frameworks/projects/spark/defaults.css
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/SkinnableDataContainerSkin .mxml
        flex/sdk/trunk/frameworks/projects/sparkskins/src/SparkSkinsClasses.as
        flex/sdk/trunk/frameworks/tests/basicTests/BasicTests.css
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/DefaultsConfigurator.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/MxmlConfiguration.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FXGCompiler.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/MxmlConfiguration.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.jav a
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/AttributeHandler.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/DeclarationHandler.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/reflect/Type.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/reflect/TypeTable.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties
        flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java
    Added Paths:
        flex/sdk/trunk/frameworks/themes/Spark/spark.css
    Removed Paths:
        flex/sdk/trunk/frameworks/projects/sparkskins/src/mx/skins/spark/ApplicationBackground.as

  • [svn] 1521: Fix compilation error in MBeanObjectNameResolver.java.

    Revision: 1521
    Author: [email protected]
    Date: 2008-05-02 05:19:25 -0700 (Fri, 02 May 2008)
    Log Message:
    Fix compilation error in MBeanObjectNameResolver.java.
    Modified Paths:
    blazeds/trunk/qa/apps/qa-regress/WEB-INF/src/qa/management/MBeanObjectNameResolver.java

    Revision: 1521
    Author: [email protected]
    Date: 2008-05-02 05:19:25 -0700 (Fri, 02 May 2008)
    Log Message:
    Fix compilation error in MBeanObjectNameResolver.java.
    Modified Paths:
    blazeds/trunk/qa/apps/qa-regress/WEB-INF/src/qa/management/MBeanObjectNameResolver.java

  • SDDM 3.1 PROD: ERROR PropertyMapWrapper - Invocation error for getter java.

    While opening my design the following message is written in the log:
    2012-03-09 15:32:41,529 [Thread-8] ERROR PropertyMapWrapper - Invocation error for getter
    java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor316.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.dbtools.crest.model.metadata.MDTransformer.setProperty(Unknown Source)
         at oracle.dbtools.crest.model.metadata.XMLToObjectTransformer.processProperty(Unknown Source)
         at oracle.dbtools.crest.model.metadata.XMLToObjectTransformer.transformToObject(Unknown Source)
         at oracle.dbtools.crest.model.metadata.XMLToObjectTransformer.transformToObject(Unknown Source)
         at oracle.dbtools.crest.model.metadata.XMLToObjectTransformer.transformToObject(Unknown Source)
         at oracle.dbtools.crest.model.metadata.XMLToObjectTransformer.transformToObject(Unknown Source)
         at oracle.dbtools.crest.model.metadata.XMLToObjectTransformer.transformToObject(Unknown Source)
         at oracle.dbtools.crest.model.metadata.XMLTransformationManager.transformFromXMLToObject(Unknown Source)
         at oracle.dbtools.crest.model.metadata.XMLTransformationManager.transformFromXMLToObject(Unknown Source)
         at oracle.dbtools.crest.model.metadata.XMLTransformationManager.openDesignPart(Unknown Source)
         at oracle.dbtools.crest.model.design.Design.openDesign(Unknown Source)
         at oracle.dbtools.crest.swingui.ControllerApplication$Recent$1.run(Unknown Source)
    Caused by: java.lang.NullPointerException
         at oracle.dbtools.crest.model.design.relational.FKIndexAssociation.createLocalFKIndex(Unknown Source)
         at oracle.dbtools.crest.model.design.relational.FKIndexAssociation.getLocalFKIndex(Unknown Source)
         at oracle.dbtools.crest.model.design.relational.FKIndexAssociation.setMandatory(Unknown Source)
         ... 15 more
    What does it mean?
    Regards,
    Marc de Oliveira

    That is really bad news :-(
    Even though this only happened a few days ago, I cannot make it work on any version of my data unless it is from before February 7 (ie before DA 3.1 production).
    Restoring my model from February 8 generates the same error during export to the repoting schema, eventhough it worked fine one week ago.
    Throwing away more than a month of work is a very serious issue. Are you sure that there is no way to identify the problem?
    Regards,
    Marc de Oliveira

  • Compilation errors when using java 5.0 features

    Hi,
    I modified the make script in my project to use JDK 1.5.0_11 compiler. instead of 1.4.2 compiler. But when I run the make script, it is throwing errors for all the JDK 1.5.0 features like for-each construct, auto-boxing etc..
    Please let me know if I am issing anything.
    It compiles successfully in my IDE.
    Thanks,
    Ravikumar

    May be. I am not expert in Make. I can see that it is using the programatic interface sun.tools.javac.Main to compile. Also -bootclasspath option is being used. But I dont see any -target option. So I am confused.

  • Error compliling HelloWorld.java

    Hi I'm running windows ME and I downloaded the Java 1.3v08 from this site and installed it like the manual said. I am having problems running the helloword program,
    it says > error: cannot read: Helloworld.java
    1 error
    I'm a little discouraged now cause this is supposed to be the easiest program to run and its not working.. help please..

    Make sure your file is named HelloWorld.java and not HelloWorld.java.txt. Use the DIR command from the command prompt. Or follow this tutorial.
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html

  • Why does plsql give compilation error for select statement?

    When I run following plsql program, it gives compilation error. Could somebody please point me out what could be wrong here? I am running it from system user.
    create or replace procedure drop_user_proc (iname in varchar2) is
    uname varchar2(100);
    begin
    select username into uname from dba_users where username = upper(iname);
    end drop_user_proc;
    select username from dba_users where username = upper('newuser');
    When I run it, I get following error. dba_users is there that is the reason it works outside plsql block, but it doesn't from inside block.
    SQL> @t4
    Warning: Procedure created with compilation errors.
    USERNAME
    NEWUSER
    SQL> show err
    Errors for PROCEDURE DROP_USER_PROC:
    LINE/COL ERROR
    4/3 PL/SQL: SQL Statement ignored
    4/35 PL/SQL: ORA-00942: table or view does not exist

    Role based grants are not available within the stored procedures.
    Only explicit grants are recognized when compiling stored code.
    You need to grant select on that table to the user where you are creating this procedure.

  • Why dont we get a compilation error for converting a collection into array?

    Why don't we get a compilation error but get a runtime error while explicit casting of Object[] into a String[]?
    import java.util.Collection;
    import java.util.HashMap;
    import java.util.Map;
    public class SampleMap {
      public static void main(String[] args) {
        Map<Integer, String> temp = new HashMap<Integer, String>();
        temp.put(new Integer(1), "cat");
        temp.put(new Integer(2), "rat");
        Collection coll = temp.values();
        String[] arr = (String[]) coll.toArray();
        System.out.println(arr.length);
    } Thanks,
    Harish Srinivasan

    Infiniti wrote:
    Why don't we get a compilation error but get a runtime error while explicit casting of Object[] into a String[]?
    import java.util.Collection;
    import java.util.HashMap;
    import java.util.Map;
    public class SampleMap {
    public static void main(String[] args) {
    Map<Integer, String> temp = new HashMap<Integer, String>();
    temp.put(new Integer(1), "cat");
    temp.put(new Integer(2), "rat");
    Collection coll = temp.values();
    String[] arr = (String[]) coll.toArray();
    System.out.println(arr.length);
    } Thanks,
    Harish SrinivasanAn explicit cast's job is to tell the compiler that even though it cannot guarantee that the conversion will work, allow the code anyway and let the runtime handle an error if it occurs.

  • Compile error for 2.6.16.9

    I"m trying to compile my custom kernel 2.6.16.9 and I'm getting the following comile error:
    CC kernel/sched.o
    kernel/sched.c: In function 'sched_init':
    kernel/sched.c:6034: error: 'array' undeclared (first use in this function)
    kernel/sched.c:6034: error: (Each undeclared identifier is reported only once
    kernel/sched.c:6034: error: for each function it appears in.)
    kernel/sched.c:6034: error: 'struct runqueue' has no member named 'arrays'
    kernel/sched.c:6035: error: 'k' undeclared (first use in this function)
    make[1]: *** [kernel/sched.o] Error 1
    make: *** [kernel] Error 2
    I'm using the latest con kolivas patch with the kernel.  Any suggestions as to how to fix this?

    bostoniman wrote:Ok, I sort of feel like an idiot, but I cant seem to find 2.6.16 base on kernel.org.  It's been a while since I made my custom kernel, so am I ooking in the wrong place?  It  should just be on kernel.org, right?
    You were so close, it was just a few clicks away 
    It's in here: http://www.kernel.org/pub/linux/kernel/v2.6/

  • Compilation Error in basic java class

    Hello,
    I am newbie. And, I have developed following java classes. But the child class is results in error. Below is step by step event. What am I doing wrong?
    Step 1. Created a compiled class Shirt(parent). No issues
    public class Shirt {
    public int shirtID =0;
    public String description = "description required";
    // color codes
    public char colorCode = 'U';
    public double price = 0.0;
    public int quantityInStock = 0;
    // methods
    public void displayShirtInformation() {
       System.out.println("Shirt ID: " + shirtID);
       System.out.println("Shirt description:" + description);
       System.out.println("Color Code:" + colorCode);
       System.out.println("Shirt price: " + price);
       System.out.println("Quantity in Stock :" + quantityInStock);
    } // end of method
    } // end of class
    Step 2. Child class results in compilation error
    public class ShirtTest{
    public static void main (String[] args) {
         Shirt myShirt;
         myShirt = new Shirt();
         myShirt.displayShirtInformation();
    Step 3. Error show below
    C:Java>javac ShirtTest.java
    ShirtTest.java:4: cannot find symbol
    symbol  : class Shirt
    location: class ShirtTest
         Shirt myShirt;
         ^
    ShirtTest.java:5: cannot find symbol
    symbol  : class myShirt
    location: class ShirtTest
         myShirt = new myShirt();
                       ^
    2 errors Thanks D,

    Hello all. I am in a similar boat as far as getting the error message:
    javac ShirtTest.java
    ShirtTest.java:7: cannot find symbol
    symbol  : class Shirt
    location: class shirt.ShirtTest
            Shirt privShirt = new Shirt();
            ^
    ShirtTest.java:7: cannot find symbol
    symbol  : class Shirt
    location: class shirt.ShirtTest
            Shirt privShirt = new Shirt();
                                  ^
    2 errorsMy Shirt.java is as follows(which compiles just fine):
         1  package shirt;
         2
         3  public class Shirt {
         4
         5      private char colorCode = 'U';
         6
         7      public char getColorCode() {
         8          return colorCode;
         9      }
        10
        11      public void setColorCode (char newCode) {
        12          colorCode = newCode;
        13      }
        14
        15  }And my ShirtTest.java is as follows:
         1  package shirt;
         2
         3  public class ShirtTest {
         4
         5      public static void main (String args[]) {
         6
         7      Shirt privShirt = new Shirt();
         8      char colorCode;
         9
        10      privShirt.setColorCode('R');
        11      colorCode = privShirt.getColorCode();
        12
        13      System.out.println("Color Code: " + colorCode);
        14      System.out.println(" ");
        15
        16      privShirt.setColorCode('Z');
        17      colorCode = privShirt.getColorCode();
        18
        19      System.out.println("Color Code: " + colorCode);
        20
        21      }
        22
        23  }This is basically from the Fundamentals of the Java ^TM^ Programming Language SL-110-SE6 Student Guide(pages 9-12 & 9-13). We are working on Encapsulation if that makes any difference. Maybe it's just me but this book is not very new programmer/user friendly. At least in my opinion. I find it very frustrating that I can't even type in examples from the book and get them to work.
    I have tried the javac -cp . ShirtTest.java suggested here but get the same error. I have removed all *.class* files and still no luck.
    OS:
    uname -a
    SunOS 5.10
    JAVA:
    java -version
    java version "1.5.0_26"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_26-b03)
    Java HotSpot(TM) Server VM (build 1.5.0_26-b03, mixed mode)
    Anyway, any help would be appreciated.

  • Compilation error for First Servlet program

    Hi,
    I have go the following program from a book bu is giving me a long list of errors maybe I have no imported the proper package.
    import java.servlet.*;
    import java.io.*;
    public class Brat extends GenericServlet
    public void init (ServletConfig sc)
    throws ServletException
    System.out.println("I don wana wake up");
    public void service (ServletRequest req, ServletResponse res)
    throws ServletException
    try{
    ServletOutputStream sos=res.getOutputStream();
    sos.println("I dont wanna do anyhing");
    sos.close();
    catch(IOException ioe) {ioe.printStackTrace();}
    public void destroy()
    System.out.println("I dont wana go to bed");
    Its giving me symbol not resolve errors for the
    following symbols
    ServletException, ServletConfig, ServletResponse etc.
    How can I get around with these errors?
    Zulfi.

    Sorry, but i handled with Servlets some time ago.
    Servlets are not contained in the standard SDK.
    There has been a servlet development kit, but it seems not to exist any more. (I cant't find it)
    But servlet technology is included in java server pages and other web applications, so you have to download i.g. J2EE SDK and to install it, to find the classes you need.
    (It's included in other packages too, i think.)
    http://java.sun.com/products/jsp/download.html
    If you've installed the used packages, then include only the packages you need. (Doc's should help)
    Make shure that the packages are included in your classpath.
    (Have been the files server.jar and servlet.jar in "former" times.)
    Sorry, but i can't give more advice, 'cause im not up to date with this subject.
    Maybe someone else can help?
    Good luck again.

  • Compilation Error for userdisp.aspx page

    Any ideas what would cause this?
    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: CS1069: The type name 'UserProfileManager' could not be found in the namespace 'Microsoft.Office.Server.UserProfiles'. This type has been forwarded to assembly 'Microsoft.Office.Server.UserProfiles, Version=15.0.0.0,
    Culture=neutral, PublicKeyToken=71e9bce111e9429c' Consider adding a reference to that assembly.
    Source Error:
    Line 18: {
    Line 19: Microsoft.Office.Server.ServerContext cntx = Microsoft.Office.Server.ServerContext.GetContext(HttpContext.Current);
    Line 20: Microsoft.Office.Server.UserProfiles.UserProfileManager profileManager = new Microsoft.Office.Server.UserProfiles.UserProfileManager(cntx);
    Line 21: bool userExists = profileManager.UserExists(this.UserListForm.Item["Account"].ToString());
    Line 22:
    Paul Riker

    Hi Paul,
    Glad that you resolved the issue and thanks for sharing, this would be helpful to others who have the similar issue in the future.
    Thanks,
    Daniel Yang
    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]
    Daniel Yang
    TechNet Community Support

Maybe you are looking for

  • Low memory on iPad 2

    The diagnostics of my iPad 2 says that my iPad has low memory.however I have 21.5 GB available. Please help. Thanks

  • Bluetooth problems in IOS 5

    Help Since upgrading to IOS 5 I cannot tether my iPhone 3GS to my iPad 2. When I switch on bluetooth on both devices, neither device can discover each other. I had no problem prior to installing IOS 5. My iPhone will connect to my car bluetooth syste

  • How do you turn on the do not track feature?

    According to an article in USA Today, Firefox has a "do not track" feature that keeps third parties for knowing what sites I visit. How do you turn this on?

  • Single-click of home button does same as double-click

    When you double-click the home button it goes to the little music module with the play bar and "close" and "music" buttons. The problem I'm having is that it is going to the music module on a single-click...not every time, but often enough that it's

  • Simple qa- print another page

    i need to print another page afetr first,next  last page  only if i have a zfeidl = 1. how i can do it...