Help me setting up Java 1.6

Hi guys:
Well, as you can see, this is my first post in this forum.
I'm having a hard time trying to setup the user and system variables for Java SDK 1.6.
Please anyone, help me out in detail how to setup the JAVA_HOME variable so that I can start to program on java.
Until now, this is the way I'm doing it:
In the user variables, I create the JAVA_HOME variable name and the value I set up for it is: C:\Archivos de programa\Java\jdk1.6.0
For the system variables, I go to the path variable and add the following: ;%JAVA_HOME%\bin
What am I doing wrong??????
Sun's online help wasn't that helpful since it lacks details and it has some errors in the way they differentiate WinXP with Win2000.
Thanks in advance for any help.

You can run the Java 2 SDK without setting the PATH variable, or you can optionally set it as a convenience.
What you need to do is change your path variable. This is most easily done by opening an MS-DOS prompt and typing PATH to see what the path is set to currently. Then open autoexec.bat in Notepad and make the changes to PATH.
See specific instructions on this on step 5 on this page:
http://java.sun.com/j2se/1.4.2/install-windows.html

Similar Messages

  • Help with set(index, object) please / new to java

    private static void setDobject(Rectangle [] setrect)
              LinkedList<Rectangle> rects = new LinkedList<Rectangle>();
              Rectangle myrectangle = new Rectangle(9.0,9.0);                                                                  
                 rects.set(1,myrectangle);
              for(Rectangle x : setrect)
                   System.out.print("Rectangle: ");
                   System.out.println(x.getLength() + " by " + x.getWidth());
              }  //End of for loop
         }  //End of unsorted
         }  the other previous code works, i have used the add(object) and it works here is the code for that:
    private static void addDobject(Rectangle [] addrect)
              LinkedList<Rectangle> rects = new LinkedList<Rectangle>();
              Rectangle myrectangle = new Rectangle(9.0,9.0);                                                                  
                 rects.add(myrectangle);
                 for(Rectangle x : rects)
                   System.out.print("Rectangle: ");
                   System.out.println(x.getLength() + " by " + x.getWidth());
              }  //End of for loop
              System.out.println();
         }  //End of unsorted
    this is the output error it is giving me :
    Part 1 : An Array List of Rectangles
    Enter length or 999 to exit: 3
    Enter width: 2
    Enter length or 999 to exit: 1
    Enter width: 2
    Enter length or 999 to exit: 10
    Enter width: 20
    Enter length or 999 to exit: 999
    Rectangle: 3.0 by 2.0
    Rectangle: 1.0 by 2.0
    Rectangle: 10.0 by 20.0
    Display Object with added item
    Rectangle: 3.0 by 2.0
    Rectangle: 1.0 by 2.0
    Rectangle: 10.0 by 20.0
    Rectangle: 9.0 by 9.0
    Displaying Objects with SET item
    Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 1, Size:
    0
    at java.util.LinkedList.entry(LinkedList.java:365)
    at java.util.LinkedList.set(LinkedList.java:328)
    at Lab11.setDobject(Lab11.java:129)
    at Lab11.main(Lab11.java:78)
    Press any key to continue...
    finally here is the Rectangle class i'm using:
    public class Rectangle
        private double length;     // Instance variables
        private double width;
        public Rectangle(double l, double w)  // Constructor method
            length = l;
            width = w;
        } // end Rectangle constructor
        public double getLength()             // getter 
             return length;
        } // end getLength
         public double getWidth()             // getter 
             return width;
        } // end getWidth
        public void setLength(double l)      // setter 
             length = l;
        } // end setLength
         public void setWidth(double w)     // setter 
             width = w;
        } // end setWidth
         public double calculateArea()         // calculation method
            return length * width;
        } // end calculateArea
        public void displayRectangle()         // display method
            System.out.println("Rectangle Length = " + length);
            System.out.println("Rectangle Width = " + width);               
        } // end displayRectangle
    } // Rectangle ClassHope you can help guys! thanks!

    LinkedList<Rectangle> rects = new LinkedList<Rectangle>();rects is an empty LinkedList at this point. It has no elements added to it.
    rects.set(1,myrectangle);So you can't set the item at index 1 (the 2nd element in the list) because it doesn't even exist. You need to add items to it.

  • I need help with setting up my Sun Java Studio Creator

    Hello all, i need help with setting up the Studio Creator, i"m new to all that staff so is there anyone to help me just a little with all that if yes email me at [email protected] or get me on AOL Instant Messanger with the screen name: wretch17
    thanks :-)

    Hi,
    Welcome to the Creator community! Thanks for your interst in Sun Java Studio Creator. Please feel free to post any question related to creator on this forum .
    Take a look the creator website at
    http://developers.sun.com/prodtech/javatools/jscreator/
    CreatorTeam

  • Parameter set in Java stack for retention of messages in PI

    Hi,
    Can you tel me which paramter is set in Java stack for retention of messages in adapter engine and where we can we find in Java stack?
    Thanks.

    RWB --> Component MOnitoring --> Adapter Engine --> Background Processing
    http://help.sap.com/saphelp_nwpi71/helpdata/en/05/b1b740f83db533e10000000a155106/frameset.htm

  • Required help on setting up blaze DS.

    Hi,
    Required help on setting up blaze DS.
    I have Blex builder 3 and Blaze DS turnkey version.
    Would any one help me in setting up the java application on Blaze DS.
    Do i require to place Blaze DS and flex(client code) on same system.
    As of now i have Blaze DS on my local system and Flex on one of test server.
    Thanks in advance
    Regards,
    Anil

    Thanks, one question, i have downloded Blaze DS turnkey version, could not srtart tomcat which is in Blaze DS.
    Hence making use of tomcat installed on my local system which is works fine. In order to settup Blaze DS i copied required jar files from Blaze DS and flex configuration files(xml files) .
    However Flex Builder3 is installed on one of test server, when i tried to create Flex project i could not validate Server location.
    Is it required to have both Java server and flex builder on same system?

  • I am in the process of doing a Proof Of Concept / Evaluating products that can help us build a Java Application to Convert a PDF document to a Searchable PDF.   I wanted to check is there any simple JAVA API from Adobe to achive this ? Any direction in th

    I am in the process of doing a Proof Of Concept / Evaluating products that can help us build a Java Application to Convert a PDF document to a Searchable PDF. 
    I wanted to check is there any simple JAVA API from Adobe to achive this ? Any direction in this regard is greatly appreciated.@

    You can achieve this using LiveCycle PDF Generator JAVA API. You can find required code here:
    Adobe LiveCycle * Quick Start (SOAP mode): Converting a Microsoft Word document to a PDF document using the Java API
    In parameters:
    //Set createPDF2 parameter values
    String adobePDFSettings = "Standard";
    String securitySettings = "No Security";
    String fileTypeSettings = "Standard OCR";
    "Standard OCR" file type setting will run OCR on input pdf. In the code, instead of doc file provide a pdf file. Resultant pdf will be searchable PDF i.e OCRed PDF.
    Feel feel to ask any further questions.

  • Books & Tools: Help needed for Begining Java....

    Hi,
    I am a Computer science Graduate & working. I am new to Java but not Programming. I have some knowledge on OOPS concepts, .Net, Java, C# & web development.
    I need Help To pick the Best Book/Books that can make me comfortable in programming Java & Understanding whole Java concept.
    I followed many books but found they are not following the Right approach.
    I would appreciate if someone can suggest me a Complete Book/Books, which you think have helped.
    Thanks.

    This is the starter set:
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com . A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.
    James Gosling's The Java Programming Language. Gosling is
    the creator of Java. It doesn't get much more authoritative than this.

  • How to set the Java VM parameters in Ant ?

    Hi All,
    Am trying to set the Java VM parameter "-Djava.library.path=C:\MA\bin" in Ant task.
    I used tag <java jvmargs="">
    but it dint seems to be working.
    Any help on this would be appriciated.
    thanks in advance,
    Loginform.

    Thanks for your response,
    When i tried with the above option it doesnt seems to load the .dll file in the path.
    Could you pls suggest how to set the .dll in classpath in Ant
    It would be greathelp.
    Thanks in advance,
    loginform.

  • HT201209 Hey guy I need to help please set balance my app id = 0

    I need to change location my id but I can't make because I have  point
    In store please help me set my point app id to null thk
    <Subject Edited by Host>

    You will need to Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • I took my iMac to be fixed and when i got it back, mail was not set up. I called Apple Support and they helped me set up mail. Then the emails went to trash on the iMac and on the MacBook Pro (same emails). There are no numbers by the 'inbox' to tell how

    I took my iMac to be fixed and when I got it back, mail was not set, so I called Apple and they helped me set up mail. Now the new mail goes to trash and there is no number by the 'inbox' to tell me how many new messages I have. I cannot save a draft to 'drafts.' There is a large number by 'trash' (I think all mail went to trash - including drafts). When I send myself an emai, it goes to trash also. This is on both my iMac (the one taken in) and my MacBook Pro (same emails) which was not taken in.
    I went to 'rules' but have no idea what to do there. There are no rules in the rule box. When I click 'add rule' it puts 'rule 1' in the rule box, but since that was not there when I took it in, I delete it to have an empty rule box.
    Can someone pleasehelp me. I am completely stupid with all this. Do not under stand what is suppose to be set up in 'rules.'
    Thank you so much,
    Arudi

    Now new mail is coming to both computer's inboxes but there is no number on the stamp icon on dock to show number of emails on the iMac. Nor is there a number by either email address under MAILBOXES/inbox (sidebar) on the iMac. This number is showing on MacBook Pro.
    I also can save drafts now on both computers.
    Seems the Pro is fixed and the iMac is only missing the numbers on dock icon and by addresses in inbox.
    Now that the problem is less, I feel i am wasting your time but will continue so maybe I can get those numbers back.
    Two emails > AT&T email and gmail.
    Apple's Mail program for email - yes, and gmail.
    IMAP for both accounts.
    Did not change mail configuration on MacBook.
    The iMac and MacBook Pro have the same mail configuration except in Accounts/mailbox behaviours/store draft messages on the server was not marked on MacBook > it is now.
    'Store junk messages on the server' was marked on one computer for gmail, but is unmarked on both now.
    On the iMac, Accounts/Accounts info/Outgoing mail for gmail is smtpgmail.
    On the MacBook Pro for gmail it is smpt.gmail.com (plus) my email address.
    Rules/Add rule window, on the MacBook third line is 'Any Recipient', on the iMac third line is 'From."
    The last box on that line has my email address on the MacBook.
    The last box on that line has the last address I sent an emil to (last night), on the iMac.
    On the last line on iMac, no box was selicted for 'to mailbox' > I choose 'inbox' because it is on the MacBook Pro.
    Now I have a Rule #1 and am not sure I should have because there was no rules marked when I took the computer in.
    Thank you. I relized I had done the labeling wrong when so much of my question appeared twice and no one else's did. I know how to do it now.
    Thank you so much,
    Arudi

  • Help needed setting up print server

    i got 2 printer:
    1 usb inkjet epson 1290
    1 hp5100 network
    i have 1 server:
    serving epson for our col proof using powerripx as driver and shared via os x print server
    i have 2 network interface card on the server.
    my problem is: the position of the server in the office has only one network interface port, i want to have my HP connected to the 2nd network interface of the server and the server connected to the only available network point there and thus have the server serving both printer.
    have set up the en1 interface, enable NAT, dhcp, firewall, but the server itself does not recognised the hp which is connected to the 2nd ethernet interface. when i move it on top of the ethernet list in system preferences it does recegnised it but the the whole print server is not accessible on the network.
    can someone with more experience help me set this up.
    thx

    I didn't say it's impossible. I just offered an easy solution to your problem that will save you and you users some hassle in the long run (eg. when you come to troubleshoot you wn;t have to look at 2 networks and a firewall). I guess I just like easy solutions. And ,dude, 20 bucks...
    If you want to go the hard(er) way you need to:
    1. set up a second network address range on the second card
    2. give the printer a fixed IP address within that range
    3. ensure firewall is not blocking packets from/to the printer
    4. config the printer on your print server & clients
    hth,
    b.

  • I am facing wifi and mobile 2G signal issue after upgrading to IOS 6 from IOS 5 in IPhone 3GS. Please help, restoring setting even didn't helped.

    I am facing wifi and mobile 2G signal issue after upgrading to IOS 6 from IOS 5 in IPhone 3GS. The mobile carrier signal as well as WIFI suddenly drops zero and are then restored automatically. Sometimes i cannot conenct to WIFI even standing infront of WIFI router. Please help, restoring setting even didn't helped.

    Update: my phone's connecting to the WiFi again. I don't know what did the trick. I did nothing since reinstalling the software. It hadn't worked then, it is now. I tried connecting to my dad's phone's hotspot( he uses a Moto G), and it worked. I then tried connecting to the WiFi at a friend's house, and when I came back home, my phone was able to connect to my WiFi! Is it of any significance that my friend's router doesn't require a password? My issue has been resolved( for now; I hope I'm not counting my chickens before they've hatched). For anyone facing a similar issue, I suggest you try everything I did:
    1. Turn your router off for a minimum of 30 seconds, turn it back on and try connecting.
    2. Click on the WiFi network you are connected to, scroll to the bottom, tap "Renew Lease".
    3. Do a soft and hard reset.
    4. Reset network settings.
    5. Back your data up, erase all content from settings menu, restore from backup.
    6. Reinstall your software( put it in recovery mode).
    I am not sure which of the above worked for me. Make sure you try everything. If none of the above works, take it to a genius bar or an authorised service provider. Good luck! :)

  • TS3276 Help in setting Apple Mail to receive and send mail via Yahoo mail service

    I would appreciate help in setting up Apple Mail to receive and send e-mails via Yahoo.   Thank you

    Sorry,
    Have you tried the connection doctor? In Mail menu bar under Window connection doctor, this will usually let you know where the problem might be.
    http://support.apple.com/kb/TS3276  Read thru this as well.

  • Need help in my assignment, Java programing?

    Need help in my assignment, Java programing?
    It is said that there is only one natural number n such that n-1 is a square and
    n + 1 is a cube, that is, n - 1 = x2 and n + 1 = y3 for some natural numbers x and y. Please implement a program in Java.
    plz help!!
    and this is my code
    but I don't no how to finsh it with the right condition!
    plz heelp!!
    and I don't know if it right or wrong!
    PLZ help me!!
    import javax.swing.JOptionPane;
    public class eiman {
    public static void main( String [] args){
    String a,b;
    double n,x,y,z;
    boolean q= true;
    boolean w= false;
    a=JOptionPane.showInputDialog("Please enter a number for n");
    n=Double.parseDouble(a);
    System.out.println(n);
    x=Math.sqrt(n-1);
    y=Math.cbrt(n+1);
    }

    OK I'll bite.
    I assume that this is some kind of assignment.
    What is the program supposed to do?
    1. Figure out the value of N
    2. Given an N determine if it is the correct value
    I would expect #1, but then again this seem to be a strange programming assignment to me.
    // additions followI see by the simulpostings that it is indeed #1.
    So I will give the tried and true advice at the risk of copyright infringement.
    get out a paper and pencil and think about how you would figure this out by hand.
    The structure of a program will emerge from the mists.
    Now that I think about it that advice must be in public domain by now.
    Edited by: johndjr on Oct 14, 2008 3:31 PM
    added additional info

  • Will someone please help me set-up Acrobat to send a PDF via webmail?  Acrobat returns a message "Server Connection Error .... Port 143 unavailable"

    Will someone please help me set-up Acrobat to send a PDF via webmail?  Acrobat returns a message "Server Connection Error .... Port 143 unavailable"

    Are you using a Microsoft or Apache web server? If so, you can submit to a server-side script, which will bypass web mail and client-side email software such as OUTLOOK.
    For examples:
    http://www.nk-inc.com/software/pdfemail.net/examples/

Maybe you are looking for

  • Convert Script output data to Text(.txt) file & send mail with attachment.

    Hi All, Requirement: I shulb be able to conver th Script output data to Text(.text) file & send a maill with attachment with this text file. Formant of text file should be like output of Print priview. Plese sugget with Function modules to cover as T

  • Interactive ALV list Problem

    Hi All I have developed ALV report which is working fine while i double click on one record i need to call another transaction code i.e "COHV" which is also working fine and the value is not population to that transaction code. I have written code li

  • How to encrypt/decrypt 4 character field in ABAP?

    Hello SDN Community, I have done extensive searches before posting this.  Have even explored fuction modules FIEB_PASSWD_ENCRYPT/DECRYPT.  Even looked at SSF Developers Guide - chapter 4.  The FIEB function modules were dead-end.  SSF looks like it c

  • Need help in installing SAP

    Hi,    i have pack of 12 CDS of SAP for which i would like to install it on my computer. However i have no idea which CD should i install first. should it be GUI or KERNEL or oracle or another CD's. I would appreciate if somebody could guide me who h

  • User Exit / BADI for Transaction IW31 to create a POP-UP.

    Hi, I need to have a POP-UP Message in transaction IW31 on the press of ENTER. Could you give me the name of the EXIT or BADI which can be used for this purpose.