Need help with JDK 5.0 Update 8 and Dev-C++

Questions about programming languages and debugging
Post Reply
User avatar
Tep
suck-o-fied!
suck-o-fied!
Posts: 86
Joined: 26 Sep 2006, 16:00
14
Location: USA, TN

Need help with JDK 5.0 Update 8 and Dev-C++

Post by Tep »

well i down loaded JDK 5.0 like BB suggested to chaos because i plan on learning java but after 6hrs of waiting i get it installed and try to compile my first script and windows say that Javac isnt a known interal/external command..... :cry:

So i gave up and download a C++ complier (cause i couldnt find any other java compilers) and when i go to compile a basic hello world script it tells me the iostream.h is not an exsiting file or something of the sort and i looked thru the help files of the prog and couldn't finding anything on how to setup include Path or Enviorment variables

so i could use alittle help with both of these problems

Thanks

robbins
forum buddy
forum buddy
Posts: 15
Joined: 25 Sep 2006, 16:00
14

Post by robbins »

jesus... what operating system are you running on to get those thrown at you????

User avatar
Tep
suck-o-fied!
suck-o-fied!
Posts: 86
Joined: 26 Sep 2006, 16:00
14
Location: USA, TN

Post by Tep »

WIndowsXP

i fixed the C++ compiler problems 8)

but the Java one still stands.....any help :?:

pseudo_opcode
cyber messiah
cyber messiah
Posts: 1201
Joined: 30 Apr 2006, 16:00
15
Location: 127.0.0.1

Post by pseudo_opcode »

did you set the classpath and path for the java??? if you dont know how to do that.. check this out.. and tell us whether it worked or not.

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11598
Joined: 06 Apr 2005, 16:00
16
Location: The zone.
Contact:

Post by bad_brain »

yep, it's most likely the path variable like pseudo_opcode said, follow the advice on the link he posted and it should work.
for a quick check type

Code: Select all

java -version
you should get something like this then

Code: Select all

java version "1.5.0_06"                                              
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) 
if not it's definitly the variable... :wink:

Post Reply