Package question !! Help

Hi I am trying to get a grip on packages in java.
Under my root directory I have created the following directory structure
>root
>com
>foo
>test1
PackageTest.java
>test2
PackageTest.java
The source code for the files PackageTest.java in test1 dir and PackageTest.java in test2 dir is as under:
package com.foo.test;
public class PackageTest{
public static void main(String[]args)
System.out.println("Hello World");
com.foo.test2.PackageTest t = new com.foo.test2.PackageTest();
package com.foo.test2;
public class PackageTest{
public static void main(String[]args)
System.out.println("Hello World");
Now when I compile PackageTest.java in the directory test1, (root\com\foo\test> javac PackageTest.java)
I am getting the error:
package com.foo.test2 doesn't exist
Please show how to compile and execute PackageTest.java in the dir test1 ??
Thanks
JN

You first compile the test2 PackageTest.java file using the command javac -d PackageTest.java which will create a folder sturcture as you wanted that is com.foo.test2 in this the file will be palced then you copy that file and place in where you want to test1 to get from then try to execute the test1 hope this should work fine.
OR
You first compile the test2 PackageTest.java B'coz you r using this file in the test1 folder. so do that.
All the best.

Similar Messages

  • Cant download itunes, because ' there is an error with windows installer package' please help?

    cant download itunes, because ' there is an error with windows installer package' please help?

    I am getting the same message when I try to install the latest version of iTunes, I am running on Windows Vista Home Premium. I have tried so many different things to try to correct this and have now completly unistalled it from my laptop..... Now I have no iTunes what-so-ever on it and still can't install it. I found an older versin of iTunes and it installed without any problems, but I can't access it because my library was created on a newer version! Talk about frustrated..... WE NEED HELP!!!!!

  • Apple id is disabled, to reset the password I do not know the email and security question. help what to do?

    apple id is disabled, to reset the password I do not know the email and security question. help what to do?

    Hi ingaosk,
    Thanks for the question. Based on what you stated, it seems like you did not receive the reset email. I would recommend that you read this article, it may be able to help you isolate or resolve the issue.
    If you didn't receive your Apple ID verification or reset email - Apple Support
    Thanks for using Apple Support Communities.
    Cheers,
    Mario

  • HT1349 I for get security question help my too rest , send to my mail :

    I send email for serves and send to my by email ling I tray eat not help my to rest my security question .
    No we to send security question to my email or what I down I tray from many days
    The serves send that and it,s not help : read it
    Hello,
    The following information for your Apple ID *********** was updated on 02/03/2013:
    Phone number(s)
    If these changes were made in error, or if you believe an unauthorized person accessed your account, please reset your account password immediately by going to iforgot.apple.com.
    To review and update your security settings, sign in to appleid.apple.com.
    This is an automated message. Please do not reply to this email. If you need additional help, visit Apple Support.
    Thanks,
    Apple Customer Support
    Tel my what I do I need my program and my many in my account and wan I need to seal program he asking security question , what I do
    I for get security question help my too rest , send to my mail : ***********
    <E-mail Edited by Host>

    Do not post your email adress here.
    Open your browser and go to iforgot.apple.com and follow the instructions there.

  • HT201363 I forget security question, help me recover?

    I forget security question, help me recover?

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (104340)

  • About Java 2 opaque font color question, help needed!

    About Java 2 opaque font color question, help needed!
    I was trying to test opaque font (the string has a foreground color and a background color), but i can't find the method for doing that.
    i can change foreground by Graphics2D.setPaint(Color.black).
    Anybody know how to change the background of the string?
    Thanks!

    Hi. The way I'd do it would be to use the font metrics to find the length of a string and draw a rectangle and then drawstring over the rectangle. If you want an example, I can post it although I suspect theres a better way.

  • I forgot my security queStions help me!

    I forgot my security queStions help me!

    If you have a rescue email address set up on your account then you can try going to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address set up then go to Express Lane  and select 'iTunes' from the list of 'products' in the middle of the screen.
    Then select 'iTunes Store', and on the next screen select 'Account Management'
    Next choose 'iTunes Store Account Security' and fill in that you'd like your security questions/answers reset.
    You should get an email reply within, I think, about 24 to 48 hours (and check your Spam folder as well as your Inbox)

  • "unfortunately package access helper has stopped"?

    I'm not even sure how to phrase this.
    The message "unfortunately package access helper has stopped" has started to pop up whenever I access my settings. I own a brand new Samsung Galaxy S4, and i've looked everywhere for a solution, and can't seem to find one. Can anyone give me a solution for this error message? I would love to not have to restore my phone to it's factory settings.

        We want to make sure you have the full access to your device, thatlifeisbeauty. Does this happen when you are in a certain application? If so, please follow these steps to clear the application cache. Here are the steps http://vz.to/1jNR0uO
    RobinD_VZW
    Follow us on twitter @VZWSupport

  • Package access helper in htc

    package access helper is draining my batter in HTC for second time...magically fixed itself after 3 weeks of draining battery in 3 hours.  now doing it again.  nobody seems to know how to fix it...verizon store and htc clueless.  any thoughts?  (yes popped battery out, yes did factory reset, yes bought new battery...none of these are the issue)

        eric97229,
    I definitely understand you need your batter to last longer than what it is right now, let's work on this! Use http://vz.to/1pGkBsA to determine if it's working as it should. Was the factory reset performed without Automatic Restore, meaning your phone is as new(content-wise)?
    AdaS_VZW
    Follow us on Twitter at @VZWSupport 

  • Sister was using my iPod, she changed Apple id to hers, then forgot the iTunes password, now it's disabled she doesn't know what backup email she use or the security questions HELP can Apple reset my iPod?

    sister was using my iPod, she changed Apple id to hers, then forgot the iTunes password, now it's disabled she doesn't know what backup email she use or the security questions HELP can Apple reset my iPod?

    Is there a way to find my Apple ID Name if I can't remember it?
    Yes. Visit My Apple ID and click Find your Apple ID. See Finding your Apple ID if you'd like more information.
    How do I change or recover a forgotten Apple ID Password?
    If you've forgotten your Apple ID Password or want to change it, go to My Apple ID and follow the instructions. SeeChanging your Apple ID password if you'd like more information.
    Forgotten Security Questions/Answers
    You need to contact Apple by:
    1 - Use the Express lane and start here:
    https://expresslane.apple.com
    then click More Products and Services>Apple ID>Other Apple ID Topics>Forgotten Apple ID security questions.
    or
    Apple - Support -form iTunes Store - Contact Us
    2 - Call Apple in your country by getting the number from here:
    http://support.apple.com/kb/HE57
    or          
    Apple ID: Contacting Apple for help with Apple ID account security
    3 - Use your rescue email address if you set one up
    Rescue email address and how to reset Apple ID security questions
    For general  information see:
    Apple ID: All about Apple ID security questions

  • HT5312 forgot the answers to security questions. help.

    forgot the answers to security questions. help.

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Class Access & Package Question - Please Help

    Hi,
    I have a question regarding how to access a class in an abnormal directory structure.
    Here's the type of directory structures:
    -Documenter
    -com
    -xyz
    -business
    -AppBase
    -com
    -xyz
    -util
    I have a class called Hash that is in the util directory and I want to access it from a class in the business directory. How can I do that? Any help would be appreciated.

    Thanks, I should have mentioned that WebApp is the same parent directory for the Documenter & AppBase directories:
    -c:\WebApp
    -Documenter
    -com
    -xyz
    -business
    -c:\WebApp
    -AppBase
    -com
    -xyz
    -util
    Can I still just make sure the that the classpath contains the above directories? Thanks in advance.

  • Adobe Reader 9.3.2 silent install package questions, please ...

    Hello:
      I am a network and Desktop Support person for a higher education facility.  I was asked to take over automating software application
    installs.
      I have a script process, created by Auto-It (Scite script editor), that has been working well for Adobe Reader 9.1 with updates to 9.1.1, 9.1.2 and 9.1.3 (found on the Internet) -
    msiexec /i \\<server>\<path>\AcroRead.msi TRANSFORMS=\\<server>\<path>\AcroRead_10132009.mst /passive /norestart /update \\<server>\<path>\AdbeRdrUpd911_all_incr.msp;\\<server>\<path>\AdbeRdrUpd912_all_incr.msp; \\<server>\<path>\AdbeRdrUpd913_all_incr.msp
      My questions:
    Is there a similar process for installing Adobe Reader 9.3 silently and then updating to 9.3.2?
    If so, what are the steps, ex. expand/extract the initial 9.3 .EXE, then create a transform using Orca/<transform making of choice>, etc.?
    With having read of some issues in this forum regarding Adobe Reader 9.3.2, should I continue using 9.1.3 and wait?
      Thank you for your time.

    Well we have a wiki where I work, and here is then entry I have created on how to deploy Adobe Reader. See if any of this helps, if not, we'll take it from there.
    Deployment
    It is HIGHLY recommended that you read and follow the directions of the deployment guide provided by Adobe located at http://www.adobe.com/devnet/acrobat/pdfs/deploying_reader9.pdf. The documentation located here is simply for a quick reference for those who have already read the guide.
    The rights to distribute Adobe Reader must be obtained by filling out the form found at http://www.adobe.com/products/reader/rdr_distribution1.html. After filling out the form and being accepted to distribute Adobe Reader, you will receive an email with a link to download the redistributable version of Adobe Reader. You will be prompted to download a .exe package containing the Reader MSI file. The general form of the command to convert a Nosso-compressed file to an MSI package is:
    <path to>\AdbeRdr90_en_US.exe [<switches>...]
    Switch
    Description
    -nos_ne
    Do not execute any file after installation (overrides the -e switch) This switch should be used if user only wants to extract the installer contents and not run the installer.
    -nos_o
    Specifies the name of folder where the contents of the expanded package are to be placed. The folder name should be enclosed in quotation marks. It is best if you do not use an existing folder, and there should be no space following the “-nos_o”.
    For example:<path to>\AdbeRdr90_en_US.exe -nos_o”TestFolder” -nos_ne
    Using the extracted MSI, create an Administrative Installation Point (AIP) using the command-line:
    msiexec /a <path to>\AcroPro.msi transforms=<path to>\AcroPro.mst
    The AcroPro.mst transform file is created by the Adobe Customization Wizard 9
    You can apply any patches that may have been released since the major version release. Use the command-line:
    msiexec /a <path to>\AcroPro.msi /p <path to>\AdbeRdrUpd931.msp;<path to>\AdbeRdrUpd932.msp
    Once all this is complete, you can fully deploy the software by running the command-line:
    <path to>\AcroRead.msi transforms=<path to>\AcroRead.mst /qb
    More information can also be found in the Enterprise Administration Guide

  • New/Additional phone line question- help please!

    Hi
    I am after some advice, and every time I call BT I get passed around as I am not 100% on what to ask for, or who I should speak to.
    Basically, we have 2 phone lines coming into the house.  One line/number + broadband signal goes via a repeater to the office which is a separate building across the garden (approx 300m but I am not sure on the actual distance).  The signal is not great, for the broadband particularly - often drops out etc.  To solve this we would like a new physical line installed in the office building to give us a separate phone and broadband package to that of the main house, but ideally keeping the same number as we currently use in the office.  The office is used everyday for working from home and so is important to us.
    Does that make sense?  I fully expect that an engineer will need to look at the site, and there will be a (significant) charge for the line to be installed (underground pipe work for cables already exists from house to office building and so this could be utilised).  Do I just place an order for a new line online, and wait for an engineer's visit?  Can I deal with changing the number at a later date if that is easier for the system to deal with?  Last time I rang BT, I was told I needed to speak to the exceptions team, when I was put through to them she told me all I needed to do was speak to customer services, customer services thought I was trying to move home and then didn't seem to understand what I needed (but it was probably how I was explaining it!).
    I would be so grateful if someone could point me in the right direction, or give me tips on what to ask for.  My main worry is keeping the same phone number as it would be so much easier.
    Thanks in advance
    MPA

    this link may help http://www.openreach.co.uk/orpg/home/network/whoar​eyou/selfbuild/selfbuild.do
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

  • Exp/imp procedures, functions and packages question

    Hi
    I've a 9i R2 version Oracle database. I would like to export procedures, functions and packages from a schema. How do I do that?
    Is there any script or command lines can provide?
    Thanks

    Hello user12259190.
    You can do an export of the user itself, excluding table data as inH:\>exp
    Export: Release 10.2.0.1.0 - Production on Tue Dec 22 11:22:52 2009
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Username: db_user@db_sid
    Password:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, Data Mining and Real Application Testing options
    Enter array fetch buffer size: 4096 >
    Export file: EXPDAT.DMP >
    (2)U(sers), or (3)T(ables): (2)U > 2
    Export grants (yes/no): yes > no
    Export table data (yes/no): yes > no
    Compress extents (yes/no): yes > no
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    server uses UTF8 character set (possible charset conversion)
    Note: table data (rows) will not be exported
    Note: grants on tables/views/sequences/roles will not be exported
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user DB_USER
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user DB_USER
    About to export DB_USER's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export DB_USER's tables via Conventional Path ...
    . . exporting table  TABLE_NAMEs
    EXP-00091: Exporting questionable statistics.
    . exporting synonyms
    . exporting views
    . exporting stored procedures
    . exporting operators
    . exporting referential integrity constraints
    . exporting triggers
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting materialized views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh groups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully with warnings.Unfortunately, you can't export just the objects you want to unless they are tables.
    Using import (imp) you can list the content of your packages, procedures, functions, views, etc. and perhaps that will give you what you need.
    Another choice would be to useSELECT * FROM user_source ORDER BY 2, 1, 3;to list the code.
    Hope this helps,
    Luke

Maybe you are looking for

  • How to see a stream of a signal in the Data View while monitoring a signal.

    Hi! I'm migrating from an older data acquisition software for SignalExpress. With the DAQ old had a way to monitor the signal so that the software screen I saw on the timeline and as I increased or diminished the scale of the X axis (time), I saw mor

  • Using java on windows vista 64 bit

    Hi, I am using a program for the univercity which use java, and it work fime on 32 bit operation systems such as ubuntu linux and XP/vista... but when I try to run it on the vista 64 bit on my AMD Athlon 64 bit I get the msg: Exception in thread "mai

  • 640x480 layout broken in iTunes 5

    Moved this over from the Installation forum at the suggestion of b noir. Just installed iTunes 5. Running on XP SP2, nVidia card hooked up to the TV, 640x480 output through S-Video. In fullscreen mode, the equalizer/'now playing' panel is hidden -- a

  • Funnctionality of the function module :BAPI_ACC_GL_POSTING_CHECK

    HI Gurus, Please help me in understanding the functionality of the FM   "BAPI_ACC_GL_POSTING_CHECK". Also let me know what will be the input parameters required for the same. Thanks Tausif

  • Net pay with bank details for employee

    hi all gurus, Is there any standered report which displays Personnel number, Pname, Net pay(for month), EE Bank Ac number, Bank key.