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.

Similar Messages

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

  • 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();
    ........

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

  • Java program/package in project tree

    On a fairly large web services project I am working on I started using
    workshop to develop a couple of straight java programs and put them in the
    project tree right next to the jws programs. This worked great, I could
    take advantage of the debugging and code completion type editing capability
    in Workshop. Last week I moved this source code, plus all of the common
    classes, into a directory under the top level project directory
    (com/myCompany/api/structures and com/myCompany/api/util) and copied the
    programs into there (Workshop changed the package names appropriately). It
    all ran fine.
    This week another developer got the latest pull from source control with the
    directory mentioned above but cannot build. The message is "Package
    com.myCompany.api.util not found in import". I am looking right at the file
    structure and is the same as on the original machine that it was built on.
    Any idea why it cannot find that file/directory/package?
    Is there anyway to forceworkshop to build a java program? The build menu
    command is disabled when working on a java file.
    It would be great to have a section in the support docs about writing java
    classes in Workshop. We are determined to keep our jws's (what's the plural
    of jws!) lean and use helper functions and/or business object/model
    functionality for the bulk of the work. I know V1 of workshop has not
    focused on this java editing capability but it is there and it's pretty
    strong. Without this you have
    to work in a seperate IDE to write helper classes do a build there and then
    come back to Worskhop.
    I'd like to know things like 1) when and how does workshop decide to do a
    build of the java classes 2) is it possible to put other source code like
    libraries somewhere so that I could debug right into these? and 3) how does
    workshop resolve it's package structure at build time (other than
    web-inf/classes)?
    Thanks!

    Well, our problem seems to be fixed but I'm not sure why. The java classes
    had not been deleted from the top of the project tree. When we deleted them
    suddenly the import started working ... go figure ... maybe it was something
    else we did. I would still be interested in answers to my more general
    questions about java source in workshop if possible ...
    thx
    "Dave Remy" <[email protected]> wrote in message
    news:[email protected]...
    On a fairly large web services project I am working on I started using
    workshop to develop a couple of straight java programs and put them in the
    project tree right next to the jws programs. This worked great, I could
    take advantage of the debugging and code completion type editingcapability
    in Workshop. Last week I moved this source code, plus all of the common
    classes, into a directory under the top level project directory
    (com/myCompany/api/structures and com/myCompany/api/util) and copied the
    programs into there (Workshop changed the package names appropriately).It
    all ran fine.
    This week another developer got the latest pull from source control withthe
    directory mentioned above but cannot build. The message is "Package
    com.myCompany.api.util not found in import". I am looking right at thefile
    structure and is the same as on the original machine that it was built on.
    Any idea why it cannot find that file/directory/package?
    Is there anyway to forceworkshop to build a java program? The build menu
    command is disabled when working on a java file.
    It would be great to have a section in the support docs about writing java
    classes in Workshop. We are determined to keep our jws's (what's theplural
    of jws!) lean and use helper functions and/or business object/model
    functionality for the bulk of the work. I know V1 of workshop has not
    focused on this java editing capability but it is there and it's pretty
    strong. Without this you have
    to work in a seperate IDE to write helper classes do a build there andthen
    come back to Worskhop.
    I'd like to know things like 1) when and how does workshop decide to do a
    build of the java classes 2) is it possible to put other source code like
    libraries somewhere so that I could debug right into these? and 3) howdoes
    workshop resolve it's package structure at build time (other than
    web-inf/classes)?
    Thanks!

  • How to package java programe

    well my question is packaging a java programe?
    i have made a small java stand alone application and a i want to install on the client site.
    now the question is that the client dont want to install other softwares like jdk or sdk.
    these things should be provided within the software so he/she only needs to install this software only instead of installing all the components indvidually like separate installation of jdk or sdk. then the java programe.
    also another requirment is that the programe should be excecuted with only just one command. for example conventially to execute a java programme one has to give following command
    c:\java programe_name
    but the reqirment is this:
    c:\programe_name
    tell me how to handle this problem.
    my email is [email protected]

    hi,
    under win-command: make additional a ' c:\programe_name.bat' in wich you call ' c:\java -jar programe_name.jar'. then you can simple start the app with the command 'c:\programe_name'.
    in the filemanager it's always poss. to doubleklick on a jar-file to start it (if the jar-file was correctly created.)
    for tesktop create a link to the jar. it works like in the filemanager. just doubleklick.
    to created a startable jar you need to add a 'manifest'-file in the root of your java-projekt. it's a simple text file (name is not important) with a content like this:
    Manifest-Version: 1.0
    Main-Class: myprojekt.MyStartClass
    Created-By: Oliver SCORP
    to create a autostartable jar with this manifest-file use a command like this:
    jar cvfm programe_name.jar mymanifest.txt -C .\myclasspath .dont forget the point at the end!
    hope to help
    cu
    oliver scorp

  • How to package a java program to an exe, independent of platform

    I am new to programming, I have made a Billing software for a firm. Can any anyone tell me how to make exe of the Java program.
    If u can message me soon than it will be so kind of you.
    Regards,
    RahulDhurve

    You cannot make an exe that is independent of platform.

  • Error while running a Java Program

    Can anyone help me,
    I am getting the following error while running a Java program, Below is the exception thrown, please help.
    java.nio.BufferOverflowException
    at java.nio.Buffer.nextPutIndex(Buffer.java:425)
    at java.nio.DirectByteBuffer.putChar(DirectByteBuffer.java:463)
    at org.jetel.data.StringDataField.serialize(StringDataField.java:295)
    at org.jetel.data.DataRecord.serialize(DataRecord.java:283)
    at org.jetel.graph.DirectEdge.writeRecord(DirectEdge.java:216)
    at org.jetel.graph.Edge.writeRecord(Edge.java:288)
    at com.tcs.re.component.RESummer1.run(RESummer1.java:505)
    java.nio.BufferOverflowException
    at java.nio.Buffer.nextPutIndex(Buffer.java:425)
    at java.nio.DirectByteBuffer.putChar(DirectByteBuffer.java:463)
    at org.jetel.data.StringDataField.serialize(StringDataField.java:295)
    at org.jetel.data.DataRecord.serialize(DataRecord.java:283)
    at org.jetel.graph.DirectEdge.writeRecord(DirectEdge.java:216)
    at org.jetel.graph.Edge.writeRecord(Edge.java:288)
    at com.tcs.re.component.RECollectCont.run(RECollectCont.java:304)

    Ok, let's see. Write the following class:
    public class Grunt {
      public static void main(String[] args) {
        System.out.println("Hello Mars");
    }Save it as "C:\Grunt.java", compile by typing:
    javac c:\Grunt.javaRun by typing:
    java -classpath "C:\" GruntDoes it say "Hello Mars"? If yes, go back to your program and compare for differences (maybe you used the "package" statement?).
    Regards

  • Running a java program outside eclipse...!

    Hi guys...!
    I wrote a java program that uses different classes. The program deals with xml documents and creates a new xml document. The problem is, the program works fine in eclipse, but when I run through the command line in windows, it complains that it can't see the different classes that I created. Here is one of the error messages:
    Test.java:44:cannont find symbol
    symbol : class Circuit
    location : class src.Test
    Circuit cir = new Circuit ();
    Note: Test.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details
    Does anyone know how to resolve this...?
    Any help from you guys will be very appreciated.
    Thanks..

    I think the problem is probably something like this:
    You have a path thus:
    C:\blahblahblah\With a subdirectory thus:
    C:\blahblahblah\srcIn which you have declared classes thus:
    package src;
    public class Foo {
    }And you have then used a classpath something like the
    following:
    javac -classpath C:\blahblahblah\src Foo.javaThis is incorrect. Your classpath needs to point to
    the root of the package hierarchy. If it's like the
    above, it will look in C:\blahblahblah\src for a
    package src, which results in a path like
    C:\blahblahblah\src\src which does not exist.
    You should set it to:
    C:\blahblahblah\Where that is the root from which your packages
    stem.
    Dave.Thanks Dave. It works man. I really appreciate your help.

  • High CPU usage while running a java program

    Hi All,
    Need some input regarding one issue I am facing.
    I have written a simple JAVA program that lists down all the files and directories under one root directory and then copies/replicates them to another location. I am using java.nio package for copying the files. When I am running the program, everything is working fine. But the process is eating up all the memories and the CPU usage is reaching upto 95-100%. So the whole system is getting slowed down.
    Is there any way I can control the CPU usage? I want this program to run silently without affecting the system or its performance.

    Hi,
    Below is the code snippets I am using,
    For listing down files/directories:
            static void Process(File aFile, File aFile2) {
              spc_count++;
              String spcs = "";
              for (int i = 0; i < spc_count; i++)
              spcs += "-";
              if(aFile.isFile()) {
                   System.out.println(spcs + "[FILE] " + aFile2.toURI().relativize(aFile.toURI()).getPath());
                   String newFile = dest + aFile2.toURI().relativize(aFile.toURI()).getPath();
                   File nf = new File(newFile);
                   try {
                        FileCopy.copyFile(aFile ,nf);
                   } catch (IOException ex) {
                        Logger.getLogger(ContentList.class.getName()).log(Level.SEVERE, null, ex);
              } else if (aFile.isDirectory()) {
                   //System.out.println(spcs + "[DIR] " + aFile2.toURI().relativize(aFile.toURI()).getPath());
                   String newDir = dest + aFile2.toURI().relativize(aFile.toURI()).getPath();
                   File nd = new File(newDir);
                   nd.mkdir();
                   File[] listOfFiles = aFile.listFiles();
                   if(listOfFiles!=null) {
                        for (int i = 0; i < listOfFiles.length; i++)
                             Process(listOfFiles, aFile2);
                   } else {
                        System.out.println(spcs + " [ACCESS DENIED]");
              spc_count--;
    for copying files/directories:public static void copyFile(File in, File out)
    throws IOException {
    FileChannel inChannel = new
    FileInputStream(in).getChannel();
    FileChannel outChannel = new
    FileOutputStream(out).getChannel();
    try {
    inChannel.transferTo(0, inChannel.size(),
    outChannel);
    catch (IOException e) {
    throw e;
    finally {
    if (inChannel != null) inChannel.close();
    if (outChannel != null) outChannel.close();
    Please let me know if any better approach is there. But as I already said, currently it's eating up the whole memory.
    Thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Error while running Java program which call a file upload servlet

    Hi all,
    I have a java program which calls a servlet and sends the file to be uploaded by the servlet. I used Jbuilder to create java program and servlet program. I compiled both the programs and compilation suceeded and my class files are avaialbe in
    WEB-INF/classes/content directory. But now I am trying to run the Java program(this contains main method) from the command prompt, which should inturn call my servlet.(I have web.xml file inside WEB-INF dir). But I receive the following error
    C:\tomcat5.5.15\apache-tomcat-5.5.16\webapps\content\WEB-INF\classes\content>java MultiContentSender
    Exception in thread "main" java.lang.NoClassDefFoundError: MultiContentSender (w
    rong name: content/MultiContentSender)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    3)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    My dir strcture is as below
    TOMCAT_HOME/webapps/content/WEB-INF/classes/content/*.class
    I am not able to figure out the error, can anyone throw some light on this issue.

    You are trying to invoke the class from the command prompt. My guess is that MultiContentSender contains a package, which means that you'll need to add your WEB-INF\classes directory to the classpath before it will work. Classes stored in this directory are expected to be invoked through tomcat, which builds it's own classpath.

  • Writing a java program for generating .pdf file with the data of MS-Excel .

    Hi all,
    My object is write a java program so tht...it'll generate the .pdf file after retriving the data from MS-Excel file.
    I used POI HSSF to read the data from MS-Excel and used iText to generate .pdf file:
    My Program is:
    * Created on Apr 13, 2005
    * TODO To change the template for this generated file go to
    * Window - Preferences - Java - Code Style - Code Templates
    package forums;
    import java.io.*;
    import java.awt.Color;
    import com.lowagie.text.*;
    import com.lowagie.text.pdf.*;
    import com.lowagie.text.Font.*;
    import com.lowagie.text.pdf.MultiColumnText;
    import com.lowagie.text.Phrase.*;
    import net.sf.hibernate.mapping.Array;
    import org.apache.poi.hssf.*;
    import org.apache.poi.poifs.filesystem.*;
    import org.apache.poi.hssf.usermodel.*;
    import com.lowagie.text.Phrase.*;
    import java.util.Iterator;
    * Generates a simple 'Hello World' PDF file.
    * @author blowagie
    public class pdfgenerator {
         * Generates a PDF file with the text 'Hello World'
         * @param args no arguments needed here
         public static void main(String[] args) {
              System.out.println("Hello World");
              Rectangle pageSize = new Rectangle(916, 1592);
                        pageSize.setBackgroundColor(new java.awt.Color(0xFF, 0xFF, 0xDE));
              // step 1: creation of a document-object
              //Document document = new Document(pageSize);
              Document document = new Document(pageSize, 132, 164, 108, 108);
              try {
                   // step 2:
                   // we create a writer that listens to the document
                   // and directs a PDF-stream to a file
                   PdfWriter writer =PdfWriter.getInstance(document,new FileOutputStream("c:\\weeklystatus.pdf"));
                   writer.setEncryption(PdfWriter.STRENGTH128BITS, "Hello", "World", PdfWriter.AllowCopy | PdfWriter.AllowPrinting);
    //               step 3: we open the document
                             document.open();
                   Paragraph paragraph = new Paragraph("",new Font(Font.TIMES_ROMAN, 13, Font.BOLDITALIC, new Color(0, 0, 255)));
                   POIFSFileSystem pofilesystem=new POIFSFileSystem(new FileInputStream("D:\\ESM\\plans\\weekly report(31-01..04-02).xls"));
                   HSSFWorkbook hbook=new HSSFWorkbook(pofilesystem);
                   HSSFSheet hsheet=hbook.getSheetAt(0);//.createSheet();
                   Iterator rows = hsheet.rowIterator();
                                  while( rows.hasNext() ) {
                                       Phrase phrase=new Phrase();
                                       HSSFRow row = (HSSFRow) rows.next();
                                       //System.out.println( "Row #" + row.getRowNum());
                                       // Iterate over each cell in the row and print out the cell's content
                                       Iterator cells = row.cellIterator();
                                       while( cells.hasNext() ) {
                                            HSSFCell cell = (HSSFCell) cells.next();
                                            //System.out.println( "Cell #" + cell.getCellNum() );
                                            switch ( cell.getCellType() ) {
                                                 case HSSFCell.CELL_TYPE_STRING:
                                                 String stringcell=cell.getStringCellValue ()+" ";
                                                 writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                 phrase.add(stringcell);
                                            // document.add(new Phrase(string));
                                                      System.out.print( cell.getStringCellValue () );
                                                      break;
                                                 case HSSFCell.CELL_TYPE_FORMULA:
                                                           String stringdate=cell.getCellFormula()+" ";
                                                           writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                           phrase.add(stringdate);
                                                 System.out.print( cell.getCellFormula() );
                                                           break;
                                                 case HSSFCell.CELL_TYPE_NUMERIC:
                                                 String string=String.valueOf(cell.getNumericCellValue())+" ";
                                                      writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                      phrase.add(string);
                                                      System.out.print( cell.getNumericCellValue() );
                                                      break;
                                                 default:
                                                      //System.out.println( "unsuported sell type" );
                                                      break;
                                       document.add(new Paragraph(phrase));
                                       document.add(new Paragraph("\n \n \n"));
                   // step 4: we add a paragraph to the document
              } catch (DocumentException de) {
                   System.err.println(de.getMessage());
              } catch (IOException ioe) {
                   System.err.println(ioe.getMessage());
              // step 5: we close the document
              document.close();
    My Input from MS-Excel file is:
         Planning and Tracking Template for Interns                                                                 
         Name of the Intern     N.Kesavulu Reddy                                                            
         Project Name     Enterprise Sales and Marketing                                                            
         Description     Estimated Effort in Hrs     Planned/Replanned          Actual          Actual Effort in Hrs     Complexity     Priority     LOC written new & modified     % work completion     Status     Rework     Remarks
    S.No               Start Date     End Date     Start Date     End Date                                        
    1     setup the configuration          31/01/2005     1/2/2005     31/01/2005     1/2/2005                                        
    2     Deploying an application through Tapestry, Spring, Hibernate          2/2/2005     2/2/2005     2/2/2005     2/2/2005                                        
    3     Gone through Componentization and Cxprice application          3/2/2005     3/2/2005     3/2/2005     3/2/2005                                        
    4     Attend the sessions(tapestry,spring, hibernate), QBA          4/2/2005     4/2/2005     4/2/2005     4/2/2005                                        
         The o/p I'm gettint in .pdf file is:
    Planning and Tracking Template for Interns
    N.Kesavulu Reddy Name of the Intern
    Enterprise Sales and Marketing Project Name
    Remarks Rework Status % work completion LOC written new & modified Priority
    Complexity Actual Effort in Hrs Actual Planned/Replanned Estimated Effort in Hrs Description
    End Date Start Date End Date Start Date S.No
    38354.0 31/01/2005 38354.0 31/01/2005 setup the configuration 1.0
    38385.0 38385.0 38385.0 38385.0 Deploying an application through Tapestry, Spring, Hibernate
    2.0
    38413.0 38413.0 38413.0 38413.0 Gone through Componentization and Cxprice application
    3.0
    38444.0 38444.0 38444.0 38444.0 Attend the sessions(tapestry,spring, hibernate), QBA 4.0
                                       The issues i'm facing are:
    When it is reading a row from MS-Excel it is writing to the .pdf file from last cell to first cell.( 2 cell in 1 place, 1 cell in 2 place like if the row has two cells with data as : Name of the Intern: Kesavulu Reddy then it is writing to the .pdf file as Kesavulu Reddy Name of Intern)
    and the second issue is:
    It is not recognizing the date format..it is recognizing the date in first row only......
    Plz Tell me wht is the solution for this...
    Regards
    [email protected]

    Don't double post your question:
    http://forum.java.sun.com/thread.jspa?threadID=617605&messageID=3450899#3450899
    /Kaj

  • Strange error while running java program in oracle

    Hi all,
    I have written a java program and saved it as .sqlj file. i have to run the program on sql prompt.
    while running the program i am getting the following error.Please help me.I am in urgent situation
    ORA-29536: badly formed source: User has attempted to load a class
    (tactossSecurity) into a restricted package. Permission can be granted using
    dbms_java.grant_permission(<user>, LoadClassInPackage...
    Thanks & Regards
    Raghavender Rao Kodumuri

    Raghavender,
    I also answered you in the SQL forum, where you posted the exact same question.
    Re: Trying to execute java programm in oracle getting the following error
    Good Luck,
    Avi.

  • 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