Java Program in a Package....very urgent

Hi Friends,
I am trying to compile a program CPTest1.java and CPTest2.java which are in the package G:\com\bofa\pbes\cedrelay i.e(com.bofa.pbes.cedrelay).But these 2 classes are making reference to one more class by name CPTest3.java which is in H:\Ced_Siebel\temp\cmwCall\com\bofa\crme\ccs. As you can see it is in different package,ofcourse different drive(H).So when I try to compile these programs using command
javac -classpath \com\bofa\crme\ccs CPTest1.java CPTest2.java
I get following error..
CPTest2.java:3: package com.bofa.crme does not exist
import com.bofa.crme.ccs;
^
CPTest2.java:13: cannot find symbol
symbol : class CPTest3
location: class com.bofa.pbes.cedrelay.CPTest2
CPTest3 cpt2 = new CPTest3();
^
CPTest2.java:13: cannot find symbol
symbol : class CPTest3
location: class com.bofa.pbes.cedrelay.CPTest2
CPTest3 cpt2 = new CPTest3();
^
3 errors
Please guide me friends.Though these are very basic things .Please help me Friends....

By flagging your question as urgent, you're implying that your time is more valuable than those who answer questions here. Also, it might lead one to think that you're under the impression that your question is more important than other people's questions.
IMHO, both are not true. Perhaps you'll consider this when posting (here) again.
Good luck.

Similar Messages

  • How to invoke a Java Program from Oracle 10g?(uRGENT)

    Hello.
    I've a query, that i have a program, that basically retreives the records from the
    oracle table and then parser this information and then insert the values in corresponding database base tables. I want that, whenever the new program is inserted, a Trigger should fire and pass the most recently entered record to the Parser Program, means
    1) Firing a Trigge
    2)Storing the most latest data and pass it to the Parser PROGRAM
    Can someone tell me how to do this? How to invoke a Java Program from within the database? Please if anyone has examples provide me. Its very urgent and tell me what is the basic mechanism.
    Thankyou.
    Ben

    With Java Stored Procedures Java may be caleed from a database.
    http://www.oracle.com/technology/tech/java/jsp/index.html

  • Java Program in a package

    Hi Friends,
    I am trying to compile a program CPTest1.java and CPTest2.java which are in the package G:\com\bofa\pbes\cedrelay i.e(com.bofa.pbes.cedrelay).But these 2 classes are making reference to one more class by name CPTest3.java which is in H:\Ced_Siebel\temp\cmwCall\com\bofa\crme\ccs. As you can see it is in different package,ofcourse different drive(H).So when I try to compile these programs using command
    javac -classpath \com\bofa\crme\ccs CPTest1.java CPTest2.java
    I get following error..
    CPTest2.java:3: package com.bofa.crme does not exist
    import com.bofa.crme.ccs;
    ^
    CPTest2.java:13: cannot find symbol
    symbol : class CPTest3
    location: class com.bofa.pbes.cedrelay.CPTest2
    CPTest3 cpt2 = new CPTest3();
    ^
    CPTest2.java:13: cannot find symbol
    symbol : class CPTest3
    location: class com.bofa.pbes.cedrelay.CPTest2
    CPTest3 cpt2 = new CPTest3();
    ^
    3 errors
    Please guide me friends.Though these are very basic things .Please help me Friends....

    You don't really understand the classpath concept, do you?
    Include the directories that hold the packages (G:\;H:\Ced_Siebel\temp\cmwCall\), not the ones that contain the classes.

  • Program for conversion please very urgent

    program to convert numberic to string like 356 to thre hundred and fifty six...and 1020 to to one thousand and twenty

    This one works for upto 4 digits
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    public class DigitsToWords {
         public static void main(String[] args) throws IOException {
               BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
               String inDigits ;
               System.out.print("Enter some number: ") ;
               inDigits = in.readLine();
               String inWords = parseToWords(inDigits);
               System.out.println(inWords);
               in.close();
         public static String reverseString(String str) {
              String reverse = "";
              int length = str.length();
              for (int i = length-1; i >= 0; i--) {
                   reverse+= str.charAt(i);
              return reverse;
         public static String parseToWords(String inDigits) {
              String inWords = "";
              String reversed;
              String word = "";
              reversed = reverseString(inDigits);
              for (int i = 0; i < reversed.length(); i++) {
                   char digit = reversed.charAt(i);
                   if(i == 1) {
                        switch(digit) {
                             case '1':
                                  switch (reversed.charAt(i-1)) {
                                       case '0':
                                            word = "ten";
                                            break;
                                       case '1':
                                            word = "eleven";
                                            break;
                                       case '2':
                                            word = "twelve";
                                            break;
                                       case '3':
                                            word = "thirteen";
                                            break;
                                       case '4':
                                            word = "fourteen";
                                            break;
                                       case '5':
                                            word = "fifteen";
                                            break;
                                       case '6':
                                            word = "sixteen";
                                            break;
                                       case '7':
                                            word = "seventeen";
                                            break;
                                       case '8':
                                            word = "eighteen";
                                            break;
                                       case '9':
                                            word = "nineteen";
                                            break;
                                  break;
                             case '2':
                                  word = "twenty";
                                  break;
                             case '3':
                                  word = "thrity";
                                  break;
                             case '4':
                                  word = "fourty";
                                  break;
                             case '5':
                                  word = "fifty";
                                  break;
                             case '6':
                                  word = "sixty";
                                  break;
                             case '7':
                                  word = "seventy";
                                  break;
                             case '8':
                                  word = "eighty";
                                  break;
                             case '9':
                                  word = "ninty";
                                  break;
                   else {
                        switch(digit) {
                             case '1':
                                  word = "one";
                                  break;
                             case '2':
                                  word = "two";
                                  break;
                             case '3':
                                  word = "three";
                                  break;
                             case '4':
                                  word = "four";
                                  break;
                             case '5':
                                  word = "five";
                                  break;
                             case '6':
                                  word = "six";
                                  break;
                             case '7':
                                  word = "seven";
                                  break;
                             case '8':
                                  word = "eight";
                                  break;
                             case '9':
                                  word = "nine";
                                  break;
                   switch (i) {
                   case 2:
                        word += " hundred"     ;
                        break;
                   case 3:
                        word += " thousand"     ;
                        break;
                   default:
                        break;
                        inWords = word + " " + inWords;
              return inWords;
    }

  • Error in DBMS_SQL Package (Very Urgent)

    Hi Fellows,
    I have created a procedure with two parameters (eg. disabletrigger(owner, tablename). I have used DBMS_SQL Package. The procedure has compiled successfully but when I run this procedure it returns this message.
    ERROR at line 1:
    ORA-00911: invalid character
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 782
    ORA-06512: at "SYS.DBMS_SQL", line 32
    ORA-06512: at "HABEEB.DIS", line 32
    ORA-06512: at line 1
    can any body help me in this ...
    Thanks in advance
    Mustafa

    Hi Mustafa
    Since DBMS_SQL package parses the DML or DDL statement that you issue at runtime, your code may have compiled successfully, but at runtime when your SQL/DML statement that you had embedded as a string in DBMS_SQL may be wrong or has syntax problems which gets resoved at runtime.
    So check your SQL statement in DBMS_SQL package again.
    NOTE: DO NOT GIVE A ";" AT THE END OF YOUR DML/DDL statement in DBMS_SQL package.
    THANKS
    MOHAMMED R.QURASHI
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Mustafa Butt ([email protected]):
    Hi Fellows,
    I have created a procedure with two parameters (eg. disabletrigger(owner, tablename). I have used DBMS_SQL Package. The procedure has compiled successfully but when I run this procedure it returns this message.
    ERROR at line 1:
    ORA-00911: invalid character
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 782
    ORA-06512: at "SYS.DBMS_SQL", line 32
    ORA-06512: at "HABEEB.DIS", line 32
    ORA-06512: at line 1
    can any body help me in this ...
    Thanks in advance
    Mustafa<HR></BLOCKQUOTE>
    null

  • How to use Embedded browser in Java using Linux Platform?(Very urgent.....)

    Hi,
    I'm trying to use the embedded browser in Linux, but it fails with the following error:
    Can't execute the native embedded browser. Error message:
    when I use it on a Windows machine, it works fine.
    i get this
    org.jdesktop.jdic.init.JdicInitException: java.lang.UnsatisfiedLinkError: no jdic in java.library.path
    at org.jdesktop.jdic.init.JdicManager.initBrowserNative(Unknown Source)
    at org.jdesktop.jdic.browser.WebBrowser.<clinit>(Unknown Source)
    at netsim.NetSimBasics.<init>(NetSimBasics.java:40)
    at netsim.NetSimBasics.main(NetSimBasics.java:64)
    Caused by: java.lang.UnsatisfiedLinkError: no jdic in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1030)
    at org.jdesktop.jdic.init.InitUtility.<clinit>(Unknown Source)
    ... 4 more
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no jdic in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1030)
    at org.jdesktop.jdic.browser.internal.WebBrowserUtil.<clinit>(Unknown Source)
    at org.jdesktop.jdic.browser.MsgClient.<init>(Unknown Source)
    at org.jdesktop.jdic.browser.NativeEventThread.<init>(Unknown Source)
    at org.jdesktop.jdic.browser.WebBrowser.<clinit>(Unknown Source)
    at netsim.NetSimBasics.<init>(NetSimBasics.java:40)
    at netsim.NetSimBasics.main(NetSimBasics.java:64)

    use JComboBox
    JComboBox liste = new JComboBox(new Object[]{"azerty","qwerty});the api documentation :
    http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JComboBox.html
    the turotial on combobox :
    http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html

  • Customising Standard Oracle Package - Very Urgent

    Hi,
    We are in the process of Customising our Quotes Module.
    we have a situation where we need to have a customization in the way the template is added to the quote,
    And for this change we are need to customise an Existing Oracle Standard Database (Package) Procedure (ASO_QUOTE_PUB_W) Add_Templates_To_Quote.
    Is there any document on customising standard database procedure ?
    The alternative way may be to create a custom procedure and hence need to update the addTemplate API in the Quote class (which seems to be a roundabout way..)
    Can anyone help on this ?
    Thanks in Advance
    Senthil

    What we have decided upon is, Create a custom package with this customized procedure. And then create a new Quote class extending the Oracle Standard Quote class, this new Quote class will have the overloaded function to call the new Package-Procedure.
    i was just wondering about the deployment of this new pkg-proc, are these database objects compiled in apps schema ? i dont think so, but just got a doubt..
    Basically, its the Quotes Module. When creating the quote from a template, now the user can give number of times the template has to be applied and this multiplier has to be applied to the Quote Lines Quantity.
    Since, this addition of Quote Lines from Template to Quote is happening at the package, we will just apply the multiplier value to the Qty column of the Quote Line Record Type in the package, so that the standard package does the saving.
    We tried such an experimental change, and after this addition , the page time out. when we removed the extra 1 line of code, the screen seems to be working.
    The extra 1 line is just like
    l_qot_line_type.quantity = l_qot_line_type.quantity * p_multiplier
    thats all.
    What could be wrong ?

  • How to put a startup picture in a java program?

    Hi there,
    I'm extremely new in Java programming and have a very weak knowledge in C programming. I managed to download a Java source file from the internet which I need to use for my school's project. I was wondering would it be possible for me to put a start up picture or video clip before the program runs? And if so, how do I go about doing it? Thanks in advance.
    LostInJava

    Requires the latest Java version, Java 6.And there are fairly simple ways to program your own splash screens in earlier versions.

  • Java program giving unknownhost exception

    Hi Friends,
    I have a java program in a package which is compiled and put in a war file.But after uploading the war file in weblogic server and try to run the servlet in browser window, I get following error..
    2007-09-26 16:33:42,353 [ExecuteThread: '14' for queue: 'weblogic.kernel.Default
    '] INFO (Utils.java:112) - MAX_CMW_RESPONSE_SIZE:50
    2007-09-26 16:33:42,353 [ExecuteThread: '14' for queue: 'weblogic.kernel.Default
    '] INFO (Utils.java:113) - ENTITIES_PER_CMW_THREAD:1
    2007-09-26 16:33:42,353 [ExecuteThread: '14' for queue: 'weblogic.kernel.Default
    '] INFO (Utils.java:114) - MAX_NUMBER_OF_CMW_THREADS:10
    2007-09-26 16:33:43,979 [ExecuteThread: '14' for queue: 'weblogic.kernel.Default
    '] INFO (Utils.java:244) - Logging in to PartyOrchestrator service...
    2007-09-26 16:33:44,791 [ExecuteThread: '14' for queue: 'weblogic.kernel.Default
    '] ERROR (Utils.java:253) - java.net.UnknownHostException: crmccssit.bankofamerica.com
    Please help me friends...
    Thanks in advance...

    Hi dketcham ,
    Thanks for your reply.But actually what is happening is I have a url by name "http://crmccssit.abc.com:80/ccw/Ast " which is opening up in the browser.But the same url I have given in one of java programs as Parameter to a method.When I create a war file of that package and deploy it in weblogic server,I am not able to open the webpage using above url and getting the error as mentioned in my posting.
    Please help me buddy..
    Thanks in advance...

  • Running OpenSSL command through Java Program

    How do I execute openssl commands through a java program? Any packages or wrapper classes are there? Please help.
    Thanks.

    Hi!
    What do you mean execute commands? Like: "openssl x509 -in cert.pem -out certout.pem" ??
    In that case you can just try the following:
    import java.lang.Runtime;
    try {
    Runtime.getRuntime().exec("openssl x509 -in cert.pem -out certout.pem");
    }catch (Exception e) {
    e.printStackTrace();
    ........

  • Very very urgent. population data from database into dropdownbox

    Hi,
    i imported a model through ejbs
    this is to create new entries into database ,
    and my scenerio iso now i need to populate the values that i stored into database thro EJBS in a drop down box of wd application.
    plz help me through code ,i am new to java webdynpro...
    neede very urgently,
    Thanx .
    Arjun.G
    Message was edited by:
            arjun swamy

    Hi,
    Have a look at these threads
    Dropdown by index in table - fetching values from database
    Dropdown by index
    Kind Regards,
    Saravanan K

  • Calling C code (exe ) from Java program

    Hi all,
    kindly help in giving a solution for calling C code (exe ) from Java program, i will be very thank full to u if any body can help in sending a code example
    bye

    You might need to consume the io operations on the Process...
    An excerpt from java.lang.Process:
    All its standard io (i.e. stdin, stdout, stderr) operations will be redirected to the parent process through three streams (Process.getOutputStream(), Process.getInputStream(), Process.getErrorStream()). The parent process uses these streams to feed input to and get output from the subprocess. Because some native platforms only provide limited buffer size for standard input and output streams, failure to promptly write the input stream or read the output stream of the subprocess may cause the subprocess to block, and even deadlock.

  • Using a UNIX shell script to run a Java program (packaged in a JAR)

    Hi,
    I have an application (very small) that connects to our database. It needs to run in our UNIX environment so I've been working on a shell script to set the class path and call the JAR file. I'm not making a lot of progress on my own. I've attached the KSH (korn shell script) file code.
    Thanks in advance to anyone who knows how to set the class path and / or call the JAR file.
    loggedinuser="$(whoami)"
    CFG_DIR="`dirname $0`"
    EXIT_STATUS=${SUCCESS}
    export PATH=/opt/java1.3/bin:$PATH
    OLDDIR="`pwd`"
    cd $PLCS_ROOT_DIR
    java -classpath $
    EXIT_STATUS=$?
    cd $OLDDIR
    echo $EXIT_STATUS
    exit $EXIT_STATUS

    Hi,
    I have an application (very small) that connects to
    our database. It needs to run in our UNIX environment
    so I've been working on a shell script to set the
    class path and call the JAR file.
    #!/bin/sh
    exec /your/path/to/java -cp your:class:paths:here -MoreJvmOptionsHere your.package.and.YourClass "$@"Store this is a file of any name, e.g. yuckiduck, and then change the persmissions to executechmod a+x yuckiduckThe exec makes sure the shell used to run the script does not hang around until that java program finishes. While this is only a minor thing, it is nevertheless infinite waste, because it does use some resources but the return on that investment is 0.
    CFG_DIR="`dirname $0`"You would like to fetch the directory of the installation out of $0. This breaks as soon as someone makes a (soft) link in some other directory to this script and calls it by its soft linked name. Your best bet if you don't know a lot of script programming is to hardcode CFG_DIR.
    OLDDIR="`pwd`"
    cd $PLCS_ROOT_DIRVery bad technique in UNIX. UNIX supports the notion of a "current directory". If your user calls this program in a certain directory, you should assume that (s)he does this on purpose. Making your application dependent on a start in a certain directory ignores the very helpful concept of 'current directory' and is therefore a bug.
    cd $OLDDIRThis has no effect at all because it only affects the next two lines of code and nothing else. These two lines, however, don't depend on the current directory. In particular this (as the cd above) does not change the current directory for the interactive shell your user is working in.
    echo $EXIT_STATUS
    exit $EXIT_STATUSEchoing the exit status is an interesting idea, but if you don't do this for a very specific purpose, I recommend not to do this for the simple reason that no other UNIX program does it.
    Harald.

  • Ore program makes my Java Program crash, which uses lots of memory (Urgent

    I use a very huge HashMap to calculate something, and the HashMap size
    may be increased dynamically.
    And I start the program with -Xms300M -Xmx300M (The OS is Win2000).
    When I start some programs which may use more memory , My program shows
    that the free memory is absolutely enough , but suddenly, The thread to
    handle the HashMap seems to be hanged, and the free memory is shown to be
    reduced continuously.
    At this time, I can't stop the program, Sometimes I can't kill it by the
    Task Management Manager.
    It seems that my java program is robbed with physical memory, and
    encounter memory problem, and can't restore from it?
    Would you please tell me how to fix this problem?
    Thank you very much!
    Sincerely,
    Fang Jing
    [email protected]

    Looks more like an endless loop to me.
    Can you post the code where the problem occurs?

  • URGENT: How to run a Java program from a different directory?

    Hi.
    How do I run a Java program from a directory that the file is not located in? So lets say im in c:\Java. But the file is in c:\Java\abc\efg\.
    What would be the command to run the Java file from c:\Java.
    I can't remember it and I need it asap.
    Cheers.

    If the class you are trying to run is MyApp.class, try
    c:\Java\>java -cp abc\efg MyAppThe actual classpath you specify will depend on whether or not MyApp.class is in a package (I've assumed it isn't) and whether or not any 3rd party jars are involbed (I've assumed not).
    Edited by: pbrockway2 on Apr 1, 2008 6:42 PM
    The command arguments read as "Run the MyApp class using as a classpath abc\efg relative to here (c:\Java)".

Maybe you are looking for

  • Upgrade to Win 7 and Vista Recovery CD

    I am currently running Windows Vista Ultimate 32-bit on a T61p, and am going to do a clean install of Windows 7 64-bit (onto a new hard drive).  In case the Windows 7 install is a complete failure, etc.  I would like to be able to reinstall Windows V

  • Work flow in Release Procedure

    Hi all,       What are the steps involved to configur Work flow for the Release of Purchase orders? Yoga

  • In smartform Problem

    Dear Experts, I am working on smartform, where i used to display customer inquiry number, Sales order number as well Engineers Name. Through vbak and vbfa i got inquiry number to quotation number. But from quotation to sales order number i am not abl

  • Windows 7 Wireless Printing - printer attached to Mac

    I have a Canon MP600 attached to an iMac running 10.6. Have a Windows 7 laptop that I want to share this printer. When wired to network, the Windows 7 laptop can use bonjour to connect and print fine. However, will not work when the laptop is wireles

  • Flawless iPhone 4s install using iCloud

    Highly impressed. Ive been through this every single release day from the 1st iPhone through this one, and I can honestly say this went relatively perfect. Yes, there was an issue with ordering on the 7th, but much better than before, and yes, updati