Hi, i'm new to java. need help setting the path in win XP

hi all,
i'm new to java technology. i've just downloaded the JDK and ran my first java program (hello world). i love it. java's gr8. i need help. i run win XP and how can i setup the path sothat i can execute my programs from the root dir??? any help in this direction will be greatly appreciated. please email me @ [email protected]
Best regards
Mrinal

Go to Start menu and select Control Panel. In the Control Panel, double click on System. In the System dialogue, choose the Advanced tab. Then click on Environmental Variables. Select Path and Edit. Put ;c:\j2sdk1.4.0\bin at the end of the Path (or c:\j2sdk1.4.0\bin;) at the start of the Path. That's it.

Similar Messages

  • New to java(need help on access specifier)

    hi! i am new to java.plzzzzz help me i have to make a project on access specifier's i know all theroy.but
    i am unable to understand how i can define all specifiers practicly.i mean in a program.
    thanks.plzzzzzzzz help me

    the most common project i can think of is a payroll system..
    you can have real implementation of all the access specifiers
    good luck

  • New to java-need help for debugging

    hey there
    i just wanted my first program in java and here it is below with the error when i'm compiling it, i cant understand whats wrong:
    public class SquareArea {
    public static void main(String[] args); {
    float length;
    float width;
    float SquareArea;
    System.out.println ("Please enter length"+ length);
    System.out.println ("Please enter width"+ width);
    SquareArea= length*width;
    System.out.println ("The area of the square is" + SquareArea);
    The error is:C:\Documents and Settings\User\Desktop\SquareArea.java:5: missing method body, or declare abstract
    public static void main(String[] args); {
    ^
    1 error
    Tool completed with exit code 1

    Reading inputs from the command line is a bit complicated in java, here is how it is done:
    first add the line:
    import java.io.*;to the beginning of your program.
              float length;
              float width;
              float SquareArea;
              BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
              try
                   System.out.println ("Please enter length:");
                   String lengthStr = reader.readLine();
                   length = Float.parseFloat(lengthStr);
                   System.out.println ("Please enter width");
                   String widthStr = reader.readLine();
                   width = Float.parseFloat(widthStr);
                   SquareArea= length*width;
                   System.out.println ("The area of the square is" + SquareArea);
              catch (IOException ioe)
                   System.out.println("Error reading values.");
                   ioe.printStackTrace();
              }

  • New airport user need help setting up a pc on the network

    went and bought a airport extream today and my mac works fine on it but i also have a pc and need help getting it to work with the airport express. it seems to see the airport in the network slection screen but after i put in the pass i get nothing and it returns to the "chose a wireless network" can anyone help?

    Thanks for the reply.
    That's interesting, I guess I had assumed that would be a basic thing.
    Right now the 4000 number is in port 1, and then 4244 is in port 2. So if no one else is on the phone, and my  boss picks up his phone, dials 9 then XXX-XXXX, he will be routed outbound on the 4000 line on port 1. Then while he's talking, if I pick up the phone and dial 9 then XXX-XXXX, I will be routed out on the 4244 line on port 2.
    Am I understanding that correctly?
    If that is the case, then that is a bit frustrating. Our 4000 line has everything on it, call waiting, caller id, long distance, etc. But the 4244 line is just a basic service. So if I'm calling local or toll free, I don't want to tie the other line up in case someone else needs to make a long distance call to a client. Is there any work around to that at all? Is there any way to use steering digits to point the call to the right line? Would we have to put the PSTN lines on seperate SPA400's?
    Again, any comments and suggestions are much appreciated!
    Message Edited by VoIP_Me on 07-30-2008 06:27 AM
    Message Edited by VoIP_Me on 07-30-2008 06:28 AM

  • Just bought new time capsule- need help setting up WiFi network with another router

    Here ismy situation.
    I had a wireless network setup up at home using a Belkin wifi router.
    I have 2 macBooks (1 pro, 1 air) and 2 iphones that connect wirelessly and a desktop PC that is hard wired to the ethernet port.  In addition, I have a Verizon wireless network extender plugged in by ethernet.  All of the hard-wired gear is in our 3rd floor attic office (and the wireless signal was strong throughout the house).
    The Belkin wifi router was plugged into a wall ethernet jack that is in turn wired into a Linksys router in the basement (along with multiple other ethernet ports througout the house) and is hardwired to the Cable modem next to it.  All of the hard-wired ethernet stuff (including the router in the basement) was there when we bought the house, and I have no clue in the tangle of wires how to sort them out (but don't really think I need to)
    I just purchased a TimeCapsule to do wireless backups of my 2 macbooks, and tried to set it up alongside the existing wireless modem.
    Needless to say, this did not work well. I called  AppleCare, and was told that the TimeCapsule needs to be the "1st" wireless adapter, so I went into the basement, and connected the time capsule directly to the cable modem, and then out to the basement router.  The Belkin router still needs to be in the attic to supply the PC and the Verizon adapter (so it is near a window for GPS signal). 
    If I try to name the WiFi network the same SSID on both the TC and the belkin router (to have dual signal strenth coverage) the whole thing gets messed up and the TC cannot be "found" by the aiprort Utility software.
    What I have done now is that I have 2 side-by-side wireless networks with 2 unique names (actually 3, because I enabled the 5Ghz signal on the TC), but our wireless devices do not "switch" automatically from one SSID  to another stronger signal SSID as we move through the house
    Here's the question: How do I name them the same so that the devices will switch effortlessly to the stongest signal?  I understand it involves switching the "channels" but don't know how to do it right now.  Currently, everything works, so I don't want to mess it up tinkering.  Another caveat- there are several other wireless networks from neighbors houses that I can "see".  I jsut downloaded a program called iStumbler that shows the channels, but not sure what to do with that info.
    Any advice would be appreciated.

    Here's the question: How do I name them the same so that the devices will switch effortlessly to the stongest signal?  I understand it involves switching the "channels" but don't know how to do it right now.  Currently, everything works, so I don't want to mess it up tinkering.  Another caveat- there are several other wireless networks from neighbors houses that I can "see".  I jsut downloaded a program called iStumbler that shows the channels, but not sure what to do with that info.
    Any advice would be appreciated.
    OK.. sounds like a mess.. or at least messy and the previous people should have left a log book with all the IP address info in it.. you have far too many routers.. but from here it is impossible to tell how they are configured. Most are probably just setup as AP.
    Naming rule for wireless.. Same SSID same security different channel.
    SSID ie wireless name to work on the PC side should have no spaces and no special characters. TC name should also follow that rule. So the devices need to all set with fixed channels.
    Don't worry too much about iStumbler and what is outside your house.. there isn't enough channels at 2.4ghz anyway. And you are going to need to use them all. There are only three non-overlapping channels. 1, 6, 11 so set each device to one of those channels. The TC should be as close as you can to where you normally use the MacBooks.. and turn on the 5ghz. You will have to leave it to automatic name so the Macbook can also roam across from 2.4 to 5ghz. But if you care to use a different name and force it onto 5ghz the speed is much better as long as you are in the same room.
    Roaming is great in theory.. often in practice it just doesn't work.. you need to step in and turn off wireless and then turn it back on.. you can quickly see which router it is connecting to by hold down the option key when you click the airport fan in the top menu area.. and look at bssid.. you will have to figure out which number MAC address relates to which router.
    Also do not be surprised if Lion gives you issues. It seems to often drop out and lose connection to the TC as a backup device even if internet is still working.

  • Just bought new Time Capsule, need help setting up...

    Okay so I already have my wireless network set up in my house with two airport expresses, I have the airplay and wireless printer set up as well. 
    Just bought a time capsule today and want to know the best way to set it up.  Is it best to use the TC as the "main" wireless router, connected to my cable modem?  Is it harder to set it up this way, am I going to have to hard connect the printer to set it up with the Time capsule? 
    Thanks

    Hi,
    Personally, I would always use the AirPort device that provides the fastest wireless performance to create my main wireless network.
    If you bought a Time Capsule 4th Generation, http://support.apple.com/kb/SP627 chances are high that it is the fastest device you own.
    I would set it as "Create a wireless network" and set the two AirPort Expresses as "Join a wireless network" or "Extend a wireless network".
    Enjoy your new device !
    P-

  • Need help setting the exact size of my JSlider

    Hello everyone. I'm trying to build a small program to help people learn a about RGB colour values, and at the same time teach myself a bit more about Java. Things have been going fine so far until I came to setting my JSlider's size. The intention is to have three JSliders with a JPanel next to each. The I need the track of the slider to be exactly 256 pixels tall (one pixel per gradient value painted into the adjacent JPanel) plus whatever extra padding and spacing the Look And Feel dictates.
    I've got the height set to 256 pixels in the following code, but it makes the JSlider as a whole 256 pixels tall and so squishes the track. I've set the minor tick spacing to 2 so that if the track was actually 256 pixels tall, the ticks would alternate over each screen pixel. If you compile and run the code, you will notice that a few ticks appear next to each other without a one-pixel gap between them. I've also verified it by taking a screen capture, pasting it into the GIMP and then using the measure tool to check the size.
    I've tried searching through the API documentation to find ways of doing it, or to see if some ideas I've had so far were possible, but so far, I've not found anything particulairly satisfactory. I even tried to see if I could set the JSlider size to current JSlider size minus the track size, plus 256, but I couldn't find a way of getting the current size of the track.
    Can anyone help me out here? I'm rather stuck.

    Here's the code with all but the JSliders stripped out. Sorry about having to put it in a seperate post; the forum wouldn't allow it.
    Here's the code I have so far:
    package com.stephenphilbin.colourcoder;
    import java.awt.Color;
    import java.awt.Dimension;
    import javax.swing.GroupLayout;
    import javax.swing.GroupLayout.Alignment;
    import javax.swing.GroupLayout.ParallelGroup;
    import javax.swing.GroupLayout.SequentialGroup;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JSlider;
    import javax.swing.UIManager;
    import javax.swing.border.LineBorder;
    import javax.swing.border.TitledBorder;
    public class Colourcoder extends JFrame {
        private void initComponents() {
            String colourcoderTitle = "Colourcoder";
            String lightsPanelBorderText = "Lights";
            // Create the lights panel, set the borders and set up layout references
            JPanel lightsPanel = new JPanel();
            TitledBorder lightsPanelBorder = new TitledBorder(LineBorder.createGrayLineBorder(), lightsPanelBorderText);
            lightsPanel.setBorder(lightsPanelBorder);
            GroupLayout lightsPanelLayout = new GroupLayout(lightsPanel);
            lightsPanel.setLayout(lightsPanelLayout);
            // Initialize each light slider
            JSlider[] lightSliders = new JSlider[3];
            for (int i = 0; i < lightSliders.length; i++) {
                lightSliders[i] = new JSlider(JSlider.VERTICAL, 0, 255, 0);
                lightSliders.setPaintTrack(false);
    lightSliders[i].setMajorTickSpacing(16);
    lightSliders[i].setMinorTickSpacing(2);
    lightSliders[i].setPaintTicks(true);
    lightSliders[i].setSnapToTicks(true);
    // Loop through the light sliders and add them to the lights panel
    SequentialGroup horizontalLightGroup = lightsPanelLayout.createSequentialGroup();
    for (int i = 0; i < lightSliders.length; i++) {
    horizontalLightGroup.addGroup(lightsPanelLayout.createParallelGroup().addComponent(lightSliders[i]));
    SequentialGroup verticalLightGroup = lightsPanelLayout.createSequentialGroup();
    ParallelGroup parallelLightsGroup = lightsPanelLayout.createParallelGroup();
    verticalLightGroup.addGroup(parallelLightsGroup);
    for(int i = 0; i < lightSliders.length; i++) {
    parallelLightsGroup.addComponent(lightSliders[i], 256, 256, 256);
    lightsPanelLayout.setHorizontalGroup(horizontalLightGroup);
    lightsPanelLayout.setVerticalGroup(verticalLightGroup);
    // Final window/frame configuration
    setTitle(colourcoderTitle);
    setResizable(false);
    setLocationRelativeTo(null);
    GroupLayout frameLayout = new GroupLayout(getContentPane());
    getContentPane().setLayout(frameLayout);
    frameLayout.setAutoCreateContainerGaps(true);
    frameLayout.setHorizontalGroup(
    frameLayout.createParallelGroup(Alignment.LEADING)
    .addGroup(
    frameLayout.createSequentialGroup()
    .addComponent(lightsPanel))
    frameLayout.setVerticalGroup(
    frameLayout.createParallelGroup(Alignment.LEADING)
    .addGroup(
    frameLayout.createSequentialGroup()
    .addComponent(lightsPanel))
    pack();
    public Colourcoder() {
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    UIManager.put("swing.boldMetal", Boolean.FALSE);
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    } catch (Exception ex) {
    System.exit(1);
    initComponents();
    * @param args the command line arguments
    public static void main(String[] args) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new Colourcoder().setVisible(true);
    Edited by: S_Philbin on Sep 29, 2008 11:18 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • New device. Need help setting it up! tks.

    Hi, I just got an unlocked BB Curve 8520.
    My idea is to set it up to be used with multiple carries, instead of only one. Is that possible?
    If it is, can someone help me with the email, contacts and calendar set up process?
    I was told I did not need blackberry service from my phone companies. I travel a lot, and I usually like to buy a prepaid (with data service) sim card in the country I'm in, so I do not have to pay for all these int'l roaming charges.....
    I have sim cards from Brazil, France, UK, and Switzerland. I used to have an HTC phone (windows OS) tha worked perfectly, but it died on me, so I need a replacement. Could the BB be it?
    Thank you all for your help!
    Rodrigo.

    Please don't post your question multiple times in multiple forums. 
    You were "told" incorrectly.
    If you want email and data on the BB you MUST subscribe to a BlackBerry data plan.  Once the email is setup on a carrier's data plan then you can't pop in another sim card with a BB data plan and get that email.  The email setup is tied to both the sim AND the pin of the BlackBerry.
    If you're not worried about data/email then it's no problem, you can pop in sim cards as you please.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • New mac user, need help setting up account

    i bought a used powerbook g4 osx 10.4 on ebay last week. It has an account on it, but i dont know the password or how to change it. i have restore discs, but i would rathernot reinstall because there is some software that i would like to save. could somebody please point me in the right direction? i have no idea of what about what i should be doing. thanks in advance for any help i get.

    Use the instructions in this article to reset the account's password.
    (16260)

  • Help setting Class Path

    hi,
    I just downloaded and installed JDK 5 update 7 and need help setting the class path. Can someone give me instructions on how to do this in windows XP please.
    Cheers

    thanks for the replies guys.
    I'm still having problems. What I want to be able to do is compile a .java file using the Command Prompt in windows XP.
    Currently, when I type javac I get the message:
    'javac' is not recognized as an internal or external command, operable program or batch file.I set the classpath to C:\jdk1.5.0_07\bin\ but when I type path in the command prompt this path doesn't appear.
    If I change the directory in the command prompt to C:\jdk1.5.0_07\bin\ then type javac it works (I get a list of commands) but I need it to work from within any folder.
    Have I set the classpath incorrectly or is it something else?
    Thanks

  • I am setting up a new iMac and need help syncing files to Dropbox.  On my old computer I had it set where when I saved a document, it was saved on my hard drive, as well as to a folder in Dropbox.  I can't remember how I set this up.  Any help?

    I am setting up a new iMac and need help syncing files to Dropbox.  On my old computer I had it set where when I saved a document, it was saved on my hard drive, as well as to a folder in Dropbox.  I can't remember how I set this up.  Any help?

    The way that Dropbox works is that it keeps a copy of all your files in your local Dropbox folder on your hard drive (which is, by default, directly under your home folder). Adding files to that folder will sync them to the Dropbox server.
    You do of course have to download the Dropbox application to enable this (download link at the top right of http://dropbox.com ).
    Matt

  • I have tiger 10.4.11.  In order for my computer to recognize my new Iphone I need to install the new iTunes, however the new iTunes will not download on my computer because it is not 10.5 or higher.  Is there a way that I can upgrade to leopard?  Help!!

    I have tiger 10.4.11.  In order for my computer to recognize my new Iphone I need to install the new iTunes, however the new iTunes will not download on my computer because it is not 10.5 or higher.  Is there a way that I can upgrade from tiger to leopard?  Help!!

    Mac OS X 10.5 Leopard installation system requirements
    http://support.apple.com/kb/TA24950
    Leopard is no longer available at the Apple Store but may be available by calling Apple Phone Sales @ 1-800-MY-APPLE (1-800-692-7753).
    If you can't obtain a retail install DVD from Apple, look on eBay or Google the installer part numbers to possibly find at an on-line store. Here's what to look for:
    MB427Z/A  Leopard 10.5.1 install DVD
    MB576Z/A  Leopard 10.5.4 install DVD
    MB021Z/A  Leopard 10.5.6 install DVD (single user)
    MB022Z/A  Leopard 10.5.6 install DVD (5-user family pack)
    Installing Mac OS X 10.5 Leopard
    http://support.apple.com/kb/HT1544
    Mac OS X 10.5 Leopard Installation and Setup Guide
    http://manuals.info.apple.com/en/leopard_install-setup.pdf
    After you install the base 10.5, download & install the 10.5.8 combo update at http://support.apple.com/downloads/Mac_OS_X_10_5_8_Combo_Update
     Cheers, Tom

  • Need help setting java paths?

    I have a number of java files set up like this:
    com.pogo.chess2.Applet, com.pogo.chess2.game.Applet, etc
    Now each class file uses the keyword: package followed with its associating directory, for example Applet.class would look like this:
    package com.pogo.chess2;
    import com.pogo.game.external.b;
    How do I create a new java project and properly set the path?
    Basically I have all of my java code in a folder called com, which has subdirectories with java files as well. What is a package? How do I set it up using a gui such as JCreator Le? Is there a way to drag the folder com to the project and all the files will load?
    Thanks in advance.

    For package, see
    http://java.sun.com/docs/books/tutorial/java/concepts/package.html
    The rest of your questions involve details of editor/IDE usage. None of them relate to Java. Read the information or Helps from the product you're using.

  • I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    If you are talking about Safari on the iPad, there is no version of Adobe Flash for iOS and there never has been. Clear Safari, close the app and reset the iPad.
    Go to Settings>Safari>Clear History and Website Data
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    If you are talking about Safari on your Mac, you are in the wrong forum. But I would still clear the cache, quit Safari and restart the Mac.

  • TS1277 I cannot remember my security question answer to authorize my new computer.  Need help to get past this.

    I cannot remember my security question answers to authorize my new computer.  Need help to establish new ones or find the answers to the originals.
    Thanks for any help on this.

    Click here for information. If you can't get the answers emailed to you for some reason, contact the iTunes Store staff via the link in that article.
    (76299)

Maybe you are looking for

  • Next Slide Problem with Flash In PowerPoint

    When I embed a Flash file into a PPT presentation and play Slide Show, my page down (Slide Show advance) key doesn't work once the animation is underway.  If I mouse-click the outside borders, it advances properly. Any suggestions on preventing this?

  • PDF/X export missing

    Hi there, in the current version of Pages I am missing the "Print / Save to PDF/X"- Option which is essential for creating documents for professional printing. I was able to use it in previous versions - is there any way to get that funcitonality bac

  • I am trying to set my New Ipod 5 up with my Bose music system

    Hi All... I thought I had this all set up right ..  I have the Bose docking system.... bought the 30pin to lighting pin adapter ... got it all hooked up ... But I cant get no sound out of the bose  .. I know there is power...as its charging the Ipod.

  • Create a View with many tables with the Table-Fieldnames

    Hello! Question 1) Which kind of view is the correct for joining many tables together. Question 2) What is the solution in case of having several tables with the same fieldnames by creating a view. How can I choose this fields into a view. I cant use

  • IPHONE 3G-end of charging cable coming apart, free replacement?

    Hi All! Got new iphone 3G this past April thru Best Buy. I noticed the end of my charging cable that plugs into the phone is coming apart. Phone still charges but the white cording is exposing the silver wires at the part that is connecting my chargi