• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

DaysOld assigment - classpath

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm working on the DaysOld assignment and it references classpath configuration. I'm using WSAD 5.01 to do these assignments. I have not a clue what classpath needs to be changed and how to change it. I have about 30 classpath files on my computer.
HELP!!!
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
classpath files? Classpath is an environment variable. It can and usually must be set in each IDE as well. Why do you have 30 classpath files?
 
Koni Olmos
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Marilyn,
I would assume the classpath files are related to an application that I am running on Websphere. Most of the files seem to be in either Websphere or application directories.
Gary
 
Marilyn de Queiroz
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess I don't understand exactly what a "classpath file" is.
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
WSAD stores files inside the project directory, one of which is called ".classpath" and is used to store the list of JARs, etc that represent the class path for building that project. To change this, in WSAD, right click on the project in any of the perspectives and choose Properties. Then take a look at the Build Paths section. You can edit class path entries here.
Apologies if this isn't exactly correct, I don't have access to WSAD today.
 
tumbleweed
Posts: 5089
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you experiencing problems whilst compiling your class or running it & are you attemting toi run if from within WSAD or at the DOS / UNIX prompt ?
If you are having problems compiling and/or running it within WSAD. Simon's advice is 100% correct.
 
Koni Olmos
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Simon's note solved the problem. I went into Build Java Path and clicked the library tab. Next, I clicked the Add External Jar button and that solved it.
THANK YOU!!!
Gary
 
Arch enemy? I mean, I don't like you, but I don't think you qualify as "arch enemy". Here, try this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic