You can find the implementation version there. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Ask Question. Asked 10 years, 8 months ago. Active 23 days ago. Viewed k times. Improve this question. Damien 1, 2 2 gold badges 18 18 silver badges 30 30 bronze badges. Ritesh Mengji Ritesh Mengji 5, 9 9 gold badges 29 29 silver badges 46 46 bronze badges.
Add a comment. Active Oldest Votes. Improve this answer. Thomas Weller Vivek Vivek 4, 15 15 gold badges 55 55 silver badges 66 66 bronze badges. As i told that I am working on enhancing the application, I have downloaded the jar files and I know the version of the jar files. But I wanted to know the version of the jar which the package belongs to, I hope you get it.
To explain you more, I have import x. So is it that, if you know the version of jar which they used while building the application, you would also use the same version of jar to execute the application? If that is what your requirement is, then am afraid that you will have to rebuild the application with exclusion of deprecated jars. Because finding version number associated with a given jar is like one to one function. Only one version number for one jar file.
But finding which version of jar was used at the time of development of application sounds highly impossible to me unless the developer attaches the required jars with the application. MF appears to be optional. There's no version recorded in various sqljdbc Where is it getting this version from if it's not recorded in the manifest? Show 4 more comments. MF file, e. This answer and others is currently discussed on Meta — Thomas Weller.
Just to complete the above answer. MF path. You can examine jar's contents in any archiver that supports zip. Nick Volynkin Vadzim Vadzim Community Bot 1 1 1 silver badge. I just calculated the jar md5 and pasted it to google. Worked great, thanks a lot! Donatello Donatello 2, 3 3 gold badges 25 25 silver badges 33 33 bronze badges. To get the Server Version, run the following: java -jar. Skells DC. Skells 7 7 silver badges 14 14 bronze badges.
Thanks for the reference to javaxt, I just used the simpler code sample there from javaxt. FYI, for those who prefer maven to pull javaxt-core rather than downloading the JAR, you could do either of these approaches: gist. I'm late this but you can try the following two methods using these needed classes import java. Attributes; import java. Manifest; These methods let me access the jar attributes. For Linux, try following: find.
For example, you might want to launch a different version of your rich Internet application RIA or redirect the user to a different page depending on the client's JRE software version. Use the Deployment Toolkit script's versionCheck function to check if a particular version or range of JRE versions is installed on the client.
Usage: Creating a different user experience depending on the client's JRE software version. In this example, a Launch button is created for the Notepad application only if the version of JRE software on the client is greater than or equal to 1. If not, the browser is redirected to oracle. All rights reserved. Hide TOC.
0コメント