About
Pricing
Community
Teams
Start Free Trial
Log in
tedschnieders
asked on
1/18/2005
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
14
1
Last Comment
Mick Barry
8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Mick Barry
1/18/2005
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
1/18/2005
> 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
1/18/2005
http://www.mindprod.com/jgloss/classpath.html
Mick Barry
1/18/2005
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
1/18/2005
ASKER
C:\Borland\Bcc55\bin\bin;C
:\jdk.5.0_
01\bin my path looks like this what is wrong with it
Mick Barry
1/18/2005
is you jdk installed at c:\jdk5.0_01
tedschnieders
1/18/2005
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
1/18/2005
You don't necessarily need to set the classpath
Mick Barry
1/18/2005
> You don't necessarily need to set the classpath
already mentioned
Mick Barry
1/18/2005
> 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
1/18/2005
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
1/18/2005
> 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
1/18/2005
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
1/18/2005
may help:
http://java.sun.com/docs/books/tutorial/getStarted/application/index.html
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