Results 1 to 4 of 4
  1. #1
    Kaz is offline Member
    Join Date
    Jun 2009
    Rep Power

    Default A true newbies problem.

    Hey, I'm extremely new to Java, so new that I'd be so bold to say I don't know a single thing about it. This question is more in regards to running a java related program, not creating my own. I have java installed (JDK and JRE), and I have the program I'm looking to run installed. When I click the batch file intended to run my program, up pops command prompt telling me that " 'java' is not recognized as an internal or external command, operable program or batch file". What I managed to take from this is one of two things. Java is not installed properly (I'm not sure how I could have messed this up), or my environmental variables are not properly set up. My C drive, is actually labelled as H:\ instead of C:\, it's just how my computer was set up. I took a quick look at the forums and saw that the way people help are often by writing quick batch files, so if one of you decide to do that for me, keep in mind my C drive is actually H:\. Maybe this could be apart of the problem? I don't know. I can run java based programs from my browser and such... Please help.

    ALSO: Perhaps a quick tutorial on how to properly set up my environmental variables? I have a feeling this may be the issue.

    Thanks in advance.

  2. #2
    emceenugget is offline Senior Member
    Join Date
    Sep 2008
    Rep Power


    does seem like an issue with envvars. just located the bin directory of your jre (or even jdk i believe) and set PATH to it. could be H:\Program Files\Sun\Java\bin or something entirely different

  3. #3
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    New Zealand
    Rep Power


    Your problem is the first one mentioned on Sun's Common Problems (and their Solutions page. You will have to change the drive from what they give in their illustration.

    The installation instructions they refer to are here, with the need for the java and javac executables to be on the operating system's PATH discussed in point 4.

    The problem/solution page is part of the "Hello World! for Windows" tutorial. This tutorial is in many ways the place to start.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Colombo, Sri Lanka
    Blog Entries
    Rep Power

Similar Threads

  1. while(true)
    By ravian in forum New To Java
    Replies: 7
    Last Post: 06-29-2011, 06:05 AM
  2. Replies: 8
    Last Post: 02-17-2009, 01:57 PM
  3. bug (?) in ProcessBuilder.redirectErrorStream(true);
    By gadasie in forum Advanced Java
    Replies: 3
    Last Post: 03-13-2008, 10:04 AM
  4. setVisible(true) does not work
    By Gajesh Tripathi in forum AWT / Swing
    Replies: 2
    Last Post: 10-27-2007, 07:32 PM
  5. Plugin to Prevent Newbies from Posting to Wrong Forum
    By levent in forum Suggestions & Feedback
    Replies: 1
    Last Post: 08-12-2007, 01:07 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