Results 1 to 6 of 6
  1. #1
    coding is offline Member
    Join Date
    Jan 2011
    Posts
    40
    Rep Power
    0

    Default Need help setting up my environment in Java

    I installed the Java JDK package update 23 and I can open java files and view them that are already classes. But for the ones that aren't, I can't make classes. Also I tried to install Eclipse but when I run the application I get this.
    http://img651.images....us/i/escl.png/
    In my paths I put this. \jdk1.6.0_23
    Not sure if I did it right. Can someone give me a real step by step guide. Stuff I find online aren't really helpfu,

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,651
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by coding View Post
    I installed the Java JDK package update 23 and I can open java files and view them that are already classes. But for the ones that aren't, I can't make classes. Also I tried to install Eclipse but when I run the application I get this.
    http://img651.images....us/i/escl.png/
    In my paths I put this. \jdk1.6.0_23
    Not sure if I did it right. Can someone give me a real step by step guide. Stuff I find online aren't really helpfu,
    Check where your JDK is really installed, suppose this directory is named X; check directory X\bin (or X/bin); your executable javac (the compiler) is
    supped to be present there. Set your path to point to X\bin (or X/bin).

    Note that you have only set up your JDK, you have to do the same for your
    JRE (where java the JVM itself is stored). If all that works come back here for the installation of Eclipse. Eclipse doesn't need a JDK because it is a JDK itself and it is clever enough to find an installed JRE.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    coding is offline Member
    Join Date
    Jan 2011
    Posts
    40
    Rep Power
    0

    Default

    JRE? Do I need paths for that too?

    Also you mean like this?
    C:\Program Files\Java\jdk1.6.0_23\bin\

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,651
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by coding View Post
    JRE? Do I need paths for that too?

    Also you mean like this?
    C:\Program Files\Java\jdk1.6.0_23\bin\
    Yep, that's what I mean. On an MS Windows machine the JVM is copied to some windows directory (for reasons that are beyond me) which is already in your path variable so there's no need to worry about it for now. As long as you can get javac.exe and java.exe (or javaw.exe) running you're on the right track.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    coding is offline Member
    Join Date
    Jan 2011
    Posts
    40
    Rep Power
    0

    Default

    Thanks, also for some reason I can open files that already have a class but I can't make on in the run command thing.

  6. #6
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,651
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by coding View Post
    Thanks, also for some reason I can open files that already have a class but I can't make on in the run command thing.
    I don't understand your question; the jvm (java.exe or javaw.exe) can only run .class files and the compiler (javac.exe) can only compile .java (source) files and generate .class files. Of course you can open .java source files with an editor; if you try to open .class files with an editor you'll see gibberish.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 11
    Last Post: 12-12-2010, 06:27 AM
  2. java run time environment
    By abdullahansari in forum New To Java
    Replies: 2
    Last Post: 09-21-2010, 05:39 PM
  3. making simple java environment
    By daanlaan in forum New To Java
    Replies: 0
    Last Post: 07-07-2009, 12:22 AM
  4. Setting the environment variable for j2sdk
    By kiki2009 in forum Java Servlet
    Replies: 3
    Last Post: 07-04-2009, 05:14 AM
  5. Environment for java
    By carl in forum New To Java
    Replies: 2
    Last Post: 07-31-2007, 08:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •