New programmer- how do i compile package members?

im learning java using sams teach yourself java in 21 days. its really good compared to other ive tried but i was having a problem on day 6. i couldnt compile package members successfully. i didnt undestand the book instruction so instead of compiling this way:
C:\noam\java> c:\java\jdk1.5.0_06\bin\javac classname.java
i did it this way:
C:\java\noam\org\cadenhead\ecommerce> c:\java\jdk1.5.0_06\bin\javac classname.java
this worked but other classes inside the package could not recognize this class, though classes outside the package could.
how do i compile package members?
thnx!

I solved the problem...! I have no idea how but it worked this time!
thnx anyway for everybody who tried to help!

Similar Messages

  • How to code/compile/package MDB without Sun IDE?

    Hi
    I am using Eclipse 3.01 so not able to levelage the native support from Sun's IDE.
    Can anyone please point me to some useful materials? I want to know:
    1. How to compile? What are the jars required and where to find them.
    2. How to package and deploy to SunOne 7.
    3. How to run simple JMS producer and consumer as a standalone java client.
    Thanks,
    Jirong

    Does SunOne 7 comes with a deployment tool like the
    one with J2EESDK 1.4? Can I use that one to package
    the web and ejb applications?Yes, Sun One has a deploytool for this purpose. Take a look into the J2EE tutorial available on the site, and you will find deplytool used everywhere.
    $ Carol.

  • How can I compile an entire package  ??

    Hi
    I've downloaded about 20 .java files (these files build a package) and I want to compile them now with javac. Compiling the files one after the other produces unfortunately many errors. The owner of the code told me I've to "compile the entire package" and I should use Borland's JBuilder for that. Installing JBuilder makes trouble so I want to compile the code with javac.
    Do you know how I can compile an entire package with javac ?
    javac *.java doesn't work (produces lots of errors).
    Thanks in advance,
    Marcel

    Hi
    I've downloaded about 20 .java files (these files
    build a package) and I want to compile them now with
    javac. Compiling the files one after the other
    produces unfortunately many errors. The owner of the
    code told me I've to "compile the entire package" and
    I should use Borland's JBuilder for that. Installing
    JBuilder makes trouble so I want to compile the code
    with javac.
    Do you know how I can compile an entire package with
    javac ?
    javac *.java doesn't work (produces lots of errors).
    I doubt it.
    "javac *.java" will compile any dependent class files in the same package.
    There are several possibilities.
    1. There is more than one package.
    2. The class path is wrong. (The class path must have the root of the directory and obviously the java files must exist in a directory tree that mirrors the package.)
    3. Something is wrong with the java files. Or perhaps something is missing.

  • How do i get error after compiling package

    Hi ,
    i am compiling some packages by sys schema of hr schema as
    alter package hr.example compile package
    but it shows compiled with error
    how can i see that errors as i dont know the password of hr schema ..
    Thanks in advance

    First of all you should not be using SYS to compile anything ... create a DBA account.
    Second there is not need to be HR to see the errors ... type "SHO ERR" and you should see the errors and if that does not work there is always the simple
    SELECT * FROM dba_errors;In the future please do not post questions without full version number and, when possible, screen scrapes (cut and paste) so we can see what you are doing.

  • How to turn off validation when compiling Packages...!

    Hello,
    How do I turn off the validation when compiling Packages in SQLPLus?
    Thanks
    Rao

    I'm guessing at what you're after here, but maybe this?
    ME_XE?create or replace procedure one
      2  as
      3  begin
      4     null;
      5  end;
      6  /
    Procedure created.
    Elapsed: 00:00:00.73
    ME_XE?set feedback off
    ME_XE?create or replace procedure one
      2  as
      3  begin
      4     null;
      5  end;
      6  /
    Elapsed: 00:00:00.61

  • How to cross compile 32bit packages on Arch64 via distcc?

    Is there a way to cross compile 32 bit packages on Arch64 via distcc?
    Use 32bit chroot on Arch64, maybe?
    If anyone has done such things, please tell me how.
    Thank you very much!

    Themaister wrote:http://wiki.archlinux.org/index.php/Arc … bit_system <--- good place to start
    That's exactly what I followed to make a 32bit chroot on a 64bit machine. Then just use pacman inside the chroot to install the base-devel group, and you can start compiling packages from AUR, exactly the same way as you usually do. That's what I do (I have eee laptop on which it's pain to compile, so I use my 64bit machine for compiling). Then just transfer the newly created packages to the 32bit machine and install...
    I don't use distcc for that, so can't help you with this, sorry.

  • Error when Compiling package header and body - how change pkb file associat

    Hi everyone,
    it has already been noticed elsewhere (in the thread "Compiling package header and body" of Jan 12, 2010) that the compilation of package scripts sometimes fails (apparently because of a sqldeveloper bug) when the script contains the terminating slash /.
    Is this bug still open?
    Next question: In the above mentioned thread it is recommended as workaround to change the corresponding file type association from pl/sql to sql. I would like to do that; I know the place in the preferences dialog, but most of the associations there seem to be hard coded and cannot be changed.
    I would appreciate any ideas!
    Thanks in advance,
    user8632123.

    For the workaround: you'd have to change the file's extension, not the association (to e.g. .sql).
    Have fun,
    K.

  • How do I compile a package?

    JAVA QUESTION: When I compile a package do I execute this with javac (the name of the package).java or what?

    Greetings,
    I have a question that relates here... I have been trying to compile a program that uses several packages I have created in an IDE by hand. In the IDE they compile fine, or if I leave out the package name/imports and have all the files in the same dir, but if I try it by hand with all the files in their dirs javac complains it can't find them.
    I have the files in individual folders by package, which works with the ide. Dir structure/package names are roughly as so:
    MyProj (package MyProj)
    -gui (package MyProj.gui)
    --blue (package MyProj.gui.blue)
    --green (package MyProj.gui.green)
    -units (package MyProj.units)
    --foot (package MyProj.units.foot)
    etc.
    I have appropriate import's for each package file, and I am trying to compile from the MyProj folder, where the main file is located.
    My guess is that I need to have all the folders of the various packages in the classpath, or they all need to be sent to javac, which seems really clumsy to me, not to mention wrong - see the quote from the Tut below...
    My path and classpath seem to be all right - I can happily compile stuff, just not when they are in packages :( Actually, come to think, I have the classpath listed with '.\' at the end, which I thought would've been sufficient for javac to workout where the other dirs are.
    From Java tut:Managing Source and Class files: "From the top- level directory, the compiler and the interpreter can construct the rest of the path, based on the package and the class name for the class"
    What am I doing wrong, or is my guess correct? Is there any easier way of compiling packages by hand or do I really need an IDE? Having twenty or thirty sources and classes in one dir doesn't really appeal...
    And does anyone know of a good ide in Linux (which more or less sparked this issue), which I am just learning to love...
    Any help is appreciated.
    Cheers

  • Compiling packages

    Hi all,
    I have problem on compiling packages.
    Here is the structure of the directory
    1:path is c:\java
    2:Created a directory inside java folder called test1 as parent directory,then I created a new folder calledd test2 inside the test1.(c:\java\test1\test2).
    3. I have created java class called House.java in which I have declared a package
    package  test1.test2;4.I have created the main class HouseMain.java with
    code]package test1.test2;
    5.I have copied all the java class in the folder test2.
    I cant get it compiled even after setting the classpath.
    Can anyone help me please how to compile ?.
    Thank you

    Hi all,
    I have problem on compiling packages.
    Here is the structure of the directory
    1:path is c:\java
    2:Created a directory inside java folder called
    test1 as parent directory,then I created a new
    folder calledd test2 inside the
    test1.(c:\java\test1\test2).
    . I have created java class called House.java in
    which I have declared a package
    package  test1.test2;4.I have created the main class HouseMain.java with
    code]package test1.test2;I have copied all the java class in the folder
    test2.
    I cant get it compiled even after setting the classpath.
    Can anyone help me please how to compile ?.
    Thank youTry this:
    Navigate to c:\java and type exactly this:
    javac -classpath . -d . test1\test2\*.javaNote the "dot" after both -classpath and -d. Read the javac docs to make sure you understand what those mean.
    You should see all the .class files in the same directory as your .java files. (Not the best idea, but easy for now.)
    To run, type this:
    java -classpath . test1.test2.HouseMain%

  • Compiling packages in linux

    Hi I have been struggling with this for the last three days. I have tried multiple searches in the forums but cannot make head nor tail of setting the classpath in linux when compiling a package.
    in the following directory "/home/tamtam/Java/Course/Unit4/act4_1"
    I have two classes Greeting.java and Main.java
    Greeting.java compiles successfully and creates Greeting.class
    I cannot compile Main.java which uses the class Greeting.
    Both have package act4_1 as the first line in the code.
    I know I need to set the classpath but have been unable to do so. Where is the starting directory.
    I havenot got a clue where to start.
    I get error message
    Main.java:15: cannot resolve symbol
    symbol : class Greeter
    location: class act4_1.Main
    Greeter greeter = new Greeter();
    Any help would be greatfully appreciated.
    tamtam

    I am completely new to Linux and just started with Java.
    Does anyone know a link to a step by step guide.
    in C++ say I had two files in the same directory "Greetings.cpp" and "Main.cpp" and there coresponding header files. Main.cpp uses an instance of the class Greeting. I would use include "Greeting.cpp" in Main.cpp so that the class Greeting would be available.
    In Java I have two files, Greeting.java and Main.java. Both have package act4_1 at the top of the file.
    Main.java
    package act4_1;
         Activity 4.1
         Main.java
         Runs Greeting.java
    import java.io.*;
    public class Main
         public static void main(String[] args) throws IOException
              Greeter greeter = new Greeter();
              greeter.Run();
    }Greeting.java
    package act4_1;
         Activity 4.1
         Greeter.java.
    import java.io.*;
    public class Greeter {
         public void Run() throws IOException
              System.out.println("Hello from TamTam");
    }How exactly do I get Main.java to accept the class Greeter.
    The path is as above.

  • Compiling packages or procedures

    Hello,
    I am compiling a package , procedures etc. The query comes back with invalids. I have show error. How do I retrieve more detail information about why the package/procedure/view are invalid?
    DECLARE
                    v_status       VARCHAR2(10);
                    v_cmd          VARCHAR2(150);
                    Cursor rw_objects
                     IS
                      Select object_name,object_type,status,owner
                      From dba_objects
              WHERE UPPER(object_type) IN ('VIEW','PROCEDURE','FUNCTION','PACKAGE', 'PACKAGE BODY','TRIGGER','SYNONYM')
              AND owner = UPPER('&&DW_SCHEMA')
                      AND status = 'INVALID';
             BEGIN
                 FOR  t IN rw_objects
                           LOOP
                                  IF  t.object_type ; IN ('SYNONYM','VIEW','TRIGGER','PROCEDURE','FUNCTION') THEN
                                      v_cmd  := 'ALTER ' || t.object_type || ' ' || t.owner||'.'||t.object_name || ' COMPILE ';  
                                     execute immediate v_cmd;
                         ELSIF
                                     t.object_type ; = ('PACKAGE') THEN                                 
                                     v_cmd  := 'ALTER  PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE PACKAGE';  
                                     execute immediate v_cmd;  
                                  ELSIF                               
                                      t.object_type ; = ('PACKAGE BODY') THEN                                 
                                      v_cmd  := 'ALTER PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE BODY';  
                                     execute immediate v_cmd;  
                                    dbms_output.put_line( rpad( t.object_type || ' ' || t.object_name, 50, ' ' ) || ' VALID ');
                                  END IF;
                    END LOOP;
    END;
    SELECT   object_name, object_type, status                    
                   FROM  dba_objects
                   WHERE STATUS = 'INVALID'     
                   AND UPPER(object_type) IN ('VIEW','PROCEDURE','FUNCTION','PACKAGE', 'PACKAGE BODY','TRIGGER','SYNONYM')
                   AND owner = UPPER('&&DW_SCHEMA')
               ORDER by object_type;
    show errors; Here are the results.
    OBJECT_NAME                                                                OBJECT_TYPE         STATUS                            
    PM206                                                                           PACKAGE BODY        INVALID
    DW_BE_DFACT_TB_REFRESH_HANDLER                            PACKAGE BODY        INVALID
    DW_BE_DFACT_TB_INITIAL_HANDLER                               PACKAGE BODY        INVALID
    CHART_HANDLER                                                            PACKAGE BODY        INVALID
    DW_CRS_HANDLER                                                          PACKAGE BODY        INVALID
    DELETE_UPDATE_PROC                                                   PROCEDURE           INVALID
    DW_CBS_PROC                                                              PROCEDURE           INVALID
    DW_GL_DFACT_VW                                                           VIEW                INVALID
    8 rows selected.
    No errors.

    too bad COPY & PASTE are broken for you!
      1  DECLARE
      2                  v_status       VARCHAR2(10);
      3                  v_cmd          VARCHAR2(150);
      4                  Cursor rw_objects
      5                   IS
      6                    Select object_name,object_type,status,owner
      7                    From dba_objects
      8            WHERE UPPER(object_type) IN ('VIEW','PROCEDURE','FUNCTION','PACKAGE', 'PACKAGE BODY','TRIGGER','SYNONYM')
      9            AND owner = UPPER('&&DW_SCHEMA')
    10                    AND status = 'INVALID';
    11           BEGIN
    12               FOR  t IN rw_objects
    13                         LOOP
    14                                IF  t.object_type ; IN ('SYNONYM','VIEW','TRIGGER','PROCEDURE','FUNCTION') THEN
    15                                    v_cmd  := 'ALTER ' || t.object_type || ' ' || t.owner||'.'||t.object_name || ' COMPILE ';
    16                                   execute immediate v_cmd;
    17                       ELSIF
    18                                   t.object_type ; = ('PACKAGE') THEN
    19                                   v_cmd  := 'ALTER  PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE PACKAGE';
    20                                   execute immediate v_cmd;
    21                                ELSIF
    22                                    t.object_type ; = ('PACKAGE BODY') THEN
    23                                    v_cmd  := 'ALTER PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE BODY';
    24                                   execute immediate v_cmd;
    25                                  dbms_output.put_line( rpad( t.object_type || ' ' || t.object_name, 50, ' ' ) || ' VALID ');
    26                                END IF;
    27                  END LOOP;
    28* END;
    29  /
    old   9:           AND owner = UPPER('&&DW_SCHEMA')
    new   9:           AND owner = UPPER(' USER1')
                                  IF  t.object_type ; IN ('SYNONYM','VIEW','TRIGGER','PROCEDURE','FUNCTION') THEN
    ERROR at line 14:
    ORA-06550: line 14, column 49:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( * @ % & = - + < / > at in is mod remainder not rem then
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset member submultiset
    The symbol ";" was ignored.
    ORA-06550: line 18, column 48:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( * @ % & = - + < / > at in is mod remainder not rem then
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset
    ORA-06550: line 22, column 49:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( * @ % & = - + < / > at in is mod remainder not rem then
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset
    SQL>

  • How to install/add packages to org.apache

    hi everyone!
    i'm pretty new with Java and i wanted to know how to install a package i downloaded from "http://www.apache.org/dist/jakarta/". the package name is poi and i have no clue how to do it so i'll be able to import some classes from it in my code... (i tried to just paste it the file src.zip at the location org/apache but it didn't worked)
    thanks for you help,
    shimon ;)

    "install" isn't really the right word. You'll have to learn to think differently about JARs in Java. because you don't "install" them and your apps don't get access to them via the operating system. They're more like dynamic link libraries or DLLs in Windows parlance.
    What you should do is figure out what a standard directory structure for all your applications will be, maybe something like this:
    application
    +
    +------source (put your .java source files in their package structure under here)
    +------lib (put your 3rd party JAF files under here)
    +------classes (compile your .class files to this directory)
    So in this case you'd put the POI JAR under /lib for your project. Tell Eclipse that /source is where it should expect to find all the .java file, that /class is the output directory for all compilations. Right click on the project folder, select "Properties", and add all the JARs to the build class path. Then you'll be all set with Eclipse.
    Tell Eclipse that application is the root of your project. Tell

  • How is the 'import-packages' information saved in the database, and how long?

    Hello,
    I am  developping a ECM Connector for Adobe LiveCycle ES, which is a customized component.
    1 - Who should I contact to have some specific support  ?
    There is no detailed information yet on this on the adobe site  (http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/js/html/w whelp.htm?href=000931.html&accessible=true) .
    If you  think that I should address my problem to another department of Adobe, please  tell me which department?
    I give you another description of my problem. In fact, I have  been investigating on it.
    2 - If I  put this in my component.xml file, in step  1:
    <component-id>com.rsd.adobe.livecycle.RSDFoldersConnector</component-id>
    <version>1.0</version>
    <import-packages><package  version="1.0">com.rsd.simpleApiFolders</package>  </import-packages>
    If I change the  version to 1.1 and remove the  'import-packages' (in step 2) , will the new component need the  com.rsd.simpleApiFolders package. It seems that is still needs it.
    3 - How is the  'import-packages' information saved in the  database, and how  long?
    In  fact, on thursday, I used 'import-packages'  to make a test. And since them, I  can not deploy any of my components.
    LiveCycle throws a  ClassNotFoundException.
    ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException:  Internal error.
    [java] at  com.adobe.idp.dsc.registry.component.impl.ComponentRegistryImpl$6.doInTransaction(Compone ntRegistryImpl.java:338)
    ... Caused  by: java.lang.ClassNotFoundException: http-0.0.0.0-8080-1Class name  com.rsd.simpleApiFolders.Context from package com.rsd.simpleApiFolders not found.
    [java] at  com.adobe.idp.dsc.DSContainerSearchPolicy.searchClassUsingParentFirst(DSContainerSearchPo licy.java:234)
    Thank you in advance
    Regards.

    1 - Who should I contact to have some specific support  ?
    That would depend on your Adobe support contract and if your organization has a TAM assigned.  You should check with your organization's Adobe contact and see what support options your organization has purchased.
    Having said that, this forum has a few people that may be able to help (but the forum does not have a SLA associated with it)
    2 - If I  put this in my component.xml file, in step  1:
    <component-id>com.rsd.adobe.livecycle.RSDFoldersConnector</component-id>
    <version>1.0</version>
    <import-packages><package  version="1.0">com.rsd.simpleApiFolders</package>  </import-packages>
    If I change the  version to 1.1 and remove the  'import-packages' (in step 2) , will the new component need the  com.rsd.simpleApiFolders package. It seems that is still needs it.If your component class needs the simpleApiFolders class then yes, you still need it.  Think of import-packages like a class-path statement (but with packages and not jars).  Its not physically moving the package into your application, but allowing you to access it from another container.
    3 - How is the  'import-packages' information saved in the  database, and how  long?
    As far as I know they are not imported into the database. As I stated above, I believe that the import-packages just allows you to point to classes that are in the app server's classpath, but are not physically in you component jar file.  As long as that class is in the app server class-path (or in the Adobe EAR file) then you should be able to access it.  Is the jar file containing the simpleApiFolders class in the app server's lib directory?

  • How to remove the default members of a dimension from the control table?

    Hi all,
    I am new to hyperion FDM 11.1.1.2.0.0 .
    When I navigate to Metadata>Control Tables and try to delete the default memmbers
    for the dimension like category and period i got the following error.
    Error: Period( 8/31/2009 ) is an active Global or Local Period and cannot be deleted.
    Then again i unchecked active checkbox for that dimension from Hyperion Essbase Integration Setup of Workbench Client.
    After doing that i got the following error
    Error: Unable to retrieve target System Data.
    Can anyone tell me how to remove the default members of a dimension from the control table?
    Thanks

    Create a new record for the table.
    Go change the POV to the new record.
    Return to the control table and delete the default record.

  • I lost my iPhone. i got a new one, how can i back up all the contacts i had in the old one (iPhone 4S).

    i lost my iPhone. i got a new one, how can i back up all the contacts i had in the old one (iPhone 4S). When i go to Itunes it start as a new iphone.

    Contacts are not a part of back up.
    Contacts are sync with a compatible programme on your computer depending on your operating system (Windows or Mac). For example, Microsoft Outlook (for both Windows and Mac), Windows Contacts (for Windows) and Addressbook (for Mac).
    Or contacts are also backed up in iCloud (depending if you chose to do so).
    So, sync back the contacts from any of these programmes. If you have not made a backup of your contacts in any of these progammes, then they are gone.
    http://support.apple.com/kb/HT1296

Maybe you are looking for

  • IPhoto Won't Import JPGs from Photoshop CS2

    Hello, I find that if I save a JPG from PS CS2, it will open in Preview, and other applications, but will not import to iPhoto. I have read the other posts here on this topic, but they have not addressed my experience. For me, it does not matter whet

  • Adobe photoshop CC stopped working !

    Hi I have problem with crash that happend everytime i want use adobe photoshop cc 14.0.0.0 (64bit). Error : adobe photoshop cc stopped working log error : Faulting application name: Photoshop.exe, version: 14.0.0.0, time stamp: 0x5176451b Faulting mo

  • Delivery Item Category for Batch Split

    Dear All, Referring to Stock Transfer Order ME21N --> VL10I --> Vl02N --> PGI --> MIGO During delivery we select multiple batches through Batch Split. In my Development server the system determines Item Cat as NLN (NLNORMCHSP = NLN) In my Quality ser

  • Edit JTable Date Cell, press Enter, the Time Cell changes to GMT time!

    Has anyone seen this strange behavior? I try to edit a Date Cell in JTable (orig. value 10/02/2000) and change it to (10/03/2000), I press Enter. But, the value of my Time Cell in the next column, same row which I never edited (orig. value 00:05:00)

  • Invalid receiver channel

    Hi All, often i am getting the below error for the communication chanel com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error: invalid receiver channel 'e3758e649d443e298f42b90e3c1bfb71' it is getting solved when i stop and star