Results 1 to 12 of 12
- 08-03-2010, 05:02 PM #1
Member
- Join Date
- Aug 2010
- Posts
- 5
- Rep Power
- 0
Can't use javac in command line (not recognized)
i'm using jdk1.6.0_21 and i can't use javac to execute my java file in cmd . Actually , i can , but i have to put my java file in the same dir with javac.exe in "C:\Program Files\Java\jdk1.6.0_21\bin".Meanwhile,this guy(watch the video) , he can do " javac *.java" in cmd without putting them in the same dir , is there any way i can do like that ?
v=zF7dfCkwZ5AYouTube - How To Compile A Java Program With JavacLast edited by wayneluu91; 08-05-2010 at 02:23 PM.
- 08-03-2010, 05:20 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,380
- Blog Entries
- 7
- Rep Power
- 17
- 08-03-2010, 06:01 PM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 08-04-2010, 05:57 AM #4
Member
- Join Date
- Aug 2010
- Posts
- 5
- Rep Power
- 0
hmm sr , but i don't get "PATH variable list (not CLASSPATH)" and i don't wanna set the path everytime i compile :D ,@ JosAH: sr but can you show me step by step to do that ?
- 08-04-2010, 10:49 AM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,380
- Blog Entries
- 7
- Rep Power
- 17
If you can't see a variable (and its value) named 'PATH' you probably don't have it (which I sincerely doubt). On my little Windows 7 laptop I go to Control Panel > System > Advanced Settings > Environment Variables and set my PATH (it's a so called 'system variable'). It stays that way forever or until you change it again.
kind regards,
Jos
- 08-04-2010, 06:03 PM #6
Member
- Join Date
- Aug 2010
- Posts
- 5
- Rep Power
- 0
Well , thank you so much ,it works perfectly .i've used comp for 7 years ,but i didn't know anything about that Environment Variables,and that's OS things :D .
- 08-04-2010, 06:11 PM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Study about system variables could be worth actually. And also by editing the autoexec.bat file you can achieve the same, but you must edit the file carefully. If it's damage you may need to reinstall your OS.
Mean time if you are satisfied with the answer please mark the thread solved.
- 08-05-2010, 02:27 PM #8
Member
- Join Date
- Aug 2010
- Posts
- 5
- Rep Power
- 0
thank for your suggestion .
- 08-06-2010, 05:50 AM #9
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 08-06-2010, 05:54 AM #10
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 08-06-2010, 06:38 PM #11
Member
- Join Date
- Aug 2010
- Posts
- 5
- Rep Power
- 0
it seems interesting to me , every knowledge is useful ,thank you
- 08-07-2010, 02:22 PM #12
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Similar Threads
-
javac not recognized as an internal or external command
By kotoko in forum New To JavaReplies: 28Last Post: 10-26-2010, 04:39 AM -
javac is not recognized command...
By javastudent87 in forum New To JavaReplies: 6Last Post: 07-30-2010, 05:50 AM -
javac is not recognized as an internal or external command... and vista
By tsaund in forum New To JavaReplies: 13Last Post: 09-17-2009, 07:56 AM -
javac command not recognized
By sunshine39 in forum New To JavaReplies: 7Last Post: 03-04-2009, 03:54 AM -
'javac' is not recognized as an internal or external command
By sam_1032002@btopenworld.c in forum New To JavaReplies: 3Last Post: 10-18-2008, 02:40 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks