Can't import package from package

Ok, here's the deal:
In a folder i have some class files, and some packages i made myself.
lets say one package is package1, and the other is package2
now in the root folder i can have a class file that has the statement
import package2.*;and it works fine.
but in a class file that is in package1 i get a compile error when i type
import package2.*;so the question is:
how do i use the class files in one package in another package?
I see sun does it all the time.
example the Graphics2D class:
package java.awt;
import java.awt.RenderingHints.Key;
import java.awt.geom.AffineTransform;
import java.awt.image.ImageObserver;
import java.awt.image.BufferedImageOp;
import java.awt.image.BufferedImage;
import java.awt.image.RenderedImage;
import java.awt.image.renderable.RenderableImage;
import java.awt.font.GlyphVector;
import java.awt.font.FontRenderContext;
import java.awt.font.TextAttribute;
import java.text.AttributedCharacterIterator;
import java.util.Map;that imports a package that isn't in awt, even though the class file itself is in awt

when you compile, compile from the root folder:
root folder> javac package1/sourcecode.java

Similar Messages

  • How can I import photos from iPhoto-library to edit in Photoshop CC? - and save it back to the iPhoto-library?

    How can I import photos from iPhoto-library to edit in Photoshop CC? - and save it back to the iPhoto-library?

    How to access iPhoto images for use in Photoshop
    1. In the Finder, navigate to Users > [user name} > Pictures > iPhoto Library. 
    2. Control-click the iPhoto Library file and choose Show Package Contents.
    3. A Finder window opens that shows the contents. The Masters folder (or called Originals folder) contains all of the photographs that are in iPhoto. 
    Photoshop cannot access this folder, but if you make a duplicate of the folder, the dupe will be accessible -- so:
    4. Control-click the folder named Masters (or Originals) and choose Duplicate. 
    5, Drag the duplicate folder which is named "Masters copy" or “Originals copy” from the iPhoto Library Finder window to the Desktop.
    6. Open images in Photoshop from file on desktop.
    7  Rename the folder and move it elsewhere (probably to the Pictures folder), if desired.  

  • How can I import images from iphoto with the albums and folders?

    How can I import images from iphoto without losing the albums and folders I already created?

    In Organizer, you can choose File>get Photos and Videos>From iPhoto.
    Importing from iPhoto'09: If in iPhoto, you organize your media using photo references, that is, the media actually does not reside inside iPhoto library package, and are referenced through original locations, Organizer does not create new copies of those media and just refer to the original location. but if your iPhoto media reside inside iPhoto library, Organizer creates a copy all media in your pictures folder, also imports albums and tags and other metadata.
    Importing from iPhoto'011: In this case, Organizer always creates a copy of your photos in your pictures folder which resides inside iPohto package. It does not import the albums and other metadata like star rating, caption etc.
    Hope this information helps!
    regards,
    vaishali

  • How can i import contacts from another AIM account to this new one

    If you reference my last ichat question, you will see that I have had serious problems and had to create a new account.
    How can I import contacts from another AIM account to this new one??

    Hi,
    Use AIM for Mac and use the Export and Import features.
    Other than that it is a question on making sure every Single Buddy has more than just their Screen name in the IChat Address Card so it is added to the Address Book and dragging them back from there
    9:08 PM Thursday; February 7, 2008

  • Can I import video from a Firewire camcorder using the Thunderbolt to Firewire Adapter?

    I have an older camcorder that has a firewire interface. My new iMac does not have any firewire ports. Can I import video from the camcorder using a Thunderbolt to Firewire Adapter or is the Thunderbold adapter only used for hard drives and displays?

    Rather than an adapter, I would suggest you purchase a 4 pin to 9 pin Firewire 800 cable to run from the camera to the Thunderbolt to Firewire adapter. Those FW 400 to 800 adapters frequently do not work so well for importing video in my experience.
    The Firewire cables are pretty inexpensive if you get them online. For example try Monoprice.
    http://www.monoprice.com/products/product.asp?c_id=103&cp_id=10301&cs_id=1030104 &p_id=3541&seq=1&format=2

  • I have home sharing on 2 computers, can i import music from on computer to the other permenently?

    i have home sharing on 2 computers, can i import music from on computer to the other permenently?

    if the copy files ... when adding option is checkmarked in iTunes > preferences > advanced, files you transfer via homesharing are copied permanently to the other library.

  • How can I import pictures from my iphone to PC which I imported to the iphone from another PC? The folder doesn't show on my computer. I see all other pictures I took with the phone but not the imported folder.

    How can I import pictures from my iphone to PC which I imported to the iphone from another PC? The folder doesn't show on my computer. I see all other pictures I took with the phone but not the imported folder.

    Photos that were synced from a computer won't show for copying to a computer. If you want to copy them back then you will need a third-party app on your phone such as Simple Transfer which can copy them off via your wifi network. But photos are 'optimised' when they are synced to a device, any that you then copy back to a computer may not be exactly the same as they originally were on your computer (e.g. their dimensions might be different and their colours may look a bit different).

  • How can i import contacts from a csv file to "iCloud Contacts"?

    How can I import contacts from a csv file to "iCloud Contacts"?

    The only way I know of to import cells from a csv file is by creating a new file.  But then you can select the desired cells and copy them to the other file.  I just did it to be sure it works.
    1. Create the new spreadsheet file via the upload command.
    2. Select the cells (table) that you want to move to the other file and press command+C (copy).
    3. Close the new file and open the existing file.
    4. Select the top/right cell of the area to receive the copied "table" and press commant+V (paste).
    I hope this is what you're trying to do!

  • How do I add e-mail addesses to my new ipad mini or can I import them from my PC - e-mail otherwise working OK?

    How do I add e-mail addresses on my new ipad mini or can I import them from my PC - e-mail othwise working OK?

    You have to manually add:
    Settings > Mail, Contacts, Calendars > add here
    Read here: http://help.apple.com/ipad/7/#/iPad995bb603

  • How can i import contacts from my regular sim to iphone 5 (nano sim)

    how can i import contacts from my regular sim to iphone 5 (nano sim)

    Sync the phone with the regular sim to the appropriate program on your
    computer. When you set up the iPhone 5 in iTunes on that computer, you
    will be offered the chance to import the contacts, etc.
    Or take old phone and new iPhone to your wireless provider. They have the
    equipment to do this quickly.

  • : how can I import mp3s from my gmail account into my iTunes application so that I can import audio for recording into GarageBand ?

    : how can I import mp3s from my gmail account into my iTunes application so that I can import audio for recording into GarageBand ?

    Save the file from Gmail onto your computer and add it to iTunes.  How you save from Gmail is a Gmail question (their own support pages), not an iTunes question.

  • Can i import contacts from one browser to G mail?

    I have account in my country web. I also open account in Gmail. I have two questions
    1-Now all my mails are coming to gmail account and i have to reply from gmail account. i did it by mistake to import all mails. All my replies are also coming in Gmail. Can it be reversed? Can I stop it?
    2- Can i import contacts from my www.emirates.net.ae account ?
    Please reply URGENTLY. I AM IN A BIG PROBLEMS. AS I AM USING THIS AS COMPANY ACCOUNT EMAILS.

    This is not a Firefox question.
    You have to export your contacts in CSV format, then import them into Gmail. For your other question, see the Gmail support page.
    * https://support.google.com/mail/

  • Can you import music from an itunes from one computer to another?

    can you import music from itunes on one computer to another?

    There are a number of things you could do. One would be to network the to computers and transfer your iTunes folder from one to another. You can also use your iPod as a hard drive and move the folder with it though that would be considerably slower than computer to computer. Here are a few links that may help you out:
    New PC & moving iTunes library
    iTunes: Copying music between authorised computers with iTunes for Windows
    How to use your iPod to move your music to a new computer
    This article describes moving your music to another drive on the same computer but could be adapted to moving between networked computers: Moving your iTunes Music Folder

  • Can I import HTMLs from inside the project and use as portlet page ?

    As you know, I am using Java Studio Creator 2 Update 1 for my current portal project. I have created JSR-168 JSF Portlet Project for my portlet development.
    As I have some html pages ready for my development,
    Can I import HTMLs from inside the project and use as portlet page for my project?
    I did the followings steps:
    1: In side the project - File -> Add Existing Item -> Web Page ( imported test.html page from my local folder)
    2: Let it convert some of the tags for me ( so now it becomes - �test.jsp� )
    3: Set it to initial view.
    4. A default portlet page � newPortletPage.jsp is still there with no initial view.
    Now after doing this, No Visual Designer and Properties window available to for that �test.jsp� page. Though it allowed me to �build� the project successfully.
    When I build and run the portlet application, got the error message �Error occurred in portlet!� on Pluto Portal. Please advice.

    You do not open fcpproject files. You don't double click or anything else. The files have to be in the correct folder structure in the Final Cut Projects folder and the application opens them automatically. Can you post screen shots of the Final Cut Projects folder and its location.

  • How can i import tables from a different schema into the existing relational model... to add these tables in the existing model? plss help

    how can i import tables from a different schema into the existing relational model... to add these tables in the existing relational/logical model? plss help
    note; I already have the relational/logical model ready from one schema... and I need to add few more tables to this relational/logical model
    can I import the same way as I did previously??
    but even if I do the same how can I add it in the model?? as the logical model has already been engineered..
    please help ...
    thanks

    Hi,
    Before you start, you should probably take a backup copy of your design (the .dmd file and associated folder), in case the update does not work out as you had hoped.
    You need to use Import > Data Dictionary again, to start the Data Dictionary Import Wizard.
    In step 1 use a suitable database connection that can access the relevant table definitions.
    In step 2 select the schema (or schemas) to import.  The "Import to" field in the lower left part of the main panel allows you to select which existing Relational Model to import into (or to specify that a new Relational Model is to be created).
    In step 3 select the tables to import.  (Note that if there are an Foreign Key constraints between the new tables and any tables you had previously imported, you should also include the previous tables, otherwise the Foreign Key constraints will not be imported.)
    After the import itself has completed, the "Compare Models" dialog is displayed.  This shows the differences between the model being imported and the previous state of the model, and allows you to select which changes are to be applied.
    Just selecting the Merge button should apply all the additions and changes in the new import.
    Having updated your Relational Model, you can then update your Logical Model.  To do this you repeat the "Engineer to Logical Model".  This displays the "Engineer to Logical Model" dialog, which shows the changes which will be applied to the Logical Model, and allows you to select which changes are to be applied.
    Just selecting the Engineer button should apply all the additions and changes.
    I hope this helps you achieve what you want.
    David

  • I can not import photos from PC to my Ipad, it says iTunes will no longer sync photos to the iPad

    I can not import photos from my PC to the iPad, it says  iTunes will no longer sync photos to the iPad

    YES Terence!  Thank you. Exporting allowed me to move my photos from iPhoto into the Burn Folder on my desktop.   But that doesn't explain why I'm having to go that route now.   Have I done something (accidentally changed some setting) on my computer that will not allow me to just click and drag anymore?   I really liked the convenience of the click and drag option. 
    I don't have the time tonight to export and burn a lot of CD/DVDs.  I'll try that tomorrow and make sure my photos are moving properly.  I also need to export photos to my external hard drive to make sure that route is working. 
    Wouldn't you know that my Apple Care Plan runs out this Wednesday?!  I need to make sure everything is working properly before that expires. 
    Thank you so much for your help.   I really, really appreciate it.

Maybe you are looking for