Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Swing & Awt on Windows XP

 
Donald R. Cossitt
buckaroo
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have Microsoft Windows XP Professional Version 2002 SP-1 and have disabled Windows VM.
I have TryFlowLayout.java and the associated class as follows

The following error occurs:

I have set Path and CLASSPATH to required settings and am using j2sdk1.4.0_03
I have searched for several sessions on JavaRanch for answers and tried most to no avail. Any ideas
TIA
doco
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like you are in the Wrapper dir when trying to run Wrapper.TryFlowLayout. Try going up 1 level and doing it.
 
Donald R. Cossitt
buckaroo
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
Just get another error:

doco
 
Yehor Mikhaylov
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to place your file in

to run try:
 
Donald R. Cossitt
buckaroo
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yehor:
Thank you very much - this now works!
But this raises another question: what is the significance of not executing the class from the home directory? In the books I am using: Java Objects, Barker; Beginning Java 2, Horton, there is no mention of having to offset folders in order to execute. As well as Marilyn's brief description on Cattle Drive. Where might I get information that more precisely describes what just took place in the 'fix' of the above issue?
Again - thank you very much - you're the man!
doco
[ February 25, 2003: Message edited by: doco mastadon ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic