aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes How to set bootclasspath and extdirs attribute for javac Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "How to set bootclasspath and extdirs attribute for javac" Watch "How to set bootclasspath and extdirs attribute for javac" New topic
Author

How to set bootclasspath and extdirs attribute for javac

Vikram Gosain
Greenhorn

Joined: Jun 02, 2009
Posts: 25
Hi
Can anyone please tell me how to set the "bootclasspath" and "extdirs" attributes of javac ant task.?.


-Vikz


-Vikz
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi Vikram and welcome to Javaranch!

Have you taken a look at the online documentation?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Vikram Gosain
Greenhorn

Joined: Jun 02, 2009
Posts: 25
Martijn Verburg wrote:Hi Vikram and welcome to Javaranch!

Have you taken a look at the online documentation?


Hello Martijn
I certainly tried my hand on this before asking this basic question...I did something like...


But I got exception....


So it made me apprehensive about my way of setting this parameter.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hmm the documentation isn't that clear is it , I would perhaps remove the toString call in that property replacement.
Vikram Gosain
Greenhorn

Joined: Jun 02, 2009
Posts: 25
Martijn Verburg wrote:Hmm the documentation isn't that clear is it , I would perhaps remove the toString call in that property replacement.


If you mean to say is that we can use the path directly ,then I tried that option as well.I gave the path directly.What I tried is..

Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Maybe, just maybe it doesn't like having the space character in the PATH, you could try installing Java @ C:\Java\<jdk version> and see if that makes a difference.
Vikram Gosain
Greenhorn

Joined: Jun 02, 2009
Posts: 25
Martijn Verburg wrote:Maybe, just maybe it doesn't like having the space character in the PATH, you could try installing Java @ C:\Java\<jdk version> and see if that makes a difference.


Hello Martijn,I tried that as well.Did not work. Am I missing something.?.Or is my syntax wrong.??
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5843
    
    7

What do you have JAVA_HOME set to? It would appear you have it set to a JRE and not a JDK.


JBoss In Action
Vikram Gosain
Greenhorn

Joined: Jun 02, 2009
Posts: 25
Peter Johnson wrote:What do you have JAVA_HOME set to? It would appear you have it set to a JRE and not a JDK.

Hi Peter.
I have tried with both JDK and JRE option.java home is actually set to point to jdk.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set bootclasspath and extdirs attribute for javac