Re: Strange depend behavior

2002-02-21 Thread Stefan Bodewig
On Thu, 21 Feb 2002, Scott Ellsworth <[EMAIL PROTECTED]> wrote: > It seems reasonable, as these class files _are_ dated earlier than > the jars they came from. tries to preserve the timestamps when extracting the files, maybe we should make this behavior configurable? Stefan -- To unsubscribe

Re: Policies/Suggestions on adding attributes...

2002-02-21 Thread Stefan Bodewig
On Thu, 21 Feb 2002, Michael J. McGonagle <[EMAIL PROTECTED]> wrote: > I had only tried adding attributes to other tags, not the project > tag. I just tried it and got an error. Which one? Ant is supposed to always fail if it encounters attributes it doesn't know. Except for tasks you never tr

Re: File copy problem

2002-02-21 Thread Stefan Bodewig
On Thu, 21 Feb 2002, Scott Ganyo <[EMAIL PROTECTED]> wrote: > It is a shame that the copy task doesn't support the concept of > "copy when different date That would work, do you want to supply a patch? > (or content)" which would decrease performance a lot more than overwrite="true" as you'd h

Re: Setting environment variables for a javac task

2002-02-21 Thread Stefan Bodewig
On Thu, 21 Feb 2002, Mike Kaufman <[EMAIL PROTECTED]> wrote: > Thanks a lot. I'll try that. Where is the latest Ant > documentation? The stuff at > http://jakarta.apache.org/ant/manual/index.html seems a little > incomplete. Depends on what you call the latest 8-) The online manual is the ma

Re: How to know current OS with If condition

2002-02-21 Thread Diane Holt
--- HkPandey <[EMAIL PROTECTED]> wrote: > How can I know that on which os I m running the ant utility. It's ${os.name}. > and second is that according to OS I want to use the tag. How > can it be possible through ant. You can't with -- it only allows for if/unless, and they only check for set

Re: Problem with deleting folders with ant..

2002-02-21 Thread Diane Holt
--- Mak Bhandari <[EMAIL PROTECTED]> wrote: > I guess not.. So the answer would be using either different windows for > ant and for running the application or setting classpaths at runtime via > batch files, right ? How are you running the application? Is it with the task? If it is, can't you a

Re: help - uptodate task clarification needed please.

2002-02-21 Thread Jeff Vincent
ACK!! — Thank you. I really need more sleep. >>> [EMAIL PROTECTED] 02/21/02 07:42PM >>> --- Jeff Vincent <[EMAIL PROTECTED]> wrote: > > targetfile="gensrc/Lexer.java"> > > > You do have them backwards -- you also have the wrong attribute ('includesfile' is use

RE: Setting environment variables for a javac task

2002-02-21 Thread Diane Holt
--- Mike Kaufman <[EMAIL PROTECTED]> wrote: > Where is the latest Ant documentation? > The stuff at http://jakarta.apache.org/ant/manual/index.html seems a > little incomplete. The latest is available from CVS -- but it'd be out-of-sync with what you're using, if you're using a release rather th

Re: help - uptodate task clarification needed please.

2002-02-21 Thread Diane Holt
--- Jeff Vincent <[EMAIL PROTECTED]> wrote: > > targetfile="gensrc/Lexer.java"> > > > You do have them backwards -- you also have the wrong attribute ('includesfile' is used to point to a file that contains a list of [possibly patterned] filenames). Try:

help - uptodate task clarification needed please.

2002-02-21 Thread Jeff Vincent
Could someone please help me clarify the usage of the uptodate task in ANT (v1.4.1) ? I have the following files: ./build.xml ./Lexer.g ./gensrc/Lexer.java ./gensrc/LexerTokenTypes.java ./gensrc/LexerTokenTypes.txt The 'gensrc' directory is peer to both the Lexer.g file and my build.xml file.

Strange depend behavior

2002-02-21 Thread Scott Ellsworth
Hi, all. I was trying to build a jar that contained other jars with 1.4.1. Until the src for a zipfileset is a fileset itself, I unjar things manually. In this case, I unjar every jar I will need into my output directory before compiling additional classes. Since these other jars are also

RE: names of files compiled

2002-02-21 Thread Paul Cody
> logging attribute. But I'll stick it out there and see how it flies. I As a humble ant user (not a committer), I would support that option. Option of showing either the absolute paths ("/home/user/org/example/MyClass.java\n") or just filenames and no newlines (" MyClass.java") would be great.

Re: names of files compiled

2002-02-21 Thread Diane Holt
--- Roger Talkov <[EMAIL PROTECTED]> wrote: > Is there a way to show just the names of the files compiled. I don't > want to use the verbose option as it shows a lot more than just the > file names Not until now :) I just added a 'listsource' attribute to my Javac.java (needed a diversion from e

Re: Setting environment variables for a javac task

2002-02-21 Thread Steve Holdener
> Believe it or not, I read the docs. Unfortunately, I found them pretty > vague. For example, how does ant find the compiler you specify? It uses JAVA_HOME and PATH, I believe. In fact, Ant requires JAVA_HOME to be set before it'll do anything. We use jikes, so we have to make sure everyone

RE: Setting environment variables for a javac task

2002-02-21 Thread Mike Kaufman
> > --- Mike Kaufman <[EMAIL PROTECTED]> wrote: > > > I need to have a single ant target do multiple javac tasks, > > > some of which use JDK 1.4, others that use JDK 1.3. Setting > > > the "build.compiler" property did not seem to work for me. > > I think you'd need to break your single t

Setting environment variables for a javac task

2002-02-21 Thread Mike Kaufman
Hi, I need to have a single ant target do multiple javac tasks, some of which use JDK 1.4, others that use JDK 1.3. Setting the "build.compiler" property did not seem to work for me. Moreover, it isn't clear to me what this build.compiler setting is really doing. An alternative way to acc

RE: Setting environment variables for a javac task

2002-02-21 Thread Diane Holt
--- Mike Kaufman <[EMAIL PROTECTED]> wrote: > > I need to have a single ant target do multiple javac tasks, > > some of which use JDK 1.4, others that use JDK 1.3. Setting > > the "build.compiler" property did not seem to work for me. I think you'd need to break your single target into separ

RE: File copy problem

2002-02-21 Thread Scott Ganyo
That might be fine except... 1) The files I'm copying are not necessarily class files (image files, resource files). 2) The files end up deployed in a web archive (WAR) where I don't have control over classpath order (they exist en masse in the lib directory). Unfortunately, I really need a mor

Re: Policies/Suggestions on adding attributes...

2002-02-21 Thread Diane Holt
--- Michael J McGonagle <[EMAIL PROTECTED]> wrote: > I had started to design my own datafile for my project, but it really > came out very similar to an Ant build.xml (or at least a subset of a > build.xml), so rather than create a new file format, I just want to work > with the Ant file directly

Re: File copy problem

2002-02-21 Thread Steve Holdener
Scott Ganyo wrote: > I have a hierarchy of projects. Some of the projects have duplicate files. > I need to make sure that a given project can override its ancestor projects' > files even if the files are newer in the ancestor. I would think this is a > common problem in complex builds. > > The

Re: Policies/Suggestions on adding attributes...

2002-02-21 Thread Michael J McGonagle
Erik Hatcher wrote: > > - Original Message - > From: "Michael J McGonagle" <[EMAIL PROTECTED]> > > Basically, I want to know if it is "legal" (ie; does Ant just ignore the > > unused attributes) to do the following: > > > > > > > > ... > > > > Nope, not legal and won't work. But trial

Re: Policies/Suggestions on adding attributes...

2002-02-21 Thread Erik Hatcher
- Original Message - From: "Michael J McGonagle" <[EMAIL PROTECTED]> > Basically, I want to know if it is "legal" (ie; does Ant just ignore the > unused attributes) to do the following: > > > > ... > Nope, not legal and won't work. But trial-and-error would show this easily. > I had s

Re: Policies/Suggestions on adding attributes...

