aspose file tools*
The moose likes Mac OS and the fly likes Error: import java.awt.*; is never used? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "Error: import java.awt.*; is never used?" Watch "Error: import java.awt.*; is never used?" New topic
Author

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

Matt Wilcko
Ranch Hand

Joined: Sep 23, 2003
Posts: 65
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

Joined: Jan 10, 2002
Posts: 61766
    
  67

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Craig Sutherland
Greenhorn

Joined: Nov 25, 2003
Posts: 21
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


When all at once a mighty herd of red eyed cows he saw...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

Download TinkerTool

Very cool.
Pauline McNamara
Sheriff

Joined: Jan 19, 2001
Posts: 4012
    
    6
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error: import java.awt.*; is never used?