How do you add a new class package?

Hi guys,
I have just started using J2SE and I need to add a new class definition. This is to be imported at the start of the program,
ie. import cs1.Keyboard;
The thing im not sure of is, how do I make the compiler know where the Keyboard class is? Which directory do I have to put it in?
If anyone has any idea, it would be really appreciated. Thanks

Put Keyboard.class in a directory named cs1 and add the parent of cs1 to your CLASSPATH when you compile and run:
http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html
MOD

Similar Messages

  • How do you add a new thumbnail to a slide show when using in-browser editing?

    how do you add a new thumbnail to a slide show when using in-browser editing?

    At this moment you can’t add pictures to a slideshow. You only can replace them.

  • How do you add a new scene to beginning without disturbing movie with music and beat markers?

    How do you add a new portion to the beginning of your project without disturbing the rest of the project that already has perfectly place clips attached to beat markers with the music ?
    I forgot to add a tittle intro before the music starts with the attached pictures. When I try to add the whole project goes out of sync.
    I want to just add an intro without disturbing the entire project.
    Thanks

    Well, if you re-attach your background music under the first clip, the starting point will be at the start of that clip so I think it will still be in sync.  If not it's simply a matter of nudging the music track a bit along the timeline.  Comparing the audio waveforms of the two tracks should help with this.  When its right you can delete the track in the background music position.  Now you can add what you like before the first clip without affecting sync.
    Geoff.

  • How do you add a new device to itunes?

    How do you add a new device to Itunes?
    Also how do you download the new version of Itunes from the iTunes site?

    Click on the get the latest iTunes (assuming a PC)
    http://www.apple.com/support/itunes/
    The connect the iPod to your computer and it should show in iTunes. If not then
    iOS: Device not recognized in iTunes for Windows
    Then just sync.
    iTunes: Syncing media content to iOS devices and iPod

  • How do you add a new icon to the home screen?

    How do you add a new icon to the home screen?

    The only new icons you can add to your home screen are webclips, which can be added by using the "+" button in safari on the desired web page.
    You won't be able to add new apps until February when the SDK is fully seeded to developers.

  • Just uploaded iso7 , . . .hate it!  Can you change background colours?  How do you add a new item/activity to the schedule? In notes the font has changed, can I change it back and the link colour is now yellow instead of blue, can I change it?  Thanks

    Just uploaded iso7 , . . .hate it!  Can you change background colours?  How do you add a new item/activity to the schedule? In notes the font has changed, can I change it back and the link colour is now yellow instead of blue, can I change it?  Yellow on white is harder to read. Thanks

    Another question. How do you bookmark something.  It was so easy before, why did they change it?  Can I uninstall it?

  • How do you add a new ipod touch to an existing library?

    How do you add a new device, an ipod touch to an existing library? The computer isn't recognizing therefore new device.

    Open itunes, connect ipod, select what you want to sync, sync.

  • How do you add a new rule in inspect element?

    In inspect element how do I add a new rule? I come from Chrome and this is a necessity for me.

    I don't think that this is different in Firefox than in Google Chrome.
    In the right pane, select the Rules tab.
    Click the element {} line in "This element" (between the curly brackets) and type the property name.
    Type a colon to separate the name and the value.
    *https://developer.mozilla.org/Tools/Page_Inspector
    You can also open the Style editor and add extra rules or modify existing rules.
    *https://developer.mozilla.org/Tools/Style_Editor

  • How do you add a new calendar entry on iphone 4s

    I have the Iphone 4s and the Calendar app does not have the "+" symbol to add a new calendar entry.  How do you add new entries in the Calendar app?

    Nevermind.  I saw the previous discussions on this topic after my post.

  • How do you add a new group in contacts

    How do you add a group in contacts either on iPod touch or ipad

    If your contacts are synced to iCloud you can login to www.icloud.com with a browser. On that website you have the opportunity to create groups, assign contacts to groups etc. Note that the iPad browser won't let you do that; you have to use another computer.
    Once you've done that, the Groups red ribbon magically appears in your Contacts on the iPad.
    It's a pity there's no way to do that on the iPad itself (that I've found) but at least you don't need a 3rd party app to do it. Another obvious oversight is that there doesn't seem to be any direct way of emailing a whole group from the iPad.
    The Apple website talks up the ability to use Groups on the iPad but my guess is that a lot of users will be wondering how on earth to do it.

  • HT4623 how do you add a new apple id from itunes onto your phone?

    DOES ANYONE KNOW HOW TO ADD A NEW APPLE ID THAT YOU CREATED ON YOUR MACBOOK ON ITUNES ON TO YOUR ACTUAL PHONE?

    On the phone goto...
    Settings > Store > Apple ID = Sign Out... Then Sign In using the Apple ID you want...

  • How do you add a new user to a desktop

    I'm trying to add a new user on my desk top but can't work out how to do it...?

    You cannot add a new user to your desktop.   Each user account is independent.  You add them with the Accounts system preferences.  You need to do this from an administrator account.
    Open the Accounts system preferences.  Cliick the lock in the lower left and enter your admin password to the prompt.   Now you can use the plus just above the lock to create another account.

  • How do you add a new address

    This is crazy I can't find any way to add a new address to my address book in Mail. I want to type in a new address. I do not want to add an address from a received or sent Email. I checked Mail Help and it said to go to File > Card and enter the info. With the Address book open I go to File and it doesn't have any choice for Card. So how do I do this. In Outlook Express you simply click on new and enter the new address. I can't believe Apple has made this so obtuse.
    Thanks for any Help
    Phil

    Hi Phil
    You ask I want to type in a new address. I do not want to add an address from a received or sent Email.
    OK, to do this open Address Book the application, not from Mail, but from the Dock if it is there, or from the folder Applications.
    Now do you see the + sign?
    In Mail when you click on the window menu > Addresses opens up, but that is not Address Book, just the addresses from it.
    regards roam

  • How do you add a new playlist to the ipod 5th gen?

    i am just wonderring how to create a new or rename a playlist on the ipod nano 5th generation.

    go on itunes add a new play list by looking at file then add what songs you want on there and after that you sync your ipod

  • HOW do you add a new alarm sound in your iCal?

    I was able to do this in the old iCal but now having lepard and the new 3.0.3 iCal I can't figure out how to add a new sound in the alarms... I'm so over the basso and purr.. I need something else that I've created to add into this mix. HELP!!

    I believe you just need to put your sound files in ~/Library/Sounds/, and they will appear automagically in iCal. Note that not all file formats might be supported.

Maybe you are looking for

  • Business Partner Roles and Account Life Cycle management in IC

    Hi all, We have IC agents creating prospects but also back office people (i.e. sales staff) creating prospects. Back office staff uses account life cycle management to identify the prospect role. However, I noticed that the business partner role (pro

  • My ipad 4 is dying,

    why my ipad 4 is always dying for 5minutes?? if its already died it has the symbol apple and black background for 5 minutes but why ?

  • Issue about alv

    hi,         i am haveing one alv list output in this list output         i have 3 users , first user can see the two colums and second user can see 3 coloums and 3rd user can see 4 coloums, could u plz explain the code with comments

  • Workflow Problem between  SRM & ECC

    Hi,   We are facing a typical scenario in the workflow for Purchase Requisition. System: 1.     SAP ECC 6.0 2.     SAP SRM 5.0 Problem Description: 1.     In our landscape, ECC is connected to SRM portal for creation of PRs through SRM. 2.     For th

  • I cannot enter a nickname in the game centre

    Unable to enter a nickname in the game centre