Ok, I'm not sure if this is the right category for this question, so mods feel free to move this thread (and sorry, if so).
I am starting my journey into Java (after getting my feet wet with some C++) and I can NOT get anything to compile.
I am using Windows XP. I have downloaded Java SE Development Kit 7u5 from Oracle's web site (http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1637583.html). Next, I installed and had no issues.
Then, I went to Settings\Control Panel\System\Advanced\Environment Variables\ and changed the Path to include ;C:\Program Files\Oracle\JavaFX 2.1 SDK\bin. This is where my javac.exe is supposed to be located, as I understand it.
However, when I try to run the command line and compile my code, I still get "'javac' is not recognized as an internal or external command, operable program or batch file."
When I type c:\>Path, the shell returns:
Microsoft Windows XP [Version 5.1.2600]
© Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\S&T>path
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Program Files\Mi
crosoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS
\Binn\;c:\Program Files\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Fil
es\Oracle\JavaFX 2.1 SDK\bin
C:\Documents and Settings\S&T>
From what I read on OS and a couple other forums I hadn't heard of (I googled the snot out this question a few times now), what I'm doing should compile my code. Any help from any other folks that compile Java in Windows XP?
5 Replies - 4982 Views - Last Post: 10 August 2012 - 02:16 PM
Replies To: The Dreaded 'javac' is not recognized DUN DUN DUN
#2
Re: The Dreaded 'javac' is not recognized DUN DUN DUN
Posted 10 August 2012 - 12:06 PM
Uhm have you install java fx instead of the normal development kit?
The path should look something like C:\Program Files\Java\jdk1.7.0_01\bin
The path should look something like C:\Program Files\Java\jdk1.7.0_01\bin
#3
Re: The Dreaded 'javac' is not recognized DUN DUN DUN
Posted 10 August 2012 - 12:08 PM
You need to make sure the URL you are putting into your path variable leads to the directory that contains avafx.sh and javafx.bat.
I think the path you want is
javac.exe would be for the normal java sdk, which I think is different, but i'll let someone who has worked with FX to correct me on that one.
I think the path you want is
C:\Program Files\Oracle\JavaFX 2.1 SDK\javafx\trunk\bin
javac.exe would be for the normal java sdk, which I think is different, but i'll let someone who has worked with FX to correct me on that one.
This post has been edited by SwiftStriker00: 10 August 2012 - 12:08 PM
#4
Re: The Dreaded 'javac' is not recognized DUN DUN DUN
Posted 10 August 2012 - 12:10 PM
The Java installer does not add Java to the windows path. It is ot present in the pacth you posted. You'll have to do it manually.
#5
Re: The Dreaded 'javac' is not recognized DUN DUN DUN
Posted 10 August 2012 - 12:49 PM
SwiftStriker00, on 10 August 2012 - 07:08 PM, said:
You need to make sure the URL you are putting into your path variable leads to the directory that contains avafx.sh and javafx.bat.
I think the path you want is
javac.exe would be for the normal java sdk, which I think is different, but i'll let someone who has worked with FX to correct me on that one.
I think the path you want is
C:\Program Files\Oracle\JavaFX 2.1 SDK\javafx\trunk\bin
javac.exe would be for the normal java sdk, which I think is different, but i'll let someone who has worked with FX to correct me on that one.
This seems like the most helpful input yet. It seems like I must have the environment variable file path wrong. However, when I do a search for javafx.bat on that drive I return 0 results.
Can anyone help me with the file name I should be searching for?
I also tried C:\Program Files\Oracle\JavaFX 2.1 Runtime\bin, which seemed pretty promising because I was able to find an application called javacpl in there.
#6
Re: The Dreaded 'javac' is not recognized DUN DUN DUN
Posted 10 August 2012 - 02:16 PM
CasiOo, on 10 August 2012 - 07:06 PM, said:
Uhm have you install java fx instead of the normal development kit?
The path should look something like C:\Program Files\Java\jdk1.7.0_01\bin
The path should look something like C:\Program Files\Java\jdk1.7.0_01\bin
Eureka! This was pretty much right. My version was C:\Program Files\Java\jdk1.7.0_01\bin.
Just in case anyone else runs across this problem and needs help.
CasiOo, you rock!
One those times I wish I could click the green button 25 times
Page 1 of 1

New Topic/Question
Reply



MultiQuote



|