2002-02-21 Thread Michael J McGonagle
Erik Hatcher wrote: > > You're still speaking in riddles, at least to me, but feel free to come back > with more specifics if/when you're ready. :) > > I'm assuming you're speaking of creating custom Ant tasks ("mapped to the > XML file"). Basically, I want to know if it is "legal" (ie; does An

RE: names of files compiled

2002-02-21 Thread Dominique Devienne
No, you have to roll your own. I did it in a quick and dirty fashion by starting the Javac compiler myself from a Java class (using reflection), hooking up a FilterOutputStream to System.err, and filtering all verbose messages starting with the opening squared bracket '[' except those followed by

File copy problem

2002-02-21 Thread Scott Ganyo
Here's my problem, I wonder if there is an answer (aside from writing my own task): I have a hierarchy of projects. Some of the projects have duplicate files. I need to make sure that a given project can override its ancestor projects' files even if the files are newer in the ancestor. I would

RE: Problem with deleting folders with ant..

2002-02-21 Thread Rollo, Dan
What about "fork'ing" or "exec'ing" the tasks that need the jar on the classpath and manaully specifying the classpath for the forked task? Then I think the jar file would be released (and deleteable) after the forked task VM is completed. Dan -Original Message- From: Mak Bhandari [mailt

RE: Setting environment variables for a javac task

2002-02-21 Thread Mike Kaufman
I'm resending this because my reply to was broken. > -Original Message- > From: Mike Kaufman > Sent: Thursday, February 21, 2002 11:01 AM > To: '[EMAIL PROTECTED]' > Subject: Setting environment variables for a javac task > > > Hi, > > I need to have a single ant

names of files compiled

2002-02-21 Thread Roger Talkov
Is there a way to show just the names of the files compiled. I don't want to use the verbose option as it shows a lot more than just the file names Roger Talkov [EMAIL PROTECTED] 425-644-2121 x135

RE: [ANN] Tidy Imports (Tim) utility with Ant integration

2002-02-21 Thread Mark Griffiths
Stephane Bailliez wrote: > > FYI importscrubber ( http://importscrubber.sourceforge.net/ ) > does the same (AFAIK) and has been donated to Jakarta. It now > resides in the promising Maven (jakarta-turbine-maven) > Hi! Just FYI also, the major differences between the two are: o ImportScrubber is f

Comparing 2 directories for file content

2002-02-21 Thread Peterson, Brian
I looked in the archives and on the web but to no luck...before I write one, does anyone have a task that compares 2 directories (file sets!?) by comparing file content? thanks, brian peterson [EMAIL PROTECTED] -- To unsubscribe, e-mail: For additional commands, e-m

Re: Problem with deleting folders with ant..

2002-02-21 Thread Conor MacNeill
Mak Bhandari wrote: > That was it !! Thanks for your help. However, this raises one more question, and I >apologise if this is the wrong forum for it. > > I *need* to have the deployed jar file in my CLASSPATH and also *need* to be able to >delete it with ANT before a build. How do I get both

Re: Ant, SAX Parser and Internationalization

2002-02-21 Thread Stefan Bodewig
On Thu, 21 Feb 2002, Paul Smiley <[EMAIL PROTECTED]> wrote: > I changed my files (I believe) to UTF8 and added a > 'encoding=\"UTF8\"' flag to javac in Ant. Java calls it UTF8 while XML calls it UTF-8 with a dash. Are your java source files UTF encoded as well? If so, you may need to set the e

Javac and classpath

2002-02-21 Thread Nick Cross
Hi, I have been having a bit of a problem with the javac task. The sun javac compiler states that if the '-d' flag is used the directory is not added to the classpath. The ant javac task makes no mention of whether this happens when specifying a destdir so I assumed that it didn't and wrote my

Re: Ant, SAX Parser and Internationalization

2002-02-21 Thread Stefan Bodewig
On Thu, 21 Feb 2002, Paul Smiley <[EMAIL PROTECTED]> wrote: > I am creating deployment descriptors and such on the fly - and using > a writer similar to the following to write them: > > FileOutputStream fos = new > FileOutputStream(buildBeanFile); OutputStreamWriter >

RE: Ant, SAX Parser and Internationalization

2002-02-21 Thread Smiley, Paul
Has anyone ever seen this? I did a full web search and it comes up null. I changed my files (I believe) to UTF8 and added a 'encoding=\"UTF8\"' flag to javac in Ant. error: compiler message file broken: key=compiler.err.sun.io.MalformedInputExcep tion arguments=null, null, null, null, null, nu

Re: JDK1.4 and Ant1.4.1 can't find javac on Solaris 8

2002-02-21 Thread Stefan Bodewig
On Thu, 21 Feb 2002, stephen chambers <[EMAIL PROTECTED]> wrote: > On all three checks, the answer is yes, tools.jar exists and it and > all preceding directories are readable/executable and jar tf shows: > > com/sun/tools/javac/Main.class That leaves me at a total loss. This is the class that

RE: [ANN] Tidy Imports (Tim) utility with Ant integration

2002-02-21 Thread Stephane Bailliez
> -Original Message- > From: Mark Griffiths [mailto:[EMAIL PROTECTED]] [...] FYI importscrubber ( http://importscrubber.sourceforge.net/ ) does the same (AFAIK) and has been donated to Jakarta. It now resides in the promising Maven (jakarta-turbine-maven) Stephane -- To unsubscribe, e-

[ANN] Tidy Imports (Tim) utility with Ant integration

2002-02-21 Thread Mark Griffiths
Greetings I'd like to introduce a utility that integrates with Ant. If the right people are listening to this list, we would be grateful if an entry for Tim could be added to http://jakarta.apache.org/ant/external.html. Name: Tidy Imports (Tim) Compatibility: Ant 1.3 and later URL: http://www.c

Re: Problem with deleting folders with ant..

2002-02-21 Thread Paolo Miola
and how could set classpaths at runtime via batch files? it's possible and usefull set en eviroment variable named CLASSPATH? - Original Message - From: "Mak Bhandari" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Thursday, February 21, 2002 5:02 PM Subject: Re: Probl

RE: Ant, SAX Parser and Internationalization

2002-02-21 Thread Smiley, Paul
Thanks to all for responding! I am creating deployment descriptors and such on the fly - and using a writer similar to the following to write them: FileOutputStream fos = new FileOutputStream(buildBeanFile); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-16

Re: Problem with deleting folders with ant..

2002-02-21 Thread Mak Bhandari
I guess not.. So the answer would be using either different windows for ant and for running the application or setting classpaths at runtime via batch files, right ? Thanks again ! --- Stefan Bodewig <[EMAIL PROTECTED]> wrote: >On Thu, 21 Feb 2002, Mak Bhandari <[EMAIL PROTECTED]> wrote: > >>

Re: Problem with deleting folders with ant..

2002-02-21 Thread Stefan Bodewig
On Thu, 21 Feb 2002, Mak Bhandari <[EMAIL PROTECTED]> wrote: > I *need* to have the deployed jar file in my CLASSPATH and also > *need* to be able to delete it with ANT before a build. How do I get > both ? Do you need to have it your CLASSPATH *while running* Ant? If so, why? Stefan -- To un

Re: Ant, SAX Parser and Internationalization

2002-02-21 Thread Stefan Bodewig
On Thu, 21 Feb 2002, Paul Smiley <[EMAIL PROTECTED]> wrote: > "...really use UTF-8" - am I not using UTF-8 when using > 'encoding="UTF-8"'? No, you only claim you'd be using UTF-8. æ is the ISO-8859-1 encoded version of the Unicode character with the number 230. The UTF-8 encoded version consi

Re: Problem with deleting folders with ant..

2002-02-21 Thread Mak Bhandari
That was it !! Thanks for your help. However, this raises one more question, and I apologise if this is the wrong forum for it. I *need* to have the deployed jar file in my CLASSPATH and also *need* to be able to delete it with ANT before a build. How do I get both ? Thanks.. Mak --- Stef

Re: Ant, SAX Parser and Internationalization

2002-02-21 Thread Conor MacNeill
Smiley, Paul wrote: > "...really use UTF-8" - am I not using UTF-8 when using 'encoding="UTF-8"'? > Is there some type of byte mark as there is with UTF-16? > > Also, I need to support Kanji and Chinese characters, so I believe that > UTF-8 and ISO-8859-1 are inadequate. Any suggestions? > > _P

RE: Ant, SAX Parser and Internationalization

2002-02-21 Thread Jon Skeet
> "...really use UTF-8" - am I not using UTF-8 when using > 'encoding="UTF-8"'? > Is there some type of byte mark as there is with UTF-16? I believe Stefan was trying to suggest that although you've *declared* that your file is in UTF-8, it might *actually* be in a different encoding. How are y

RE: Ant, SAX Parser and Internationalization

2002-02-21 Thread Smiley, Paul
"...really use UTF-8" - am I not using UTF-8 when using 'encoding="UTF-8"'? Is there some type of byte mark as there is with UTF-16? Also, I need to support Kanji and Chinese characters, so I believe that UTF-8 and ISO-8859-1 are inadequate. Any suggestions? _Paul -Original Message- Fr

RE: JUnitReport and Xalan problems

2002-02-21 Thread Shacklady, Matt
> anymore in Xalan 2.2. I find the error message a bit strange and wonder > if you really have the optional.jar from Ant 1.4 since I expect to see a Thank you very much for your help Stephane! It's working now. I am not sure what it was, but it is probably one or more of the following: a) I do

Re: Problem with deleting folders with ant..

2002-02-21 Thread Stefan Bodewig
On Thu, 21 Feb 2002, Mak Bhandari <[EMAIL PROTECTED]> wrote: > C:\cvs\work\cams\bin\..\deployment\build.xml:13: Unable to delete > file C:\cvs\wo rk\camsjar\cams.jar at Is this file on your CLASSPATH? If so, the Java VM running Ant is holding a lock on it, so that you cannot delete it. Stefan

RE: BUG: ant 1.4.1 startup script on cygwin

2002-02-21 Thread Chappell, Simon P
I'm running ant just fine under Cygwin since I uninstalled the JDK from it's usual location and installed it in a location under the Cygwin root. In my case: CYGWIN_ROOT=c:\local\cygwin JAVA_HOME=c:\local\cygwin\usr\local\j2sdk1.4.0-beta3 This has the effect of enabling Java in both the Windows

RE: JUnitReport and Xalan problems

2002-02-21 Thread Stephane Bailliez
> -Original Message- > From: Shacklady, Matt [mailto:[EMAIL PROTECTED]] > > Thanks for the tip, > I looked at comments from the article I got the info on > JUnitReport from and > someone else reported the same problem. > Someone replied saying that the class was deprecated in Xalan > 2.

Problem with deleting folders with ant..

2002-02-21 Thread Mak Bhandari
Hi All I'm new to ant.. I have a build file that does this to start with [target name="init"] [property name="Jars" value="../../camsjar" /] [property name="Src" value="../src" /] [property name="Dest" value="../../deploycams/camsclasses" /] [property name="De

RE: JUnitReport and Xalan problems

2002-02-21 Thread Shacklady, Matt
> Then should be just fine. make sure you have all these jars under > ANT_HOME\lib (and make sure you really have the Ant 1.4 optional jar) Thanks for the tip, I looked at comments from the article I got the info on JUnitReport from and someone else reported the same problem. Someone replied sayi

RE: JUnitReport and Xalan problems

2002-02-21 Thread Stephane Bailliez
> -Original Message- > From: Shacklady, Matt [mailto:[EMAIL PROTECTED]] > > [...] > > > Can anyone help me with this issue? > > > > What is your Ant version ? > 1.4 Then should be just fine. make sure you have all these jars under ANT_HOME\lib (and make sure you really have the Ant 1.4

Re: JDK1.4 and Ant1.4.1 can't find javac on Solaris 8

2002-02-21 Thread stephen.chambers
On all three checks, the answer is yes, tools.jar exists and it and all preceding directories are readable/executable and jar tf shows: com/sun/tools/extcheck/Main.class com/sun/tools/javac/v8/Main$Option.class com/sun/tools/javac/v8/Main$XOption.class com/sun/tools/javac/v8/Main$HiddenOption.cla

Re: Script task, listing of available objects

2002-02-21 Thread Steve Holdener
Dylan Schiemann wrote: > In my not so infinite wisdom, I posted the wrong > uri... it should have listed it as > http://www.sitepen.com/ant/javascript.html This looks like a nice rundown of the topic. I think you have some incorrect dates, though. Several sections are labelled "xx Feb 2001"

Re: BUG: ant 1.4.1 startup script on cygwin

2002-02-21 Thread Stefan Bodewig
On Thu, 21 Feb 2002, Jorg Schaible <[EMAIL PROTECTED]> wrote: > STOP! Who said, that the CLASSPATH has to be Cygwin syntax? I have a > lot of Java apps that can be started directly from command line that > implies no Cygwin syntax for CLASSPATH at all. Exactly, Jeppe's patch reverts the "Cygwini

Re: BUG: ant 1.4.1 startup script on cygwin

2002-02-21 Thread Conor MacNeill
Schaible, Jorg wrote: > Hi Stefan! > > STOP! Who said, that the CLASSPATH has to be Cygwin syntax? Well the JDK is a windows App even when it runs under cygwin so the CLASSPATH probably should be in Window's path format. > I have a lot of > Java apps that can be started directly from comman

RE: BUG: ant 1.4.1 startup script on cygwin

2002-02-21 Thread Schaible, Jorg
Hi Stefan! STOP! Who said, that the CLASSPATH has to be Cygwin syntax? I have a lot of Java apps that can be started directly from command line that implies no Cygwin syntax for CLASSPATH at all. This change just prevents ant from running! regards, Jorg >-Original Message- >From: Stefan

RE: JUnitReport and Xalan problems

2002-02-21 Thread Shacklady, Matt
> > -Original Message- > > From: Shacklady, Matt [mailto:[EMAIL PROTECTED]] > > [...] > > Can anyone help me with this issue? > > What is your Ant version ? 1.4 This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary materia

RE: JUnitReport and Xalan problems

2002-02-21 Thread Stephane Bailliez
> -Original Message- > From: Shacklady, Matt [mailto:[EMAIL PROTECTED]] [...] > Can anyone help me with this issue? What is your Ant version ? Stephane -- To unsubscribe, e-mail: For additional commands, e-mail:

newbie: input to the java app

2002-02-21 Thread Arnas Kupsys
Hello, I'm new to ant, but felt in love with this tool from the first sight. I have a problem. If my java application wants to read from the keyboard, and is lounched using ant ant java commant using fork="yes" attribute, Input stream blocks. I need fork because I have to provide jvmarg to java V

JUnitReport and Xalan problems

2002-02-21 Thread Shacklady, Matt
Hi, Can anyone help me with this issue? I am trying to use JUnitReport, my buildfile looks as follows: I am getting the following error: /vobs/Services/scripts/build.xml:265: java.lang.NoClassDefFoundError: org/apache/x

Re: for-next loop for copying files

2002-02-21 Thread Stefan Bodewig
On Thu, 21 Feb 2002, Hakan Koseoglu <[EMAIL PROTECTED]> wrote: > I want to copy a large set of files to a large set of targets. Can't you use nested s and a single , maybe throwing in a to account for the large set of targets? Stefan -- To unsubscribe, e-mail: For

for-next loop for copying files

2002-02-21 Thread Hakan Koseoglu
I want to copy a large set of files to a large set of targets. Instead of writing a set for each of the targets, is there a way to do it in some kind of for-next grouping? Hakan Koseoglu PCMS Datafit Ltd. 3 Avro Court Ermine Business Park Huntingdon Cambs PE29 6XS Tel: +44-1480-435467 Fax: +44

Re: Does the tag have an equivalent of failOnError attribut e?

2002-02-21 Thread Paolo Miola
use tag : http://jakarta.apache.org/ant/manual/CoreTasks/fail.html - Original Message - From: "Ryali, Ravi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 21, 2002 3:03 AM Subject: Does the tag have an equivalent of failOnError attribut e? > > Hi, > > As a part o

Re: Does the tag have an equivalent of failOnError attribut e?

2002-02-21 Thread Stefan Bodewig
On Wed, 20 Feb 2002, Ravi Ryali <[EMAIL PROTECTED]> wrote: > As a part of building our application using ANT, I delete some jars > from directories, then compile my source files, jar them and copy > the new JARs to the same directories. But when my build fails, I > want to retain the older JAR f

Re: JDK1.4 and Ant1.4.1 can't find javac on Solaris 8

2002-02-21 Thread Stefan Bodewig
On Wed, 20 Feb 2002, stephen chambers <[EMAIL PROTECTED]> wrote: > [echo] java.class.path = > >/usr/ant/lib/jaxp.jar:/usr/ant/lib/crimson.jar:/usr/ant/lib/ant.jar:/usr/java/lib/tools.jar Obvious checks: (1) /usr/java/lib/tools.jar exists (2) /usr/java/lib/tools.jar is readable by you