• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Matt Wilcko
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!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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?
 
Craig Sutherland
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
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Download TinkerTool

Very cool.
 
Pauline McNamara
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic