The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help Required: Command to find IP address and command executed of a user loggedout Security 2 08-06-2008 05:12 PM
how to? launch command with string of command line options TinCanFury Shell Programming and Scripting 5 04-28-2008 03:06 PM
inconsistent ls command display at the command prompt & running as a cron job rajranibl Linux 5 07-30-2007 05:26 AM
How to use more than one MPE command STREAM with Unix command in a single shell? bosskr HP-UX 1 10-16-2006 01:16 PM
How to use more than one MPE command STREAM with Unix command in a single shell? bosskr Shell Programming and Scripting 0 09-19-2006 06:44 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 09-09-2005
Registered User
 

Join Date: Sep 2005
Posts: 4
javaclean command?

Hello,

Is there a command on Unix to remove all .class files when you're compiling and running Java programs? I think I used something called "javaclean" at school, but maybe that was a pre-written script? Does anyone know how to do this?

TIA.
Reply With Quote
Forum Sponsor
  #2  
Old 09-09-2005
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,469
If you do Java development, probably you should use a build tool (such as Make) for that. For Java, Apache Ant is commonly used for this purpose. You can write a simple target in the build file with a few directives to remove all class files recursively easily with, say an "ant dist-clean" command. See more info about Ant at http://ant.apache.org.

Otherwise, a command can be specified that can be as simple as

find . -type f -name '*.class' -exec \rm {} \;

(Test before real use)

I've never heard of "javaclean". I think it is more likely to be a custom script that uses a command similar to the above given.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0