Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
|
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 22nd, 2012, 11:12 PM
Registered User
 
Join Date: Sep 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Really from the beginning

Hello everyone,

Well, this is gonna be a pretty basic question, but I am stumped and hope there is an easy fix.

I just bought Beginning Java 7, downloaded jdk and documentation and believe I have it installed properly.

I created the little program to test the compiler on page 7 and when I navigated to the correct directory in the command prompt window and issued the javac MyProgram.java instruction I received the following message ----------

'javac' is not recognized as an internal or external command, operable program or batch file

-----------

I am assuming that Windows is not seeing the compiler somehow, but I am not sure how to correct this or if it is something else entirely.

Thanks in advance for any help
 
Old September 23rd, 2012, 01:14 AM
mikejones
Guest
 
Posts: n/a
Default

Not being a windows user anymore, I can only guess, but it sounds like the path to the javac is not set in your enviroment .

Find out what directory your javac is in and then add that to your path variable. Check out this site:

http://www.sodaware.net/blog/2007/04...-windows-path/

After adding the path, check both the java and javac commands. You can do a search in windows to find the javac executable.

I hope this helps
The Following User Says Thank You to For This Useful Post:
love2learn (September 25th, 2012)
 
Old September 25th, 2012, 10:40 PM
Registered User
 
Join Date: Sep 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Figured it out

Thanks Mike, I figured out what was happening and you are right. I needed to set an additional 'path' environment variable to point to the compiler.

I found a way to make it work using a full path to the compiler in the prompt box and I am using it currently because I am planning to download the android developer kit and want to see if there are going to be any hangups with it before I add the path variable (probably paranoia on my part, but I want to write code, not troubleshoot configuration issues :-))

I will publish my findings as a way to give back once I have everything working, but I did want to thank you for your help....
 
Old September 26th, 2012, 01:18 AM
mikejones
Guest
 
Posts: n/a
Default

Glad you got it worked out.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginning! fred4rweb Beginning PHP 4 March 29th, 2007 12:22 PM
Beginning Visual C# or Beginning Visual C# 2005? FTemplar C# 2005 2 May 2nd, 2006 02:34 PM
where can i get the BEGINNING C#? fangyifeng Forum and Wrox.com Feedback 2 December 9th, 2004 10:30 PM
about beginning c++ grass C++ Programming 0 October 15th, 2004 07:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.