How to compile packages

hi,
i have a package structure
root
xml
xmltest.java
xmlans.java
tts
ttstxt.java
ttsans.java
ui
uitxt.java
uians.java
sampletest.java
how to compile all the above packages with a single javac.
javac -d ????

hi,
i have a package structure
root
xml
xmltest.java
xmlans.java
tts
ttstxt.java
ttsans.java
ui
uitxt.java
uians.java
ampletest.java
how to compile all the above packages with a single
javac.
javac -d ????It's not quite enough (or at least the right) information. Are you saying that you have classes xmltest and xmlans in package xml? And ttstxt and ttsans in package tts? And uitxt and uians in package tts? and sampletest in which package?
Java coding conventions say that class names should start with capitalized letters. Following conventions will make getting help easier.

Similar Messages

  • How to compile package which contain class outside the package

    I am writing a JDBC driver.
    I have the following package structure in the folder:
    MyDriver
        |_manager.jar
        |_com
               |_ jdbc
                       |_ HXDriver
                       |_ HXConnection
                       |_ HXResultSet
                       |_ HXStatementIn manager.jar, there is a remote object Interaface(Manager.java) which I need to use inside HXConnection.
    My question is how to compile(or/and how to set the classpath)so that I can compile the 4 classes inside jdbc package.
    I tried this:
    C:\MyDriver>javac -cp .;manager.jar com/hx/jdbc/*.java
    However, this does not work, compiler says it cannot find Manager
    Please help me.
    Cheers

    D:\380 Project\Driver>javac -cp .;manager.jar com\hx\jdbc\*.java
    com\hx\jdbc\HXConnection.java:21: cannot find symbol
    symbol  : class Manager
    location: class com.hx.jdbc.HXConnection
            private Manager manager;
                    ^
    com\hx\jdbc\HXStatement.java:18: cannot find symbol
    symbol  : class Manager
    location: class com.hx.jdbc.HXStatement
            private Manager manager;
                    ^
    com\hx\jdbc\HXStatement.java:20: cannot find symbol
    symbol  : class Manager
    location: class com.hx.jdbc.HXStatement
            public HXStatement(Manager manager){
                               ^
    com\hx\jdbc\HXConnection.java:41: cannot find symbol
    symbol  : class Manager
    location: class com.hx.jdbc.HXConnection
                            manager = (Manager)reg.lookup("manager");
                                       ^

  • How to compile package file?

    I have an actionscript file,it has a package name,it locate C:\demo directory,like follows:
    package demo{
    import flash.display.*;
    public class ABC extends Sprite{
      public function ABC(){
    Then I compile above code like following command,but it raise following error:
    C:\>mxmlc demo\ABC.as
    Loading configuration file C:\sdk\frameworks\flex-config.xml
    C:\demo\ABC.as: Error: A file found in a source-path must have the same package structure '', as the definition's package, 'demo'.
    Where is wrong above command?
    Thanks

    Set source-path, e.g.
    mxmlc demo\ABC.as -source-path=.
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • How to compiling package with j2sdk

    can I just use one command line to compilng a package under J2SDK?

    I'm sure I'm not really doing you any favours here since wherever you would go otherwise (like a tutorial) would teach you much more than the simple answer to your question but, if you'll promise (no crossed fingers) to go and look at the tutorial mentioned by jesperdj then I'll tell you...
    javac dir1\*.java dir1\dir1a\*.java dir2\*.javai.e. list all the directories you want compiled, with spaces in between.
    Chris.

  • How to compile and run package programs in Java

    Hi,
    I want to know how to compile and run the package programs in Java using -d. instead of creating the package folder manually.
    eg:
    package Test;
    class test1
    public void disp()
    //Any code;
    I want to compile this without creating the folder ' Test ' manually. that is if we use -d with javac the Test folder will be created automatically. I need the format of -d
    could anyone please help me.
    Thanks in Advance ,
    Ambika

    My program Test.java in F:\Tomcat5\webapps\Ambika\WEB-INF\Classes. I compiled in the format below. I got like this. What should I do for this? But yesterday I compiled like this only, It compiled and the folder com\cert\Test.class is created. Today again I compiled the pgm after deleting the already created folder 'com\cert', I got the error like this.
    I've given my pgm and the thing I've got when I compiled it.
    Test.java
    package com.cert;
    public class Test
         public void display()
              System.out.println("Hai");
    F:\Tomcat5\webapps\Ambika\WEB-INF\Classes>javac -d F:\Tomcat5\webapps\Ambika\WEB-INF\Classes\Test.java
    javac: no source files
    Usage: javac <options> <source files>
    where possible options include:
    -g Generate all debugging info
    -g:none Generate no debugging info
    -g:{lines,vars,source} Generate only some debugging info
    -nowarn Generate no warnings
    -verbose Output messages about what the compiler is doing
    -deprecation Output source locations where deprecated APIs are u
    sed
    -classpath <path> Specify where to find user class files
    -cp <path> Specify where to find user class files
    -sourcepath <path> Specify where to find input source files
    -bootclasspath <path> Override location of bootstrap class files
    -extdirs <dirs> Override location of installed extensions
    -endorseddirs <dirs> Override location of endorsed standards path
    -d <directory> Specify where to place generated class files
    -encoding <encoding> Specify character encoding used by source files
    -source <release> Provide source compatibility with specified release
    -target <release> Generate class files for specific VM version
    -version Version information
    -help Print a synopsis of standard options
    -X Print a synopsis of nonstandard options
    -J<flag> Pass <flag> directly to the runtime system
    F:\Tomcat5\webapps\Ambika\WEB-INF\Classes>
    Plz help me.
    thanks in advance
    Ambika

  • How to compile all package body using sqlplus ?

    hi all,
    How to compile all package body using sqlplus ?
    Please help.
    Amy

    dbms_utility.compile_schema will compile all the invalid objects in a schema, including the invalid package bodies. If you only want to compile the invalid package bodies, you could write your own dynamic SQL stored procedure to do that using the user_source view, but that's a lot more effort for a very minimal benefit.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • 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.

  • 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!

  • How to compile class and package

    I am trying to compile the following 3 files.
    http://www.cs.umbc.edu/~stephens/crypto/CIPHERS/ElGamal.java
    http://www.cs.umbc.edu/~stephens/crypto/CIPHERS/BinaryHeap.java
    http://www.cs.umbc.edu/~stephens/crypto/CIPHERS/DLP.java
    I tried compiling them with a variety of ways but still cannot figure out the correct way of doing it.

    I finally figured out how to compile them. I had to change files so that I don't have to compile with a package.
    Message was edited by:
    webweaver

  • 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 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 compile a package with classess

    Hi,
    Can any one tell me , how to compile a package ?
    Actually, i have three classes under the package named as linklist.
    i am unable to compile the classes under this package ? its always raising errors. saying that the package does not exist.
    Can any one tell me, why it is like this ?
    thanks in advance

    Hi,
    Can any one tell me , how to compile a package ?I'll try.
    Actually, i have three classes under the package named
    as linklist. Okay, so you have the package statement at the top of each class, right?
    And the 3 classes reside in a folder named linklist?
    Okay, if you do, while in the folder above linklist, do:
    javac linklist/*.java (using the appropriate slash)
    Did it work?

  • 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 to compile packge inside procedure which uses this package

    ORACLE 10g, 11g
    CREATE OR REPLACE PACKAGE PKG_TEST_COMMIT
    PROCEDURE Insert_into_table_T1;
    PROCEDURE Update_table_T1;
    END PKG_TEST_COMMIT;
    CREATE OR REPLACE PROCEDURE PROC_TEST_COMMIT As
    Begin
    PKG_TEST_COMMIT. Insert_into_table_T1; --insert data into table T1
    EXECUTE IMMEDIATE 'DROP table T1';
    EXECUTE IMMEDIATE
    'create table T1 as select ''1'', ''d'', ''s' from DUAL'; -- now package PKG_TEST_COMMIT in uncompiled stage
    -- compile package
    DBMS_DDL.alter_compile('PACKAGE', 'OWNER', 'PKG_TEST_COMMIT');
    PKG_TEST_COMMIT. Update_into_table_T1;
    End PROC_TEST_COMMIT;
    When I try to run PKG_TEST_COMMIT I’Ve got an error: can’t lock the package.
    I tried to create separate procedure for compilation, but result is the same.
    If I finish PROC_TEST_COMMIT before compiling, then compile – OK.
    Is there is a way to compile package inside the procedure?

    I need to automate the process which first call some procedure from the package, then invalidate this package by dropping and recreating the table (I didn't create the code, but I can see thepoint init - this is the farstest way to populate huge table) and then call another proc from the same package (using table just cretated).
    Otherwise I need human attention to this process. If it is imposible I can substitude "drop table and create table" for truncate and insert", but I am afraid it will take too long.

  • How to Compile the PL/SQL Package/ Procedure using shell script

    Hi,
    I tried to Compiled the shell script but I am facing some error.
    Can any one help me how to compile the PL/SQL shell script without error. Awaiting for your valuable reply.
    Thanks,
    Arun Prakash

    user8726849 wrote:
    PL/SQL shell script without errorWhat's a PL/SQL shell script?
    Can you please post exactly what you are trying to do (As in the actual code that you are executing and its output)? Also please post it in \ tags (See FAQ).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • DELETING MUSIC FROM YOUR ITUNES LIBRARY AND COMPUTER

    I USED TO DELETE SONGS AND IT WOULD ASK ME IF I WANTED TO KEEP THE FILE OR MOVE TO TRASH, NOW IT DOESNT ASK ME THAT. WHEN I TRY TO DELETE IT JUST TELLS ME IF I DELETE IT WILL BE REMOVED FROM ALL IPODS, ETC. AND IF I DELETE IT IT DOESNT SHOW UP IN MY

  • ECR/ECO problem with automated transactions

    Hi Friends, I have problem with automated close of ECR. Description: I have change number with one object - Inspection Plan. In CC32 when "Incorrect Change" is set and I click "Erro Corrected" - nothink happen (it should show popup with information t

  • GDR3 (Update 3) for Lumia 520

    Is the Windows Phone Update 3 (GDR3) released for Lumia 520 in India till now? It is showing as the latest version in Microsoft Website but I havenot received till now. my phone is not developer unlocked. Some days ago I received a update notificatio

  • Problems with searching in this forum

    Is anyone else finding that the searching in this forum is no longer bringing back the same information that it used to? The problem seems to have started in the last few days. Any advice would be appreciated. I hope Sun fixes this!

  • Edit options on java me sdk 3.0

    Hi guys, maybe I overlooked it but really, I can't find the edit options on this ide. All I want is to change the tab button behavior from spaces to actual tabs, I hate spaces xD Regards.