This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of Succeeding with AI and have Veljko Krunic on-line!
See this thread for details.
Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

How do I see my classpath?

 
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running Windows 98 but I don't see the environment option under my system icon in the Control Panel, to lookup the classpath. How do I look up the existing classpath from DOS? I've researched this on the web but I only get information on how to set it - just not how to see it.
Thanks for any help.
Paul
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Compile and run this code. Look for java.class.path about in the middle of all of the other properties. Of course if you are REAL clever you can call just the one property using getProperty("java.classs.path");, but this works.
 
Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or, straight from DOS, at the command line, type:
echo %classpath%
or just type:
set
to see all the environment variables.
 
Cindy Glass
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, but my way uses java, and therefore is much more by definition.
OK, OK, so maybe your way is more efficient . . . but this IS a java forum .
 
Michael Hildner
Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're absolutely correct, Cindy, yours is much more cool.
But the question was:


How do I look up the existing classpath from DOS?


So I'm more accurate
 
Cindy Glass
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But
>java GetProperties
is FROM the DOS prompt!! yourself
[This message has been edited by Cindy Glass (edited May 09, 2001).]
 
Michael Hildner
Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Allright, I give up, you win.
Never argue with a bartender
 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I value both of your responses greatly but I have to say, Michael's answer was what I was actually looking for. But to be diplomatic, I now know about this little Java feature that Cindy mentioned and I'm a better Java lad overall.
Paul
 
Cindy Glass
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your diplomacy Paul.
Now my shredded image is pasted back together .
 
Do you pee on your compost? Does this tiny ad?
Try Free Java/.NET Libraries for Word Excel PowerPoint and PDF
htttp://www.e-iceblue.com/free-apis.html
    Bookmark Topic Watch Topic
  • New Topic