Avatar of tedschnieders
tedschnieders
 asked on

Need help with my enviroment variables

c:\java
c:\jdk1.5.0_01
c:\jre1.5.0_01
this is the path to where my program is saved

how do i set my enviroment variables so that i can compile my programs

my path variable is C:\Borland\Bcc55\bin\bin for C++ i dont know if i add something to that or what

also i do not have a Class Path enviroment variable i do not know if i need one or not

if you need more information to help me i will provide it

thanks ahead of time
ted
Java

Avatar of undefined
Last Comment
Mick Barry

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Mick Barry

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Mick Barry

> also i do not have a Class Path enviroment variable i do not know if i need one or not

if you don't have one it will only look in the current directory for classes

If you want it to look elsewhere then you need a classpath
Mick Barry

Mick Barry

Setting JAVA_HOME (to c:\jdk1.5.0_01) is also a good idea
Your help has saved me hundreds of hours of internet surfing.
fblack61
tedschnieders

ASKER
C:\Borland\Bcc55\bin\bin;C:\jdk.5.0_01\bin my path looks like this what is wrong with it
Mick Barry

is you jdk installed at c:\jdk5.0_01
tedschnieders

ASKER
yes thank you needed it to be C:\jdk1.5.0_01\bin

will you help me set up my class path
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
CEHJ

You don't necessarily need to set the classpath
Mick Barry

> You don't necessarily need to set the classpath

already mentioned
Mick Barry

> yes thank you needed it to be C:\jdk1.5.0_01\bin

that what i suggested above

> will you help me set up my class path

sure, where do u keep your classes?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
tedschnieders

ASKER
not sure
is that where the files go after the are interpreted or compiled..... i guess i dont know obviously what im talk about
can you explain

c:\java\java
is where i keep the files i write and that are interpreted
Mick Barry

> is that where the files go after the are interpreted or compiled

yes, they have a .class extyension

> c:\java\java
> is where i keep the files i write and that are interpreted

If you are running them from the same directory then you can get away with a classpath

Mick Barry

If you want to run them from any directory then ass c:\java\java to your classpath
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Mick Barry