aspose file tools*
The moose likes JBoss/WildFly and the fly likes tools.jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "tools.jar" Watch "tools.jar" New topic
Author

tools.jar

Ravissant Markandey
Ranch Hand

Joined: Oct 24, 2007
Posts: 41
Hi Everyone,

Can anyone please tell me what exactly the tools.jar is for? Its present im the lib folder of JBOSS and also in the JRE's lib folder and both need to be in sync for the application to run. But can anyone tell me what exactly the files in this jar do?


Regards,
Ravissant Markenday
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10210
    
166

Ravissant Markandey wrote: Its present im the lib folder of JBOSS and also in the JRE's lib folder and both need to be in sync for the application to run. But can anyone tell me what exactly the files in this jar do?




It's not present in the JBoss lib. Where did you get the JBoss from? Maybe someone manually copied that jar into JBoss. That jar belongs to the JDK and not JBoss.


[My Blog] [JavaRanch Journal]
Ravissant Markandey
Ranch Hand

Joined: Oct 24, 2007
Posts: 41
Thanks for the reply Jaikishan, well yes the JBoss I have on my system has tools.jar in a lot of places , i kept getting a version 49/49 error until i replaced the tools.jar in my Jboss with the version in my JRE. So i believe the system looks for this jar, i havent tried removing it from my JBoss and running the application yet.
But can you still tell me what really happens in there when you DO have tools.jar in your JBoss and the versions are mismatched?
Ravissant Markandey
Ranch Hand

Joined: Oct 24, 2007
Posts: 41
Thanks for the reply Jaikishan, well yes the JBoss I have on my system has tools.jar in a lot of places , i kept getting a version 49/49 error until i replaced the tools.jar in my Jboss with the version in my JRE. So i believe the system looks for this jar, i havent tried removing it from my JBoss and running the application yet.
But can you still tell me what really happens in there when you DO have tools.jar in your JBoss and the versions are mismatched?
Ravissant Markandey
Ranch Hand

Joined: Oct 24, 2007
Posts: 41
Thanks for the reply Jaikishan, well yes the JBoss I have on my system has tools.jar in a lot of places , i kept getting a version 49/49 error until i replaced the tools.jar in my Jboss with the version in my JRE. So i believe the system looks for this jar, i havent tried removing it from my JBoss and running the application yet.
But can you still tell me what really happens in there when you DO have tools.jar in your JBoss and the versions are mismatched?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Is there an echo in here???

The tools.jar files contains classes used by the JDK, classes that are not needed by the JRE. Examples include classes for things such as javac, javadoc, and many of the other executables found in the JDK bin directory.

As Jaikiran pointed out, that file should only ever exist in the JDK's lib directory and nowhere else (if you have several JDKs installed, each one will have its own copy). The version of tools.jar must match the version of the JDK and also the version of rt.jar (the primary JRE set of classes). This (making sure all of the versions match) is why it is important to set JAVA_HOME properly to the JDK installation directory.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tools.jar