Package version identification

I just completed going through the
http://developer.java.sun.com/developer/TechTips/1999/tt0414.html#tip2
article on "Package version identification" and based
on the results I got, unless I did something wrong,
I'd say that who ever implemented Java 1.4.1 on
windows left out a lot of stuff. Below is the code I
ran:
public class LoadClass {
     public static void main(String args[]) {
          // check argument
          if (args.length != 1) {
               System.err.println("missing classname");
               System.exit(1);
          // load class
          Class cls = null;
          try {
               cls = Class.forName(args[0]);
          catch (ClassNotFoundException e) {
               System.err.println(e);
               System.exit(1);
          // retrieve and check package information
          Package pkg = cls.getPackage();
          if ((pkg == null) || (pkg.equals(""))) {
               System.out.println("No version information");
          } else {
               System.out.println(pkg);
               System.out.println(pkg.getImplementationTitle());
               System.out.println(pkg.getImplementationVendor());
               System.out.println(pkg.getImplementationVersion());
               System.out.println(pkg.getSpecificationTitle());
               System.out.println(pkg.getSpecificationVendor());
               System.out.println(pkg.getSpecificationVersion());
               System.out.println("Sealed: "+pkg.isSealed());
               try {
                    if (pkg.isCompatibleWith("1.2")) {
                         System.out.println("Compatible with 1.2");
               } catch(NumberFormatException nfe) {
                    System.err.println("Empty version string");
                    //nfe.printStackTrace();
}and here's the results I got:
java LoadClass java.util.regex.Matcher
package java.util.regex
null
null
null
null
null
null
Sealed: false
Empty version string
java LoadClass java.nio.MappedByteBuffer
package java.nio
null
null
null
null
null
null
Sealed: false
Empty version string
java LoadClass java.util.ArrayList
package java.util
null
null
null
null
null
null
Sealed: false
Empty version string
java LoadClass java.lang.System
package java.lang
null
null
null
null
null
null
Sealed: false
Empty version string
Did I do something wrong or are the implementers taking
a lot of short cuts on windows or is the Package class not
really supported any more?

Check the manifest - Is this information provided?

Similar Messages

  • Where can I find the enhancement package version in my sap system

    Hi everybody,
        Can anyone tell me where can I find the enhancement package version information in my sap system?
    Thanks

    Hi Mike
         Thank you for your reply. But i can only find SAP BASIS7.1 under the Enterprise Services Repository in Tcode SPROXY.So could you tell where can I open SCV?
    Thanks

  • Question about ssh login warning: Bad protocol version identification

    I set up ssh on my computer according to Tim Haigh's suggestions given here:
    http://discussions.apple.com/thread.jspa?threadID=1674968&tstart=0
    But when I log in from my iPhone, secure.log shows this:
    sshd[534]: Bad protocol version identification 'GET / HTTP/1.1' from 208.54.83.51
    Although I do log in successfully, how can I resolve this error?

    GET / HTTP/1.1
    Looks more like a Web browser handshake, than ssh.

  • Display Package version number in HTML?

    Hi,
    My customer wants to display the version number of the apps/xx package in the HTML.
    I'm just wondering if this is a good idea, i.e. the actual package contents could be overwritten, but the package doesn't change.
    Also - how could that be achieved?  There is a services JSP in the CRX package manager - could that be used?
    http://localhost:4502/crx/packmgr/service.jsp
    Thanks!

    The subject line & description looks contridactory. I am assuming you are looking for package version, For that You should be able to get using jcr package api [1]. Ex:- vJcrPackageDefinition.getId().getVersionString()
    http://dev.day.com/docs/en/cq/current/javadoc/com/day/jcr/vault/packaging/JcrPackageDefini tion.html

  • How to prevent downgrading of the app in meta package using package versioning feature of package maker tool?

    Hi,
    Created  an installer i.e, meta package using package maker tool. I want  to prevent downgrading of the application or package on the target/installed volume. 
    Problem is, if there is a newer version of app and when I try to install any older version, then it does not throw any error message to the end user and replaces the existing newer version with the older version of app, which should not happen. But, if I check the package version using version comparison of Package  maker tool, that works fine with flat packages i.e, with the .pkg files. So, I need the solution for metapackages(.mpkg) and want to prevent downgrading of app for metapackages. I am not getting any solutions for this. Can someone guide me on this?
    Thanks for the help provided.
     

    Hi,
    Created  an installer i.e, meta package using package maker tool. I want  to prevent downgrading of the application or package on the target/installed volume. 
    Problem is, if there is a newer version of app and when I try to install any older version, then it does not throw any error message to the end user and replaces the existing newer version with the older version of app, which should not happen. But, if I check the package version using version comparison of Package  maker tool, that works fine with flat packages i.e, with the .pkg files. So, I need the solution for metapackages(.mpkg) and want to prevent downgrading of app for metapackages. I am not getting any solutions for this. Can someone guide me on this?
    Thanks for the help provided.
     

  • Package versioning not working

    I'm having trouble getting the package versioning to work for me for some reason. I've stripped it down to the most elemental of examples and I'm still getting back null for all the versioning info for my package.
    I set up a tmp package with a Tmp.java class as follows:
    package tmp;
    class Tmp
    public static void main(String[] argv)
    Package p = Tmp.class.getPackage();
    System.out.println("Version " + p.getSpecificationVersion() + "\nImplementation Version "
    + p.getImplementationVersion());
    My manifest file is as follows:
    Manifest-Version: 1.0
    Name: tmp
    Specification-Version: blah
    Implementation-Version: foo
    I made sure the manifest file has a newline at the end and is in UTF8 format. I package it up with:
    jar cfm tmp.jar tmp/manifest.txt tmp/*.class
    I run it with:
    java -cp tmp.jar tmp/Tmp.class
    and get:
    Version null
    Implementation Version null
    I can't get it to work with either Linux or Windows.
    Linux Java version:
    java version "1.5.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build pxp64devifx-20060310 (SR1))
    IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux ppc64-64 j9vmxp6423ifx-20060310 (JIT enabled)
    J9VM - 20060220_05389_BHdSMr
    JIT - 20060220_2133_r8
    GC - 20060214_AA)
    JCL - 20060222a
    Windows Java version:
    java version "1.5.0_10"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
    Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode, sharing)
    Any help would be most appreciated.

    Ok, I figured it out. I didn't have a / on the end of my Name: line.

  • How to check the Business Package version in portal

    Hi All,
    I need information on business package version which is running in portal. after the business package deployed in portal then we could see the content in portal content->content provided by SAP folder.
    Recently we upgraded the Busiess Package of XRPM from 4.5 to 5.0  in portal, now i wanted to see what the content currently running in Portal whether it is Business Package of 4.5 or 5.0 version??
    Please let me know where could we check the BP version which is running in portal??
    Please get back to me with your inputs
    Thanks in advance
    Regards
    PortalUser100

    Hello,
    Please look in the http://HOST:PORT/index.html here you can find the link for the portal information. then click on system information >> component information. here you can find the all the deployed content running in the portal.
    Best Regards,
    Arun Jaiswal

  • Reg : ESS/MSS Business Package Versions

    Hi Experts,
    What is ESS/MSS Business Package Version for the following SAP Backend Systems :
    SAP 4.7
    SAP ECC 5.0
    SAP ECC 6.0
    Best Regards,
    Roby..

    Hi Robert,
    As suggested above, you can look at the BPs in the content portfolio.
    For ESS :
    Business Package for Employee Self-Service (mySAP ERP 2004)
    60.2*
    *Business Package for Employee Self-Service (mySAP ERP)
    1.0*
    *Business Package for Employee Self-Service 4.6C - 4.7
    50.4*
    For MSS :
    *Business Package for Manager Self-Service (mySAP ERP 2004)
    60.1.2*
    *Business Package for Manager Self-Service (mySAP ERP)
    1.0*
    Business Package for Manager Self-Service 60.1.20
    Consider rewarding points if handy!
    Cheers,
    Sandeep Tudumu

  • ESS Business Package Version suitable

    Hi,
    Please suggest me the suitable ESS business package version for the following
       R/3 4.7 Enterprise
       EP6.0 SP14
    Regards,
    Joshua Kiran

    Hi Kiran,
    You can go for Business Package for Employee Self-Service 4.6C - 4.7  50.4
    You can find the information under
    http://www.sdn.sap.com
    Click the link downloads under top level navigation.
    Click on portal content portfolio
    and then click on the link list of packages
    Regards
    Arun

  • Differences in between Enhanced Package version 603 SP14 and SP16

    Hi Gurus,
    Can someone please provide me some insight regarding differences/enhancements in between Enhanced Package version 603 SP14 and SP16.
    Appreciate your help in advance.
    Thanks and Regards,
    Sanjo

    Hi,
    I'm not sure if there is an SP16. The latest is ehp04 SR1 SP14 (released November 2008). For more information:
    http://solutionbrowser.erp.sap.fmpmedia.com/Default.aspx
    Cheers,
    D_F

  • What is the latest MSS package version?

    Hi all,
    I want to know what is the latest MSS package version?. Or is it depending on SAP R/3 version I use? Could some one give me the details?. I promise to award points.
    Regards
    Maruti

    Hello, usually, this page lets you know what is the most current version: http://blogs.adobe.com/crawlspace/2011/03/keeping-photoshop-up-to-date.html

  • EP SP12 - Business Package Version Check ?

    Dear Portal Specialists,
    How to check the version of the business package applied in EP.e.g. that for ESS.
    Thanks.
    Josh

    Hi,
    you can check this using SDM,
    E:\usr\sap\NWD\DVEBMGS00\SDM\program\RemoteGui.bat
    and check there..
    you can see list of deployed objects there.
    To understand Package version please follow this example.
    if deployed file is MSSnn_m.SCA , then nn represnts support package level, m is patch for support package.
    MSS02_0.SCA -> Support level 1, patch 0.
    Hope this helps.
    Regards,

  • Pull DP trying to download expired Package Version

     SCEP updates package gets updates 3 times a day,  we have 4 std DPs, and one Pull_DP,  the SCEP update package is being deployed successfully to 4 standard DPs on our network, however the Pull DP was off line for a time and has an earlier
    version of the SCEP updates package stored locally.  Every time we try to re-distribute the SCEP package to the Pull_DP it tries to download an expired version, and there are errors stating 'no valid source' but we know that all the source DPs are all
    OK, all other applications and packages are being deployed successfully to the Pull_DP.
    It is obvious that the Pull_DP is trying to download a version that is now, superseded on all the available source DPs
    We have tried removing the Pull_DP from the deployment, allowing "removal" which is successful, however again, on re-deployment it looks for and tries to download the same expired package version.
    So two questions.  :-
    1) where is / how do we remove the "out of date" data relating to the expired package on the Pull_DP
    2) is reverting the DP back to a standard DP  redeploying the package work ?
    thanks 
    Nick B
    Solutions Architect

    changing the DP to Std,  and 'pre-stage'   worked as Torsten suggested.  Reverted back to a Pull_DP  and over night there were two package updates, both have failed.
    Changing it back to Std, and the latest package downloaded successfully.
    So - perhaps a Pull_DP isnt the best option for update packages !!
    thank you again Torsten
    Solutions Architect

  • Lock a package version ??

    Hi,
    I have to use wine version 20040615-1 for certain applications ( a must for me) to run. I cannot use any later version of wine, those applications will not work. Installing wine 20040615-1 was easy -- thanks to arch forum, however, now I cannot do a system upgarade.
    When I do pacman -Syu it tries to upgrade wine too.. Now I do not want wine to be upgraded and at present have to do "pacman -Syu --ignore wine".
    Now there can be some more packages which I do not want to upgrade, it will be really difficult to add all in the ignore list.
    Is there a better way ?  Can we lock a package version as we can do in synaptic ( debian/Ubuntu) ?
    Thanks in advance.
    Regards,
    Abhay

    Thanks tomk,
    Ignorepkg is definately a better way of retaining packages.
    Thanks again

  • Question nVidia Chipset Drive Package Version Number.

    Question nVidia Chipset Drive Package Version Number.
    Hope this question is in the right sub forum.
    I have see this question asked on several Forums, but never see a answer.
    How do you tell which Chipset Driver Package Version is installed on your system, other than going to the Device Manager calling up the properties for each device and record the version number and comparing it to what listed for the Drive Package version?
    Roger

    I agree with you Richard.
    I wouldn't say super fast ram though, I buy Crucial. It is very nice ram and does not break the bank. (no heatsinks on it or any other expenses)
    Maybe I offended you, Bcc, by accident. I'm just trying to help folks on these forums and I have been with the nforce since day one. I have never seen this issue happen (or anything like it) on this board.
    Like my suggestion, (if that didn't work, I would have continued to work) if I couldn't disable the agp host I would have uninstalled it (the device itself) and let windows try again. It could have been an nforce package issue and not with the detonator. I wish when these problems occurred, that I had the opportunity to try and fix these very rare occurences and examine the issue at my own desk.
    I see too many people jump to the conclusion that they have found the mystery bug and go tell nvidia to recall the boards and fix it. I would not try to tell you that you are clueless about computers, as I don't have any idea how well you know them. But as an experienced technical writer/helper, I'm inclined to speak to the people as if they are dumb. As you can guess, many aren't, and they think that I may be saying they are, but at least they understand the situation.
    More than the majority of problems are caused by heat. Too much heat will cause funny things to start happening to your computer. Sometimes it's just the ram, or maybe the cpu that get overheated. With summer coming, it's prime time to see the 'heat' problem creep up. I'm sure this wasn't the case with your issue, but it is overlooked most of the time.
    Anyway, I'm glad your happy and your problem is fixed.

Maybe you are looking for

  • ITunes won't open after OS update to Yosmite

    ITunes won't open after OS update, ITunes has been updated, it won't open or bounce. It will not allow me to move it to trash or reinstall it. I have already updated to OS X Yosmite two times as directed by apple, I have rebooted in safe made as well

  • Upgrading internal HDD on Macbook Pro 13(Unibody)-Mid 2009

    Hi All, I have a 160GB internal hdd on my MBP 13 which i am finding to be pretty low on space. So I am planning to upgrade the internal HDD. I did a lot of reading on the web and looks like there are 3 contenders: 1. WD scorpio blue 500/640/750 GB, 5

  • ModelData and MetaData Mapping in JCo Connection

    Hi all <b>i tried the example given in webdynpro tutorials(Creating a Web Dynpro Application Accessing ABAP Functions) but i got dout while creating JCo connection After clicking "Create" button of  WD_FLIGHT_MODELDATA_DEST two radiobuttons of 1)mode

  • Validatedata.js in 11.1.2

    Hi All I'm having an issue with ValidateData.js file in 11.1.2 I created a code given below function validateForm(){ if (equalsIgnoreCase(applicationName,"Visa")) { if (equalsIgnoreCase(formName,"02. New Asset Requests with Threshold")) { var variabl

  • No userstore Active in trc file

    Hi all, i need some big help here.. im upgrading my Java server from 640Sp19 to 7.0sp13.. ( the installation default is SP9 then i have put it SP13 to the epsinbox of the jupgrade ) my Os is Aix 5.3ML6 my DB ora 10.2.0.2 now my jupgrade is in START_J