Results 1 to 20 of 32
Thread: javac
- 11-10-2009, 08:36 PM #1
Member
- Join Date
- May 2008
- Posts
- 10
- Rep Power
- 0
javac
Hi,
Sorry to be a pain, have done a search for this, but can't find anything I'm looking for, most replies just say put the bin directory in youe system vars
I have installed JDK and I have put the bin file in the Path System Variable. But still when I try javac I get the not recognized as a blah blah...
I can compile stuff if I save it in the bin directory but no where else.
My Path variable says:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShel l\v1.0\; C:\Program Files\Java\jdk1.5.0_22\bin\;
(have tried it with and without the final backslash!)
- 11-11-2009, 12:59 AM #2gcampton Guest
hmmm. this should work fine.
are you using" javac filename.java " to compile
and then to run program type" java filename " <---- no extension
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShel l\v1.0\;C:\Program Files\Java\jdk1.5.0_22\bin
make sure to delete spaces I'm not sure if this was a copy pasts error or if you have these spaces in the path. you had one in system32, (sy stem32) and one between ; and C:Pro...Last edited by gcampton; 11-11-2009 at 01:04 AM.
- 11-11-2009, 06:53 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Ya, that variables should work fine. I hope that the installation is in the specified location as your post. What happen when you just type javac on the console/command prompt?
- 11-11-2009, 09:45 AM #4
Member
- Join Date
- May 2008
- Posts
- 10
- Rep Power
- 0
its the right location of the files. when I type javac on its own I get the standard 'javac' is not recognized...
if I just type java however, I get the full instructions on how to use it.
- 11-11-2009, 10:35 AM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,377
- Blog Entries
- 7
- Rep Power
- 17
- 11-11-2009, 02:52 PM #6gcampton Guest
maybe you might want to try an updated JDK release version up to
C:\Program Files\Java\jdk1.6.0_17
at least that way a fresh install might clear things up
http://java.sun.com/javase/downloads/index.jsp
Java SE Development Kit (JDK)
JDK 6 Update 17
stable business release is still back at 1.4.2, but your using 1.5_22, seems strange if you just downloaded it.Last edited by gcampton; 11-11-2009 at 02:58 PM.
- 11-11-2009, 06:27 PM #7
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
- 11-11-2009, 10:50 PM #8gcampton Guest
did you check out the page?
Java for Business
JRE or JDK 6, 5.0, or 1.4.2
- 11-12-2009, 07:02 AM #9
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Not exactly what you said before.
- 11-12-2009, 07:37 AM #10
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Up to date is much better in many cases. :)
To original poster, did you try to compile a simple Java class on command prompt, by setting up the javac class path it self?
- 11-12-2009, 07:53 AM #11gcampton Guest
- 11-12-2009, 08:34 AM #12
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,377
- Blog Entries
- 7
- Rep Power
- 17
You should read the entire page; this is what it says:
You have to pay for it (US$ 5000) while it is already past its EOL; not a nice alternative if you'd ask me ...Java for Business v1.4.2 Access Only Offering
Java Standard Edition version 1.4.2 reached its end of life in late 2008 which means security updates/fixes are no longer publicly available. However, customers who purchase the Java for Business v1.4.2 Access Only program will continue to receive security updates and critical fix updates until 2013!
kind regards,
Jos
- 11-12-2009, 08:46 AM #13gcampton Guest
I wasn't posting the JFB as an alternative I added it at the end of comment, suggesting that while it's still back at 1.4.2 the OP was using 1.5.22, and the current release of JDK is 1.6.17
1.5.22 is very far from either of those....
snobbish behavior isn't needed, it's a very simple concept. 3 - 2 = 1
- 11-12-2009, 10:12 AM #14
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
You are not making much sense. The OP is not using JFB so adding a comment about it is useless.
JFB is not still at 1.4.2 . The latest stable release is 1.6 and 1.4.2 has reached its end of life. It is only still supported because people paid to get it in the first place.
The comment you made about it was both off topic and misleading. It gives the impression that the "stable business release is still back at 1.4.2" which is wrong. It's now at 1.6.
- 11-12-2009, 12:19 PM #15
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,377
- Blog Entries
- 7
- Rep Power
- 17
- 11-12-2009, 12:32 PM #16gcampton Guest
well thanks for clarifying because it matters so much on a "new to java forum"....
Seriously, I looked at the downloads page saw a long term release at 1.4, and suggested the OP download the latest release 1.6 because the releases on the download page are far from range of 1.5.22.
I didn't bother looking closer at it because A: it doesn't interest me, and B: most intelligent people would look at what I said and understand that while I may not know 'exactly' what I am talking about, JFB is available from downloads page, and the downloads page states 1.4.
- 11-12-2009, 12:40 PM #17
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Unfortunately many people use forums as their source of information therefore if someone doesn't know what they are talking about then its best for them not to say anything at all. If they do say something (as everyone is entitled to say whatever they want) then they should expect to be corrected by those who do know what they are talking about.
- 11-12-2009, 12:57 PM #18
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,377
- Blog Entries
- 7
- Rep Power
- 17
Especially on a 'new to Java' forum it is important not to spread misinformation; newbies might get confused and learn the wrong things. Don't say anything if you don't know what you are saying, it obfuscates matters.
That is always incorrect ...
kind regards,
Jos
- 11-12-2009, 01:03 PM #19gcampton Guest
No problem I will not help anyone in future, I'll just link The Really Big Index to sound smarter.
- 11-12-2009, 03:35 PM #20
Member
- Join Date
- May 2008
- Posts
- 10
- Rep Power
- 0
java -version:
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
javac -version:
'javac' is not recognized as an internal or external command,
operable program or batch file.
I uninstalled the 22 update and went to the 17 instead but still no luck.
Similar Threads
-
Javac is not recognized?
By Java idiot in forum New To JavaReplies: 4Last Post: 08-03-2009, 06:54 PM -
excludes in javac target
By ziggy in forum New To JavaReplies: 2Last Post: 11-25-2008, 04:29 AM -
javac?
By sardare in forum EclipseReplies: 1Last Post: 06-14-2008, 02:06 AM -
javac DOS
By rdunne in forum New To JavaReplies: 3Last Post: 01-01-2008, 11:49 AM -
Help with javaC
By Daniel in forum New To JavaReplies: 2Last Post: 07-04-2007, 02:44 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks