• 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
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Error: import java.awt.*; is never used?

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using eclipse 2 on my new ibook g4(im new to Mac). I keep getting an error next to my java.awt.*; line. It says "java.awt.* is never used". It seems fine with my "import java.awt.Toolkit;" line. What is going on? Also, how do you view hidden files on a Mac?
Thanks!
 
Marshal
Posts: 67279
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your first question seems like more of an Eclipse question than a Mac one, so you might want to mosey on over to the IDEs Forum for that one.
By hidden files, I assume you mean those starting with the "." character? From the command line, just like any other *nix, -a on the ls command will reveal the hidden files. I do not know of any way to make the Finder expose them. Anyone else heard of such a setting?
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Matt,
Here are a few ways to reveal hidden files.
From the Finder enter shift-command-G which opens the Go to Folder input box. Type in the path to the invisible folder and it opens in a Finder window with all files and folders contained revealed.
Download TinkerTool- a wonderful utility written by a person with deep roots in OPENSTEP and NEXTSTEP. I do not like add-on software but this one is bullet proof and uses no resources. I've used it from the OS X Beta days. It scripts various hidden preferences as the one I list below.
From the Terminal, enter the command 'ls -a" which will list all files and folders in your current unix working directory.
From the Terminal, enter 'defaults write com.apple.finder AppleShowAllFiles ON'. Caps are significant. This is the command Tinkertool uses. To hide invisibles again, repeat the command but with OFF (d'oh). There are other hidden prefs- such as double scroll arrows at the top and bottom of windows. Tinkertool gives access to a few.
From OmniWeb, enter a right slash / in the url window at the top of the page, press return. This will list your file tree from the root.
HTH
Craig
 
Bear Bibeault
Marshal
Posts: 67279
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Download TinkerTool


Very cool.
 
Sheriff
Posts: 4012
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're using JEdit too, you can see and open hidden files: Open > Commands > Show Hidden Files
[ January 30, 2004: Message edited by: Pauline McNamara ]
 
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!