• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

tools.jar

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Ravissant Markandey
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic