• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

getting started problem

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have always used editors. Now I am trying to just use JDK - I also don't know alot of the dos commands
These are my problems/questions:
-I have win 98 at home
I went into the autoexec.bat - it is set to
PATH=%PATH%;C:\PROGRA~1\SSHCOM~1\SSHSEC~1;C:\JDK1.3.0_02\BIN
with the following is what I added:
C:\JDK1.3.0_02\BIN
do I do this also for the classpath
then I went to dos to make sure the path took effect in dos, I have:
C:\windows>
i cannot get to
C:>
to type C:> C:autoexec.bat
to see if the path has taken effect
i do have my java folder created off of the c:
as suggested in the cattle drive and am trying to follow the same setup
So:
classpath =
C:\JDK1.2\LIB;.;C:\JAVA
path =
C:\JDK1.2\BIN;C:\JDK1.2\JRE\BIN

thanks
mary
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mary, the first part of what you did looks right. In DOS type cd.. to move back a directory. From c:\windows this will take you back to C:\ then type
cd jdk1.3.1_02
then
cd bin (or you can do these to together such as cd jdk1.3.1_02\bin)
This then gives you the c:\jdk1.3.1_02\bin> prompt. By then typing in javac and pressing rtn you should get Usage : javac <options> <source file> or something to this effect and a load of other stuff to tell you its all set up right.
As far as i know you don't need to type in c:\autoexec.bat (i never have) if javac works.
Then you should be ready to go off and start doing some Java.
Any other problems its always good idea to do a search on the subject first as it has usually been asked before.
 
Chicken Farmer ()
Posts: 1932
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You set the path so that you can type javac, java, or any other executable in the bin directory from any path.
To get to the root of C:\, you can type cd \ from any path, and you're at the root.
The classpath is what you set when you want to tell your system where to find .class files for your program. I wouldn't worry about that yet.
If you edit your autoexec.bat file, you have to reboot your system for the changes to take effect. If you haven't done that, do so.
When the computer comes back up, and you go to a DOS prompt, if your pathing is correct, you should be able to type javac or java, and get a listing of available options (as Sam suggested).
 
mary morris
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Guys!! Got it. I didn't know I needed to reboot and I never noticed the search.
Mary
 
jason adam
Chicken Farmer ()
Posts: 1932
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey, if you don't ask how do you ever find out!
Glad to have been of help. Feel free to ask any questions you have about the assignments, just remember not to post any code or give away too much
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic