How to use files in packages?

Suppose I have java source files in directory c:\aaa\bbb\ccc
In each java source file I have "package aaa.bbb.ccc;" statement
Now I am in C:\
how do I compile and run the files?
I use
javac aaa\bbb\ccc\*.java
then to run
java aaa\bbb\ccc\App.class
App.class has main() method
But it says NoClassFound exception
Please help

javac aaa\bbb\ccc\*.java
then to run
java aaa\bbb\ccc\App.class
correct: java aaa.bbb.ccc.App
then ok

Similar Messages

  • How to use user-defined packages in JAX-RPC web service

    I am trying to use Object of my class located in my package in jax-rpc webservice,the code is
    package supercomputer;
    import Hello.*;
    public class SuperImpl implements SuperIF
    public String sendParam(String data)
    Temp ob=new Temp();
    int i=ob.get1(10000);
    return data+"returned by supercomputer";
    Temp is located in Hello package,I have jar the Hello package as Hello.jar and has set its classpath in targets.xml of Ant tool.
    The code compiles well and service is deployed successfully,but when i try to call the service from the client its gives me following error.
    [echo] Running the supercomputer.SuperClient program....
    [java] java.rmi.ServerException: Missing port information
    [java] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:357)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:228)
    [java] at supercomputer.SuperIF_Stub.sendParam(SuperIF_Stub.java:60)
    [java] at supercomputer.SuperClient.main(Unknown Source)
    I dont know if it deploys why it gives error on client side.
    Please tell how to use user-defined packages and class in jax-rpc service code ,i am not talking about passing user-defined parameters i am just talking about making objects of user defined classes in jax-rpc service.I think there is some problem in classpath.
    Please guide me in doing that.
    Thanks,
    Farrukh

    Farrukh,
    I don't know if your error is about a missing class from your custom package, ... what track did you followed to say that?
    To use your package in the implementation of you web service, you should only follow the rules of making a web application: put your package jar in your \lib directory inside WEB-INF/ or your package classes unjared in classes (also in WEB-INF/).
    As I already said, I have doubts that your error should be originated from a missing class from your package, but:
    -try to see the logs (errors?) when you deploy your web service that could give a hint about the problem.
    -try to see if you can access your endpoint through your browser to see if there is a online status
    -display your config/WSDL file, and the steps you did to build your web service.
    regards,
    Pedro Salazar.

  • How to use File Adapter with hierarchial Structure?

    Hi,
    How to use File Adapter with hierarchial Structure like..
    Data:
    --Header Details:
    Line Item Details:
    Data
    Bcoz I am getting a Flatfile in a hierarchial way as shown below.
    Header Details :1
    Line Item a
    Line Item b
    Header Details :2
    Line Item c
    Line Item d
    Kishore

    Hey Kishore,
    In order to create a structure you need to use the file with convertion mode on the sending communication channel of the file adapter.
    check the link for the needed configuration paramters.
    If the structure is more complexed you can use the Contetnt master(CM) from itemfield which allows to ceate XML file from complex flat files and more.
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm">File sender adapter</a>
    If you have any question i'll be more than happy to assist.
    Nimrod Gisis

  • How to use File Adapter in BPEL

    Hi,
    How to use File Adapter in BPEL. I am using Oracle SOA 10g. Any sample or best example in blog or elsewhere ?

    Hi,
    Please check the below links for samples on how to use file adapter in BPEL (in 10g/11g usage is same) and let me know any further queries.
    11g - http://blogs.oracle.com/theshortenspot/entry/soa_suite_integration_part_3_l
    10g - http://erpschools.com/articles/bpel-file-adapter-tutorial

  • How to use file manager to copy music to ipod?

    How to use file manager to copy music to ipod so can bypass iTunes?

    You can't.
    There are 3rd party apps that will load music onto your iPod.

  • How to use  third party package in java application

    hi, i am a student , new to java world can any of u tell me how to import third party package in our java application.
    i want to know how CLI is done in java.
    i am going thru this link http://www.codezoo.com/pub/component/5574
    not able to get anything.
    please please help me

    There are two steps -
    1. Import the classes you need from the package(s) using the Java import statement in your classes that need access to them.
    2. include the 3rd part code (one or more .jar files and/or root directories holding the code's package tree and .class files) to your javac and java class path and optionaly to the class path found in your .jar's manifest file.

  • How to use the Client_image package

    I need to use the client_image package (read_image_file, write_image_file) to do the file upload from my client pc.
    we use a digtal camera to take picture and need to use the oracle 9i form webutil to insert into the form and save in 9ias.
    Any samples about how I can use the webutil to upload images will be truly appreciated!
    Thanks for replying!

    Thanks for your reply on Oracle Forums about using webutil to perform image upload in 9i forms.
    I just download the new Webutil Demo but I got the error messages:
    WUC-015: Your Form must contain the following Bean for this function to be available:
    Oracle.forms.webutil.clientinfo.GetClientInfo
    WUC-015: Your Form must contain the following Bean for this function to be available:
    Oracle.forms.webutil.fileTransfer.FileTransfer
    WUC-015: Your Form must contain the following Bean for this function to be available:
    Oracle.forms.webutil.browser.BrowserFunctions
    I have done all the environment config. and things in FAQ
    (Make sure the your environment is set up correctly; including issues such as CLASSPATH and ensure it is no longer that 512 characters.
    Ensure that the WebUtil object group has been dragged onto the form.
    By putting the form into visual view, ensure that you have a window called WEBUTIL_HIDDEN_WINDOW and that it contains a set of WebUtil Java Beans.
    If your forms does already contain the WebUtil object group then the cause is likely to be that the triggers used internally by the bean areas are uncompiled (usually because the OLB was subclassed before the library was attached). To resolve the problem try performing a Compile All on your module (ctrl-shift-k))
    The errors are still coming out and would you please let me know what I should do to solve the problem and thanks a lot!

  • How to use File Transfer Protocol in Java?

    hi all,
    im new to java. i dont know how to use FTP in java. but i want to transfer files from my machine to another machine and also i want to download files from that machine through FTP. how can i start this program. pls any one give me the code for this program. thanks in advance.

    Of course you didn't get an "exact result", since that link was to an article which reviewed several products. If you aren't capable of making a decision based on that article, try using the Apache Commons/Net FTP component.

  • How to use File Adapter Receiver to write attachments

    Hi,
    i have a scenario, in which our own XInotes adapter sends an XIMessage from an IBM Lotus Notes database into XI. This XIMessage contains an XML document as application main document and several PDF files as additional attachments 
    On the receiver side, i must use a File Adapter to write both the XML documents and the PDF attachments into a directory.
    The problem is i don't know how to use the file adapter receiver to write the attachments. In the Channel Monitoring, i can see that all PDF files are transferred to the file receiver. But the file adapter writes only the XML document into the directory.
    I've also tried the AF_Modules/PayloadSwapBean, but it can only swap one PDF file into the application payload. And the file name must be hard coded in the module configuration as swap.KeyName.
    Could anyone give me any ideas?
    thanks a lot in advance
    Xiang

    hi,
    receiver file adapters do not supprt attachments.
    Only File Sender adapter is capable of handling attachments not the receiver.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/a20c4cfea96b498b1e1af3f32f0670/frameset.htm
    Configuring the sender FILE adapter
    The sender file adapter is configured to pick the normal payload (file1.xml), which is specified in the File
    access parameters, and the additional image file (file1.jpg) that is to be sent as an attachment is configured
    under the Additional File(s) as shown in the screenshot below. The file type would still remain binary.
    Since, by default, XI sends payload and attachments in XML format, we need to call two beans, namely the
    MessageTransformBean and the PayloadSwapBean to help us is transforming the content to jpeg format
    and also change the file extension.
    The PayloadSwapBean module is used to replace the application payload of the XI message that holds the
    data with another payload which is appended to the message as an attachment. In our case, the payload
    would be file1.xml whereas the attachment would be file1.jpg
    The swap module is denoted in our scenario with the module key ‘swap’. It has two parameters from the
    MIME header.
    regards,
    pradeep.

  • How to remove files with package manager?

    CanI remove file with package manager
    For example if there is a file /apps/cq/ui/widgets/source/widgets/form/RichText.js in Author Instance A, then I delete RichText.js file using crxde.  Then I create a package remove_richtextjs.zip with filter /apps/cq/ui/widgets/source/widgets/form/
    Then I open another instance Author Instance B, there is an exact same file /apps/cq/ui/widgets/source/widgets/form/RichText.js.  Is it possible that if I apply remove_richtextjs.zip, an RichText.js will be removed from Author Instance B?
    Thanks

    You don't have to pay to remove files. Just drag them to the Trash and Empty the Trash.

  • How tu use or install package API Toolkit BPC

    Dear All,,,
    I have problem with performance SAP BPC, then i read SAP Note from SAP Support Portal. In that document, there are download API toolkit. I don't understand how to use this file (API Toolkit)...??
    Any Idea..??
    Thanks...
    Dharma Setiadi

    The reflow plug-in is installed by default when you install Reader. In order for it to work optimally, the document should be correctly tagged, which is something you can do in Acrobat. To activate Reflow in Reader X, select: View > Zoom > Reflow

  • How can use files *:SCR in AS400

    Actually I working with OLAP ESSBASE in a AS400.<BR>I need create a process to automated the clear all of a Cube<BR>I know the process in Windows<BR>Create a notepad file with this sentences and save file with the extension SCR<BR>            LOGIN "Machine" "User" "Password" "Application" "Database";<BR>            RESETDB ;<BR>            EXIT ;<BR>Then, create a file :bat with a sentence<BR> ESSCMD FILE.SCR<BR>and finally execute the file *.bat<BR><BR>In AS400 the ESSCMD have a lot parameters:<BR><BR> RUN ESSBASE/400 COMMANDS (ESSCMD) <BR> <BR>INPUT FILE NAME . . . . . . . . INFILE NONE         <BR>  LIBRARY  . . . . . . . . . . .                  LIBL <BR>INPUT MEMBER . . . . . . . . . . INMBR FIRST        <BR>OUTPUT FILE NAME . . . . . . . . OUTFILE        NONE <BR> LIBRARY . . . . . . . . . . . LIBL       <BR>OUTPUT MEMBER NAME . . . . . . . OUTMBR         FIRST <BR>ERROR LOG FILE NAME . . . . . . ERRFILE NONE         <BR>  LIBRARY  . . . . . . . . . . .                  LIBL <BR>ERROR LOG MEMBER NAME . . . . . ERRMBR FIRST        <BR><BR>I tested with a file source and a member TXT with the sentences of the file .scr<BR>and then put every parameters in a INPUT options and run the Command, but inmediatelly show me the next screen :<BR> Essbase Command Mode Interface - Release 6.5.4 (6.5.4) <BR> Copyright(c) 1991-2003 Hyperion Solutions Corporation. All rights reserved. <BR> <BR> U.S. Patent Number 5,359,724 <BR> U.S. Patent Number 6,317,750 <BR> <BR> <BR> ESSCMD/400 is running in AS/400 interactive mode <BR> ESSCMD/400 is using *COMPLETE script syntax                                 <BR>                                                                             <BR>                                                                             <BR> ESSLANG environment variable not set                                        <BR>                                                                             <BR> Using default locale "English_UnitedStates.US-ASCII@Binary"...              <BR>                                                                             <BR> (Wed Feb  1 16:18:52 2006)Local////Error(1040007)                           <BR> Error 1040007. Cannot find message database                                 <BR><BR><BR><BR>Can somebody help me?<BR>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    There's a sample in the FABridge.zip download (called
    EmptySwf.as) that
    shows how to use the bridge in a non-framework actionscript
    only app.
    There's nothing in the bridge that requires the framework.
    Jason Szeto
    Adobe Flex SDK Developer
    "wlt008" <[email protected]> wrote in
    message
    news:e4c2k4$rob$[email protected]..
    >I want to build an ActionScript project instead of flex,
    how can use
    >FABridge library in my project?

  • How to use File Splitter ($1.99) from App. store --By Tong Zhou

    I purchased File splitter from app. store ($1.99) by Tong Zhou.  I  cannot find instructions in English on how to use it!  I also tried to contact Tong by e-mail, but e-mail address didn't work etc.  His support page is in Chinese language  I haven't removed it from my Mac yet and hope to use it sometime.  ---have tried different drag and drop tactics, but no luck.  The lady at the app. store offered me a refund, but still hoping for instructions. 
    Thank you for any input!

    Hi,
    Have you triedthe standard oracle replace function?  replace(v('APP_USER'),'_','.')
    Otherwise it might be useful to add emailadress as column to your users table, just in case your business decides to change email adress format to [email protected]
    Regards,
    Vincent
    http://vincentdeelen.blogspot.com

  • How to use File History from same account on 2 PCs to same NAS

    I recently upgraded from Win7 to Win8.1 and am unsuccessful in using File History as I'd like.  Perhaps it's a configuration issue, so I'll explain my goal, what I've done, and the problem:
    I have a PC and laptop, both in the same HomeGroup and I use the Microsoft Account on both.  Heretofore I've used a 'backup program' (SyncBack Pro), to synch the Documents folder between the PC and laptop, and then backup the PC's Documents folder to
    a folder on a NAS (Network Attached Storage).  That worked file.
    Now, attempting to use File History, I setup up a NAS:\File History folder on the NAS and turned File History on both on the PC and laptop, pointing to the same NAS:\File History folder on the NAS.  (Actually, I didn't enable it on the laptop until
    File History on the PC had completed its initial run.)  Within 1 or 2 days, the NAS was out of space but shouldn't have been.  When I use Windows Explorer to list contents of subfolders in Documents in the File History folder on the NAS, it shows
    the same files and sizes as it shows on the folders on the PC.  But when I use Windows Explorer to get the Properties of those folders, it shows exactly 2 or 3 (differs by folder) times as many files, and 2 or 3 times the total space taken on the
    PC.  There are many folders in the $OF folder.  I assumed (perhaps wrongly) that $OF would hold old files (e.g., deleted or superseded) but there probably aren't more than 4-5 files that changed over this time period.  All this is making
    me think that perhaps when File History runs on, say the laptop, it actually replaces all files of the same names saved by File History running on the PC and vice versa.  Perhaps that's wrong, but it's the only way I can explain the explosion of the number
    of files and space consumed by even multiples (2 or 3, at which point the NAS ran out of space).
    So, given my goal -- making sure there is a shared backup of all Documents files on the NAS -- is there a way I can set up File History on both the PC and laptop so the same file is represented once in the NAS:\File History ?????
    Finally, in case it's relevant, when I set up File History on the PC it asked me if I wanted to invite others in the HomeGroup to do so, but nothing resembling an 'invitation' ever appeared on the laptop.
    Many thanks to anyone who can address this.

    Hello RASSRQ,
    Do you mean that the file history in NAS need 2 or 3 times space as the file on PC?
    Please explain a bit about the sentence ‘When I use Windows Explorer to list contents of subfolders in Documents in the File History folder on the NAS, it shows the same files and sizes as it shows on the folders on the PC.  But when I use Windows Explorer
    to get the Properties of those folders, it shows exactly 2 or 3 (differs by folder) times as many files, and 2 or 3 times the total space taken on the PC.  There are many folders in the $OF folder. ’
    I can’t understand: What is $OF folder? Could you please share us a screenshot about $OF folder if you willing to?
    What folders in $OF folder?
    Based on my test, I follow the steps by referring to the following article and can’t find the similar issue.
    http://windows.microsoft.com/en-HK/windows-8/set-drive-file-history
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • How to use two different packages which in  different directories?

    In my progrom, I'm using two differnet packages that in two different directories, but if I use classpath , the program can only be in one environment, so what can I do?

    or you set your classpath to the first common dir they have, and specify the packages from that dir on...
    or you just simply copy (you don't have to move it) the one package together with the other package...
    by the way you can add multiple paths to your classpath...
    between the paths you specify a ";"
    if i'm not mistaken...
    SeJo

Maybe you are looking for

  • Deleting photo's from ipod etc

    i need to delete all photo files from my ipod 80g and i see that on the summary it says i have 177mb in 'other' i don't know what that refers to anyone have similar probs

  • Quick Time video import problem (MXPro, not 8)

    I first posted this a few days ago, the help I received has not been too useful, though, so I'm trying again. I've got a flash file (.fla) whose purpose is to create a playable movie slide to be used in another flash presentation. It is a template, a

  • Icons in JClient doesn't appear

    Hi guys, I have a trouble to display Icons in an application that is implementing a Jmenu. menuItemII3.setIcon(new ImageIcon("images/paste.gif")); menuItemII2.setIcon(new ImageIcon("images/copy.gif")); My source is on: ..\src I copied my images under

  • The file "iTunes Library" cannot be read

    Hi I'm running a MBP with "all software up to date" including LION OS 10.7.2.  My iPhone is running 5.0.1.  Every time I try to open iTunes on the MBP I get this message: "The file "iTunes Library" cannot be read because it was created by a newer ver

  • Itunes import only plays 1 song from album

    I just imported an album to my ipod following a purchaese from itunes. When i moved the songs to my ipod only 1 song will play. If i select another song the ipod always takes me back to the song it only wants to play from this album. Btw the songs do