• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Compiler error on java.com.swing

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to display AS/400 Spool Files filtered by user profile on the client using some of the IBM supplied Java classes. But when I compile my java program, I get a compiler error �java.com.swing.* not found�. I am using �import javax.swing.* � in my program because some of the IBM supplied java classes are using swing components. How can I get my program to compile with out having to get this message? Please help
Pradeep B
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would appear that the IBM stuff is expecting the swing classes to reside in java.com.swing and not javax.swing. Try importing the package that it is complaining about and see if that fixes your problem.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!