Java 7 US_export_policy.jar availability

I'm doing a test run of Java 7, but need the Unlimited Strength Cryptography Extension files. Anyone know where they can be found? Or, if they aren't available yet, any idea when they will be?

That worked. Don't know why I didn't try it in the first place. Thanks.

Similar Messages

  • Java.sql.SQLException: No available resource. Wait-time expired.

    Hi all,
    The application platform is SunONE Application Server 7, and the database is ORACLE 9i. My Website application will raise the SQLException once a few days' running. Everything will be ok once the Application server has been restarted. The detail about the Exception is :
    [12/Aug/2003:10:41:03] WARNING (25931): CORE3283: stderr: java.sql.SQLException: No available resource. Wait-time expired.
    [12/Aug/2003:10:41:03] WARNING (25931): CORE3283: stderr:      at com.sun.enterprise.resource.JdbcDataSource.internalGetConnection(JdbcDataSource.java:251)
    [12/Aug/2003:10:41:03] WARNING (25931): CORE3283: stderr:      at com.sun.enterprise.resource.JdbcDataSource.getConnection(JdbcDataSource.java:98)
    [12/Aug/2003:10:41:03] WARNING (25931): CORE3283: stderr:      at com.tsp.gdgpo.ejbm.util.EnvUtil.getDSConnection(EnvUtil.java:72)
    [12/Aug/2003:10:41:03] WARNING (25931): CORE3283: stderr:      at com.tsp.gdgpo.ejbm.util.DirectDSUtil.getObjectsFromDS(DirectDSUtil.java:103)
    [12/Aug/2003:10:41:03] WARNING (25931): CORE3283: stderr:      at com.tsp.gdgpo.ejbm.jcsms.dam.JcsmsDDSA.getSpecialistByPage(JcsmsDDSA.java:388)
    [12/Aug/2003:10:41:03] WARNING (25931): CORE3283: stderr:      at com.tsp.gdgpo.ejbm.jcsms.sessionbeans.SpecialManagerEJBBean.listSpecialist(SpecialManagerEJBBean.java:1941)
    [12/Aug/2003:10:41:03] WARNING (25931): CORE3283: stderr:      at com.tsp.gdgpo.ejbm.jcsms.sessionbeans.SpecialManagerEJBBean_EJBObjectImpl.listSpecialist(SpecialManagerEJBBean_EJBObjectImpl.java:702)
    [12/Aug/2003:10:41:03] WARNING (25931): CORE3283: stderr:      at com.tsp.gdgpo.ejbm.jcsms.sessionbeans._SpecialManagerEJBBean_EJBObjectImpl_Tie._invoke(Unknown Source)thanks for any help
    Niu

    Ther is a related Bug i n Oracle: Bug No. 4420032
    PROBLEM STATEMENT: ------------------
    The Oracle client file ojdbc_14.jar is not handling exceptions correctly. The connection pool slowly runs out of connections and hits the oracle db limit of max_sessions. Increasing the db max_sessions does not help as the number of sessions continue to increase.
    The vendor developers of ct's application have identified a code problem with the Oracle client file ojdbc_14.jar. Their description follows.
    The following is a technical description of the Oracle JDBC client library issue. The jar file in question is: ojdbc_14.jar. This issue is also present in the 9.2.05 and 9.2.06 versions of the client code.
    The socket.close() call in TcpNTAdapter.disconnect() does not properly handle network exceptions. Where the exception should be handled within the code segment calling socket.close(), the class instead throws an exception without ensuring the socket is closed. The socket is not subsequently closed by clients of the class. This ultimately results in a connection leak. Overtime, the maximum number of Oracle database sessions is reached. The only work around for this issue in production, is to restart the effected processes.
    The code segment:
    public void disconnect()
    throws IOException { 
    socket.close();
    socket = null; }
    should be along the lines of:
    public void disconnect()
    throws IOException { 
    try{  socket.close();  }
    catch(IOException ioe){  throw ioe;  }
    finally{  socket = null;  } }
    The original code segment will not execute the statement "socket = null" when . an exception occurs. Given the fact that the exception is not subsequently processed properly, the object is never dereferenced, and the socket remains open for the life of the process. Adding this statement in the finally block . ensures the object will ultimately be destroyed by the garbage collector. . ct tested this change in their lab and found that the recommended modification successfully resolved the issue.
    This problem has occurred with the previous ct's application releases, but the vendor has only recently been able to isolate the root cause. The JDBC connection pool slowly runs out of connections and hits the oracle db limit of max_sessions.
    Increasing the db max_sessions does not help as the number of sessions continue to increase. This problem has been occuring in Production over the past few releases of the application, but usually the connections leak slowly. This problem can be duplicated under heavy load in just a few minutes . in the Loadtest environment.

  • Msg: "No compatible version of Java 1.7+ is available"

    Hi,
    I recently upgraded my mbp to Mavs. Most everything owrking fine, but trying to launch a certain software I get the message, ""No compatible version of Java 1.7+ is available."
    I know nada about Java.
    Typing 'java -version' into Terminal I get:
    java version "1.6.0_65"
    Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
    Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
    Does Mavs run 1.7?
    Any info on what it means or suggestions on what to do?
    best,
    elmer

    Thanks!
    Just criously, how come I don't have a Java icon in System Preferences? I thought 10.7 and up are supposed to have it.

  • How to make new jars available globally on the portal to all projects?

    Hello,
    I have downloaded few jar files which are needed for few projects and aren't comming with the portal by default.
    I would like to make these jars available globally to every project I will write in the future. What is the exact procedure I need to do on the portal server in order to acheive this?
    Regards,
    Roy

    I've been playing around with this as well (in combination with NWDI).
    You need to consider what should happen if you ever have an update of the "common" jar-files that you are adding. They might break some of the portal apps that use them, so it's not a good solution to use a J2EE Library DC if you know there will be updates in the future. If you're sure there will be no updates, this is indeed the simplest way to implement this. All you need to do is to specify a PrivateSharingReference for the portal apps as explained here: http://help.sap.com/saphelp_nw04/helpdata/en/88/bdfc3f48ecc742e10000000a1550b0/content.htm
    The 2nd available option (based on NWDI) is to create an External Library DC and add your jars to that. Create an extra public part for assembly (next to the existing public part for compilation called ExternalLibs). Then, for each portal app DC add the External Library DC as a used DC, create an assembly public part and add an Entity Reference to the assembly public part of the External Library DC. This way the jars will be assembled in the PAR file for each portal app. The nice thing is that you are still maintaining the jar files in one central place, but that you have the option to update and test the portal apps individually.

  • Java classes in Jar and Cab files

    Hello all,
    Our product supply java classes in Jar and Cab files that the browser downloads each time.
    The files are big and it takes a long time.
    Do you know of a way to make the cab/jar files be copied in to the user computer and that the browser would know to download files again only if there is a new version (otherwise take it from the local computer)
    Please help me
    Tamg

    I think I've seen an option for this with manifest files (or was it something that had to do with the java plug-in). There was something about the version and only download a new version if it was newer than the one on your local computer. This version thing is something you define in the manifest file at least. Take a look at jar and manifest files, there might be something there.

  • Java.io.FileNotFoundException: JAR entry META-INF/wsdl/....

    Hi Guys!
    I am having the following problem with my webdynpro java application on CE 7.1:
    In one of my dc's i am calling another dc which is an ejb. The called ejb calls a webservice.
    (my dc --> ejb --> webservice)
    My dc has nothing to do with the webservice. It just calls an ejb which calls a webservice.
    Although I am getting a deploymentexception when I try to deploy my dc:
    Caused by: java.io.FileNotFoundException: JAR entry META-INF/wsdl/....*.wsdl not found in /usr/sap/..../..wscl.war
    I have no idea where I should put the wsdl file ...
    Hope anyone can help me.
    Cheers,
    Andi

    Sir
    If I am not wrong you itself had mentioned that : My dc has nothing to do with the webservice. It just calls an ejb which calls a webservice.
    Now I wanted to know about your workaround also request you to go at metadata file of your DC and chck that whether it contain the reference of the EJB or Webservice.
    One more point  : exception is FileNotFoundException so might you have manually put the reference of WSDL url/uri inside EJB xml file ??
    Best Regards
    Satish Kumar
    Edited by: satish jhariya on Mar 24, 2010 2:20 PM

  • Is it possible to zip and use java file in jar?

    there are 2 cases:
    1. only zip no-package java files in a jar file:
    i.e.
    ------------zip
    NoPack0.java (they are no package)
    NoPack1.java
    NoPackN.java
    ------------as NoPack.jar
    2. zip both no-package and packaged java files in a jar file
    i.e.
    ------------zip
    NoPack0.java
    NoPackN.java
    pack\HasPack0.java (they are packed in 'pack')
    pack\HasPackN.java
    ------------as HasPack.jar
    my question is:
    for 2 cases above, if both, one or none of them can be use as a jar file in -classpath for javac compiler?
    thx

    has my Q been answered?

  • ORA-29547: Java system class not available: oracle/aurora/rdbms/Compiler

    Hi experts,
    I get the above error when I run the following code using sqlplus:
    create or replace and compile java source named "DirList"
      2      as
      3      import java.io.*;
      4      import java.sql.*;
      5
      6      public class DirList
      7      {
      8      public static void getList(String directory)
      9                        throws SQLException
    10      {
    11         String element;
    12
    13
    14         File path = new File(directory);
    15         File[] FileList = path.listFiles();
    16         String TheFile;
    17         Date ModiDate;
    18         #sql { DELETE FROM DIR_LIST};
    19
    20         for(int i = 0; i < FileList.length; i++)
    21         {
    22             TheFile = FileList[ i ].getAbsolutePath();
    23             ModiDate = new Date(FileList[ i ].lastModified());
    24
    25             #sql { INSERT INTO DIR_LIST (FILENAME,LASTMODIFIED)
    26                    VALUES (:TheFile,:ModiDate) };
    27         }
    28     }
    29    }
    30  /
    create or replace and compile java source named "DirList"
    ERROR at line 1:
    ORA-29547: Java system class not available: oracle/aurora/rdbms/CompilerAny body can tell me what to do to run external commands like os commands using pl/sql in details with example.
    I will appreciate any sooner response.
    Thanks

    What is the output of this query?
    SQL> select owner, object_name, object_type from dba_objects where object_name = 'oracle/aurora/rdbms/Compiler' ;
    OWNER                          OBJECT_NAME                     OBJECT_TYPE
    SYS                            oracle/aurora/rdbms/Compiler    JAVA CLASS
    PUBLIC                         oracle/aurora/rdbms/Compiler    SYNONYM
    2 rows selected.
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.3.0 - Production
    SQL>

  • How to create java archive using jar command

    hello
    what is the syntax for creating java acrchive using jar command line
    jar -c ???????
    urgent plzz

    jar cf myjar.jar classfiles...
    If you have a manifest file you want to add:
    jar cfm myjar.jar manifest.mf classfiles...
    Also check the documentation:
    http://java.sun.com/j2se/1.3/docs/tooldocs/tools.html
    You can find a link to jar there.

  • Platforms where Java 5 is NOT available

    Is there any list of platforms where only Java 1.4 is available - not Java 5?
    Thank you

    I don't know of any, but you could cruise the obvious vendor java web pages to find out. IBM has JSE 5 for zOS mainframes and pSeries (AIX) midranges, Linux (AMD/Intel, pSeries & S/390), but not the iSeries (OS/400) boxes. HP has JSE 5 for HP/UX, NonStop (Tandem), OpenVMS (Alpha processor only), but not for True64 Unix. Apple has it for the latest releases of MacOS X.
    Unfortunately there is no one place to look.

  • JWS Hanging when updated jar available

    Hi,
    When I make an updated JAR file available, it gets downloaded and verified correctly (it's signed), but then nothing. The progress dialogue simply says that scanning has reached 100%. There have been a couple of threads along these lines, but nothing that seems to jump out as a solution. Here are the details:
    I have an application that I am deploying, as described by this JNLP file:
    <?xml version="1.0" encoding="ANSI"?>
    <jnlp spec="1.0+" href="ourapp_main.jnlp" codebase="http://myMachineName/ourapp">
      <information>
        <title>Application Titlet</title>
        <vendor>Meridian Informatics</vendor>
        <homepage href="http://meridianinfo.com" />
        <description>Our app</description>
        <description kind="one-line">Our app</description>
        <description kind="tooltip">Our app</description>
        <description kind="short">Our app</description>
        <icon href="http://myMachineName/ourapp/images/icon.gif" version="" width="" height="" depth="" size="" />
        <offline-allowed />
      </information>
      <resources>
        <j2se version="1.3+" />
        <jar href="ourapp_main.jar" main="false" download="eager" />
        <nativelib href="win32printerdll.jar" download="eager" />
        <extension href="activation.jnlp" name="activation" />
        <extension href="borland.jnlp" name="borland" />
        <extension href="collections.jnlp" name="collections" />
        <extension href="design_pro.jnlp" name="design_pro" />
        <extension href="ourapp.jnlp" name="ourapp" />
        <extension href="ibmftp.jnlp" name="ibmftp" />
        <extension href="framework.jnlp" name="framework" />
        <extension href="mail.jnlp" name="mail" />
        <extension href="xreport_pro.jnlp" name="xreport_pro" />
        <extension href="xtools.jnlp" name="xtools" />
      </resources>
      <security>
        <all-permissions />
      </security>
      <application-desc main-class="com.meridianinfo.ourapp.twotier.MainApp" />
    </jnlp>And here's a JNLP file for one of the extensions (all extension JNLP files were copied from an original and the relevant names changed):
    <?xml version="1.0" encoding="ANSI"?>
    <!--  created on Tue Aug 28 13:18:27 GMT+11:00 2001  --><!--  created by fitzpatk on Windows 2000  --><!--  1.3.0  -->
    <jnlp codebase="http://myMachineName/ourapp" spec="1.0+" href="ibmftp.jnlp">
      <information>
        <title>Desktop for Ecommdirect</title>
        <vendor>Meridian Informatics</vendor>
        <homepage href="http://meridianinfo.com" />
        <offline-allowed />
        <icon kind="default" href="http://myMachineName/ourapp/images/icon.gif" />
      </information>
      <resources>
        <jar href="ibmftp.jar" main="false" download="eager" />
      </resources>
      <component-desc />
      <security>
        <all-permissions />
      </security>
    </jnlp>In versions of JWS prior to the latest, all the JNLP files would be downloaded, but then processing would stop (i.e. no jar files would be downloaded).
    When using the latest version of JWS, launching an application for the first time works fine - everything gets downloaded correctly, installed, and the application launched. As long as there are no updates, this continues to work.
    If I update one of the jar files, it is downloaded and scanned, but the application never starts. The dialogue stating that scanning has reached 100% remains on screen. There is nothing untoward in the log file or in the console. If I hit Cancel at this point, and try to launch the application again, everthing works (of course, there is nolonger an update to download at this point).
    If I update two or more jar files (but not all!), I have to repeat the previous procedure for every updated jar file, before the application will launch.
    If I update all of the jar files, it works as expected - everything is downloaded and installed and the application is started.
    BTW: I am "updating" the jar files by resigning them (using jarsigner).
    I am using Win NT and Win 2K, JRE's 1.3.1 and 1.3.0_01.
    This looks like a bug to me, but before I log it as such, I'd appreciate hearing your thoughts/comments. Maybe there is something missing from my JNLP files, or some combination of software that is likely to cause this?
    All comments appreciated.
    Kieran

    There have been a couple
    of threads along these lines, but nothing that seems
    to jump out as a solution.Yep.
    My strategy is brute force, born out of cluelessness, and is either
    1. nuke .javaws/cache and retry
    or if that doesn't help get really angry and
    2. nuke the whole Java Web Start installation directory (and please make sure that not a single .dll survived eg due to IE having some instance slurped in), reinstall Web Start and retry
    and if that does not help we go into scapegoat location mode and do
    3. It must be the bloody JRE, thus try again with 1.3.1, 1.3.1_01, 1.4 and whatever JRE you get your hands on, try also alternative vendors like IBM or Blackdown
    the adventureous now might do
    4. sign that incomprehensible license agreement, download the Web Start sources and fix the problem yourself
    but if you have not enough time or skills on your hand then finally give up and try
    5. It is a Web Start bug. Let's submit it as bug and wait for 1.1
    Not too subtle, eh? :-)
    But there are reasons for this.
    installation of new versions might end in a mess
    No. 2 is motivated by the fact that deinstallations of old Web Start versions and installations of new Web Start versions might lead to a mess.
    Ideally Web Start would work afterwards such installations without problems, and even better, the old cache would be left intact, so that not everything needs to get downloaded again.
    I had two cases (me playing with 1.01 and 1.01_01, and a colleague playing with 1.01something and trying out the 1.4 JDK beta, where Web Start is a part of the JDK) where this led to a hang of that kind what you described.
    The installation guide
    http://java.sun.com/products/javawebstart/docs/installguide.html
    hints as well that things might go wrong.
    cache corruption, insufficient change detection
    No. 1 is rooted in the observation that Web Start's update mechanism does not work as expected.
    Ideally, when we launch an app, the Web Start client should find out about the main jnlp file and the sub jnlp files and jar files that are used by it. It should detect changes in all those items and download if they changed.
    BTW: I am "updating" the jar files by resigning them
    (using jarsigner).But what changes does it detect?
    - does it just look if something with the same name is already in the cache?
    - does it look at the timestamps of the cache contents and compare that to the timestamps of the versions on the server?
    - does it compare content differences (eg by calculating hashes like md5 or SHA-1)?
    My impression that it does only the first.
    I very often have to empty the whole Web Start cache on the client, when I'm changing/updating jars and jnlps on the server.
    more fun
    No.3 is justified by experience. I had many surprises here.
    Regards,
    Marc

  • Error with Java WebStart Signed Jars on 1.6.0_19's new Mixed  Code

    All,
    First, we have a valid code signing certificate/keystore from Thawte that works for signing webstart jars as of update 18. For some reason, if you run our webstart application on update 19 JRE, the runtime believes that some of the jars are not signed and some are. Even though we create and sign the jars in the exact same way and after inspecting the jar the JRE believes are not signed they have the necessary signing entries/files in the manifest folder. Not sure why the signing process would work for some of our jars and not for others. There is nothing really all that different.
    So, because the JRE believes some of the jars are not signed the new security warning "...contains both signed and unsigned code." pops up ( [Error Description|http://java.com/en/download/help/error_mixedcode.xml] ). If I press yes, then I get the following exception.
    java.lang.SecurityException: trusted loader attempted to load sandboxed resource from https://path-to-our.jar
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.check(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.access$1400(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ChildElement.checkResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.checkResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at main.JwsMain.main(JwsMain.java:32)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)If I press "no" I get the following exception (I get this exception if I try to run our WebStart application with no signed jars as well, no warnings about missing certs, just straight to error)
    java.lang.NullPointerException
         at com.sun.deploy.cache.CachedJarFile.findMatchingSignerIndices(Unknown Source)
         at com.sun.deploy.cache.CachedJarFile.entryNames(Unknown Source)
         at com.sun.deploy.cache.DeployCacheJarAccessImpl.entryNames(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler.assertTrust(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler.access$700(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.check(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.access$1400(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ChildElement.checkResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.checkResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at main.JwsMain.main(JwsMain.java:32)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)Does anyone know why this would be happening? It only occurs with the new update. We use the same keystore and process for signing all of our jars so it really doesn't make since why some of them work and some of them don't. Also, our JNLP is correct or it wouldn't work in update 18.
    Edit: We've tried it on Windows XP SP3 and compiled the code using update 18 and used jarsigner both from 18 and 19 with same results.
    Edited by: chenthor on Apr 1, 2010 8:44 AM
    Edited by: chenthor on Apr 1, 2010 8:51 AM

    Hi All,
    So we've been battling this bug for a year or so now, and I've come up with a solution to the webstart bugs
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6967414
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6805618
    (see the bugs for more details)
    From what we can tell the bug stems from the way that the jar signers information is "cached" by webstart.
    When a jar is loaded by webstart, it is represented by a CachedJarFile instance. When loading and using classes the signature for the jar is verified. The signers used is the one that is stored in the CachedJarFile instances. These "signers" are stored as SoftReferences. SoftReferences are like WeakReferences, except that they only become eligible for garbage collection when there is a small amount of available heaps space remaining and that the object is only softly reachable. (That's a pretty crude description, but it will do for now)
    So what we found was happening is that when the JVM reached a certain heap size threshold and needed to allocate more heap, that these soft references (and hence the signers information) werebeing garbage collected. if you attempt to load a class after this you get the security error.
    So I came up with a hack to work around this. At application startup, iterate through all of the CachedJarFile objects on the classpath and create a hard reference to each of the signers info by putting them in a static list somewhere. From our tests this seems to work. (though with the intermittent nature of the problem, it has been hard to prove conclusively, though we've had some success repro-ing the issue, by reducing the intial heap size and using VisualVM to watch for heap expansions and forcing gc's)
    Below is the code for the hack, to run it just call JarSignersHardLinker.go() and it will do some sanity checks (running on webstart on java 1.6 update 19 or higher) before spawning a new thread to create hard refs for all signers info for all jars on the classpath.
    import java.io.IOException;
    import java.lang.ref.SoftReference;
    import java.lang.reflect.Field;
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    import java.net.JarURLConnection;
    import java.net.URL;
    import java.net.URLConnection;
    import java.util.ArrayList;
    import java.util.Enumeration;
    import java.util.LinkedHashSet;
    import java.util.List;
    import java.util.Set;
    import java.util.jar.JarFile;
    * A utility class for working around the java webstart jar signing/security bug
    * see http://bugs.sun.com/view_bug.do?bug_id=6967414 and http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6805618
    * @author Scott Chan
    public class JarSignersHardLinker {
        private static final String JRE_1_6_0 = "1.6.0_";
         * the 1.6.0 update where this problem first occurred
        private static final int PROBLEM_JRE_UPDATE = 19;
        public static final List sm_hardRefs = new ArrayList();
        protected static void makeHardSignersRef(JarFile jar) throws java.io.IOException {
            System.out.println("Making hard refs for: " + jar );
            if(jar != null && jar.getClass().getName().equals("com.sun.deploy.cache.CachedJarFile")) {
                 //lets attempt to get at the each of the soft links.
                 //first neet to call the relevant no-arg method to ensure that the soft ref is populated
                 //then we access the private member, resolve the softlink and throw it in a static list.
                callNoArgMethod("getSigners", jar);
                makeHardLink("signersRef", jar);
                callNoArgMethod("getSignerMap", jar);
                makeHardLink("signerMapRef", jar);
    //            callNoArgMethod("getCodeSources", jar);
    //            makeHardLink("codeSourcesRef", jar);
                callNoArgMethod("getCodeSourceCache", jar);
                makeHardLink("codeSourceCacheRef", jar);
         * if the specified field for the given instance is a Softreference
         * That soft reference is resolved and the returned ref is stored in a static list,
         * making it a hard link that should never be garbage collected
         * @param fieldName
         * @param instance
        private static void makeHardLink(String fieldName, Object instance) {
            System.out.println("attempting hard ref to " + instance.getClass().getName() + "." + fieldName);
            try {
                Field signersRef = instance.getClass().getDeclaredField(fieldName);
                signersRef.setAccessible(true);
                Object o = signersRef.get(instance);
                if(o instanceof SoftReference) {
                    SoftReference r = (SoftReference) o;
                    Object o2 = r.get();
                    sm_hardRefs.add(o2);
                } else {
                    System.out.println("noooo!");
            } catch (NoSuchFieldException e) {
                e.printStackTrace();
                return;
            } catch (IllegalAccessException e) {
                e.printStackTrace();
         * Call the given no-arg method on the given instance
         * @param methodName
         * @param instance
        private static void callNoArgMethod(String methodName, Object instance) {
            System.out.println("calling noarg method hard ref to " + instance.getClass().getName() + "." + methodName + "()");
            try {
                Method m = instance.getClass().getDeclaredMethod(methodName);
                m.setAccessible(true);
                m.invoke(instance);
            } catch (SecurityException e1) {
                e1.printStackTrace();
            } catch (NoSuchMethodException e1) {
                e1.printStackTrace();
            } catch (IllegalArgumentException e) {
                e.printStackTrace();
            } catch (IllegalAccessException e) {
                e.printStackTrace();
            } catch (InvocationTargetException e) {
                e.printStackTrace();
         * is the preloader enabled. ie: will the preloader run in the current environment
         * @return
        public static boolean isHardLinkerEnabled() {
             boolean isHardLinkerDisabled = false;  //change this to use whatever mechanism you use to enable or disable the preloader
            return !isHardLinkerDisabled && isRunningOnJre1_6_0_19OrHigher() && isRunningOnWebstart();
         * is the application currently running on webstart
         * detect the presence of a JNLPclassloader
         * @return
        public static boolean isRunningOnWebstart() {
            ClassLoader cl = Thread.currentThread().getContextClassLoader();
            while(cl != null) {
                if(cl.getClass().getName().equals("com.sun.jnlp.JNLPClassLoader")) {
                    return true;
                cl = cl.getParent();
            return false;
         * Is the JRE 1.6.0_19 or higher?
         * @return
        public static boolean isRunningOnJre1_6_0_19OrHigher() {
            String javaVersion = System.getProperty("java.version");
            if(javaVersion.startsWith(JRE_1_6_0)) {
                //then lets figure out what update we are on
                String updateStr = javaVersion.substring(JRE_1_6_0.length());
                try {
                    return Integer.parseInt(updateStr) >= PROBLEM_JRE_UPDATE;
                } catch (NumberFormatException e) {
                    //then unable to determine updatedate level
                    return false;
            //all other cases
            return false;
          * get all the JarFile objects for all of the jars in the classpath
          * @return
         public static Set<JarFile> getAllJarsFilesInClassPath() {
              Set<JarFile> jars = new LinkedHashSet<JarFile> ();
             for (URL url : getAllJarUrls()) {
                 try {
                     jars.add(getJarFile(url));
                 } catch(IOException e) {
                      System.out.println("unable to retrieve jar at URL: " + url);
             return jars;
         * Returns set of URLS for the jars in the classpath.
         * URLS will have the protocol of jar eg: jar:http://HOST/PATH/JARNAME.jar!/META-INF/MANIFEST.MF
        static Set<URL> getAllJarUrls() {
            try {
                Set<URL> urls = new LinkedHashSet<URL>();
                Enumeration<URL> mfUrls = Thread.currentThread().getContextClassLoader().getResources("META-INF/MANIFEST.MF");
                while(mfUrls.hasMoreElements()) {
                    URL jarUrl = mfUrls.nextElement();
    //                System.out.println(jarUrl);
                    if(!jarUrl.getProtocol().equals("jar")) continue;
                    urls.add(jarUrl);
                return urls;
            } catch(IOException e) {
                throw new RuntimeException(e);
         * get the jarFile object for the given url
         * @param jarUrl
         * @return
         * @throws IOException
        public static JarFile getJarFile(URL jarUrl) throws IOException {
            URLConnection urlConnnection = jarUrl.openConnection();
            if(urlConnnection instanceof JarURLConnection) {
                // Using a JarURLConnection will load the JAR from the cache when using Webstart 1.6
                // In Webstart 1.5, the URL will point to the cached JAR on the local filesystem
                JarURLConnection jcon = (JarURLConnection) urlConnnection;
                return jcon.getJarFile();
            } else {
                throw new AssertionError("Expected JarURLConnection");
         * Spawn a new thread to run through each jar in the classpath and create a hardlink
         * to the jars softly referenced signers infomation.
        public static void go() {
            if(!isHardLinkerEnabled()) {
                return;
            System.out.println("Starting Resource Preloader Hardlinker");
            Thread t = new Thread(new Runnable() {
                public void run() {
                    try {
                        Set<JarFile> jars = getAllJarsFilesInClassPath();
                        for (JarFile jar : jars) {
                            makeHardSignersRef(jar);
                    } catch (Exception e) {
                        System.out.println("Problem preloading resources");
                        e.printStackTrace();
                    } catch (Error e) {
                         System.out.println("Error preloading resources");
                         e.printStackTrace();
            t.start();
    }

  • 10.6.8 Java not working. "No compatible version of Java 1.5  is available"

    Hey Guys
    Firstly I would like to thank you for clicking this question and would ask you please if you have a solution to my problem answer whatever you can.  Anyway lets get on with it.
    Recently I have been having a problem on my macbook.  I am running 10.6.8 as said in title.  Previously i was having an inactive plugin error going on and the software update said there were no newer versions available.  However when looking for a solution for this by clearing my java cache ect. i somehow ended up with this problem.  Whenever I try to run a java based application such as minecraft it says "Cannot launch "Minecraft" No compatible version of Java 1.5+ is avaiable." Also when from this menu i try to open Java Preferences it says "You can't use this version of the application Java Preferences with this version of Mac Os X.  You have Mac OS X 10.6.8. The application requires Mac OS X 10.7 or later." I did not download java 1.7 or a different version of Java Preferences outside of the software update.  If you have any idea of what's going on please help me out.  I am struggling to get on with work and games without java even working. 
    Thanks for your help
    Will

    Are you up to date with the updates?
    Update for Snow Leopard users:
    Apple issued update 12 for Java for OS 10.6:
    http://support.apple.com/kb/DL1573
    Note:  On systems that have not already installed Java for Mac OS X 10.6 update 9 or later, this update will configure web browsers to not automatically run Java applets. Java applets may be re-enabled by clicking the region labeled "Inactive plug-in" on a web page. If no applets have been run for an extended period of time, the Java web plug-in will deactivate.
    If, after installing Java for OS X 2013-002 and the latest version of Java 7 from Oracle, you want to disable Java 7 and re-enable the Apple-provided Java SE 6 web plug-in and Web Start functionality, follow these steps:
    http://support.apple.com/kb/HT5559?viewlocale=en_US
    Further update:
    Apple issued this Java related security update No. 13 on February 19:
    http://support.apple.com/kb/HT5666
    and Update No. 14 on March 4:  http://support.apple.com/kb/DL1573
    http://support.apple.com/kb/HT5677
    The standard recommendation is for users to turn off Java except when they have to use it on known and trusted websites (like their bank). Javascript, which is unrelated despite the name, can be left on.

  • How to create a java card library (jar file to be used in other programs)

    Hi all,
    I am working on JCOP and writing quite a bit of applets for the java card . Now i have lots of code that could be reusable for example sending SMS, encryption routine, etc.. So this part of the code i want to put into a utility class and create a package out of it. This utility package i must be able to import into my programs what i write.
    I tried the normal way of creating the jar by renaming the CAP file of the utility class, also tried including the /javacard/* files also into the jar file as indicated by sfarmer(active forum member here). But none seems to work. I tried contacting NXP folks and they indicated that it may be possible only by way of Sharable Objects.
    But some how i am not convinced why i should use Sharable object for this. So if any one can throw some light into this regard it will be immensely helpful to me and my project.
    Regards
    Prakash

    Hi,
    Well the variable defined are as below
    public static byte[] msgdata = new byte[255];
    private static final byte[] HEADER_TEMPLATE = {
              (byte) 0x81, (byte) 0x03, (byte) 0x01, (byte) 0x21, (byte) 0x00, // Command details tag
                   (byte) 0x82, (byte) 0x02, (byte) 0x81, (byte) 0x02, // Device Identities tag
                   (byte) 0x8D, // Text String tag
                   (byte) 0x00, // length
                   (byte) 0x04, // Text String tag
    the msgdata is declared public so that i can access this as a Class member in my other program doing Utilities.msgdata. But the problem is now that if i dont declare it as final then the compiler gives me the below error
    "library has initialized array for non-final, non-static field Utilities, msgdata, [B, attr jc-field: tok 0, public static"
    If i make it final then i cannot change it... So now i am stuck..
    Any help will be highly appreciated...
    Regards
    Prakash                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Images not getting Loaded while running Java Application through jar file

    Hello Friends,
    I have a problem while starting my application.I have written my application using pure java.There is no JSP or anything just pure swings.Mine is a standalone appplication.So i used to run it using a batch file.And when i used to start my application it used to not show me the images.so what i did was i mentioned the starting directory in the properties of the batch file (ie in the start in column field).But that was when i was using weblogic server.And i have lot of people working on the same application.so i used ZAC publisher in weblogic and along with that i used to publish the batch file also.so the users dint have any problem.But now what is my problem is i m trying to use JAVA Webstart instead of weblogic ZAC.Now in webstart what happens is that i have to run the appliaction thru jar file.so where do i mention the class path so that the images get loaded.As of now the imaes are not getting loaded.i feel this is a class path problem.but where do i mention it that is my problem.It would be really helpfule if someone could help me out.
    thanx and regards,
    [email protected]

    try out this
    ImageIcon img1=new ImageIcon(this.getClass().getResource(imagename));
    for exmaple
    Imageicon img1=new ImageIcon(this.getClass().getResource("name1.jpg"));
    dont 4get to include the image files in the jar file

Maybe you are looking for

  • Creating Tabular Models using AMO

    Hi,    I am trying to setup Tabular Models on SSAS using AMO referring to the materials available at Technet and the Codeplex AMO Tabular Tutorial. I have a few questions/issues currently and was hoping I could get some help from here. The tool I am

  • Request for Interpretation of insufficient bandwidth error

    To iChat Discussions: I have looked at many of the messages posted concerning the "insufficient bandwidth" error that I am receiving from iChat. I have implemented all suggestions and I am still having trouble. I am using a capable Quad G5 with an iS

  • Custom view metadata hidden from standard check in

    I created some views for custom profiles, my problem is that my custom metadata is being displayed on standard check-in also, is there any ways to have this custom metadata displayed only on my custom profile and not in standard check in as well? if

  • User Right

    Hi friends, i want to apply authorization in my application. here i want to difine all pages in a table and difine User right to the pages like if i have two option, one is ACCOUNT and Second is Oppourtunity, here i user A Can't create or Insert New

  • Business plan

    hi, I am looking for contact details for Skype business sales team. We want to use Skype on our Internet kiosk machines and we are looking for a truly unlimited plan or reduced rates. Thanks