SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Installing Java

  1. #1
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,724
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)

    Installing Java

    I'm installing Java on my own machine because quite frankly I don't have enough time in class to do all the work.

    http://java.sun.com/javase/downloads/index.jsp

    I downloaded "Java SE Development Kit (JDK) 6 Update 10"

    I know from my old computer I need a path variable set.

    So I set mine to

    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jre1.6.0_07\bin\
    I get an error just doing a System.out.print statement.

    Edit:
    Quote Originally Posted by gayjava
    ----jGRASP exec: javac -g C:\Program Files\Java\hello.java

    ----jGRASP wedge2 error: command "javac" not found.
    ---- This command must be in the current working directory
    ---- or on the current PATH to use this function.
    ---- PATH is ";;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime\QTSystem\".
    ----
    ---- Make sure you have the full JDK (J2SE SDK or other), not just the JRE, installed.
    ---- The J2SE SDK is available from java.sun.com.
    ----jGRASP: operation complete.
    It's not recognizing the path variable.
    Always looking for web design/development work.
    http://www.CodeFundamentals.com

  2. #2
    SitePoint Wizard rozner's Avatar
    Join Date
    Oct 2002
    Location
    Paris
    Posts
    1,058
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    C:\Program Files\Java\jre1.6.0_07\bin\

    That's the JRE not the JDK, I don't remember the exact directory name but it should be something like jdk1.6.0_07\bin. If you can't find it do a "dir/s javac.exe".

  3. #3
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,724
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    That worked. But why must I put all my java files in that bin? Why can't I do desktop?
    Always looking for web design/development work.
    http://www.CodeFundamentals.com

  4. #4
    SitePoint Wizard silver trophy rushiku's Avatar
    Join Date
    Dec 2003
    Location
    A van down by the river
    Posts
    2,056
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    That's where the classpath variable comes in...

    Also, your desktop is, 'path-ically' speaking, a ridiculous place to work.

    Are you on XP? Then your desktop folder is located at: C:\Documents and Settings\Your Name\Desktop

    Blegh! What a mess. Java doesn't like all those spaces, you don't like all that typing.

    Thanks to packages, Java is easy to organize, take advantage of this. Make a directory structure like
    Code:
    C:.
    +---dev
    |   \---net
    |       \---rushiku
    |           +---sitepoint
    |           \---test
    And add c:\dev to your classpath, now java knows about any classes you write and any new packages you add (as long as they appear somewhere within c:\dev\)

    My package statements almost always start as net.rushiku and end with something more specific to what I'm working on.

  5. #5
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,724
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    BTW I lied. I can have it on my desktop. My bad.

    Oh and thanks for all the help .
    Always looking for web design/development work.
    http://www.CodeFundamentals.com


Bookmarks

Posting Permissions

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