• 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

Still confused about classpath

 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Alright, I'm using Windows ME, and I've never had a problem with any classpath issue. When I first downloaded the JDK 1.3, I set the classpath so it could find the compiler:
C:\jdk1.3\bin
And that's it.
I didn't add the current directory to the classpath and I've never had any problems compiling files in whatever directory I've saved them. I've just recently started to develop my own packages and just for safety I threw the directory where my packages will be stored in the classpath, and that's the only addition I made. The classpath is to tell DOS where to look for specific programs to run when you give it a command, like javac, correct? That way it looks in jdk1.3\bin and finds the java compiler. Is there anything else I need to know about classpath?
------------------
Michael J Bruesch
Codito, ergo sum...
I code, therefore I am.
My Java Games, I'm quite proud
 
Michael Bruesch
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I even took out the line where my packages were in the classpath and it still worked fine. However I am saving my programs in the same directory where my package hierarchy begins. I tried to move the program to another directory, included the package directory back into the classpath, and it couldn't import the package. I'm trying to find good tutorials online about this, I just need someone to talk to me about it like I'm a third grader.
 
Michael Bruesch
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well I feel like Charlie Brown...Good Grief...I was confusing set path= with set classpath= , I think I got it now. I moved the program to a different directory, set the classpath to find my packages, and it compiled fine. But I still didn't add the current directory into the classpath, it worked OK. Why to you need to add:
set classpath=.;C:\etc...
into your classpath? Still not sure about that one.
------------------
Michael J Bruesch
Codito, ergo sum...
I code, therefore I am.
My Java Games, I'm quite proud
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic