Problem loading  jar in dinamic way

Hi, I need to realize a signed Applet and I need to load a signed jar only if the client machine use java 5 (and not java 6). The jar I need to load is signed and contains jaxb libraries (JAVA 6 includes JAXB libraries and I don't want to download/load libraries yet included).
My first solution consists in the use of a first applet to know the java version of the client machine and after I have my second applet tag with or without the specification in the archive tag of my jar with jaxb libraries (depending on the java version retrieved by first applet).
But now I'm trying to unify this solution in a single applet: in this single applet I retrieve the java version of the client machine and if it's java 5 I force classloader to load jaxb jar (I do this adding the URL of my jar to SystemClassLoader)
This first operation works well and if I call an operation like JAXBContext.class.getCanonicalName()
I obtain the name correctly.
My problem is when I call JAXBContext.newInstance("....") --> it returns this exception:
java.security.AccessControlException: access denied (java.util.PropertyPermission javax.xml.bind.JAXBContext read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at javax.xml.bind.GetPropertyAction.run(GetPropertyAction.java:17)
at javax.xml.bind.GetPropertyAction.run(GetPropertyAction.java:9)
at java.security.AccessController.doPrivileged(Native Method)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:268)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
at ClassLoaderApplet.start(ClassLoaderApplet.java:50)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I think that my problem is that forcing the SystemClassLoader to load a jar I'm not able to give jaxb libraries the same privileges of my signed applet and jaxb libraries call some function forbidden in the applet sandbox.... (like System.getProperty() for a property not allowed for a non signed applet)
How can I resolve my problem? Can I give permission to my jar? (I can't modify the security policy in the client)
Any other way to obtain the loading of a signed jar only with a specific java version?
my first solution need two applet and I want to use only one applet...
Any help or suggestion is welcome!!!

aaa-forum wrote:
Ok, sorry for my "!", I want to indicate exlamation!Cool.
..Can you post any code-example or helpfull link?Oooh (grimaces) not sure I can. I am no expert on security. (a)
OTOH, I have played with a few simplistic examples. E.G. NoExit uses a custom SecurityManager.
As far as adapting that for a particular set of packages, you might try detecting them using something along the lines of:
1) Create a Throwable in the checkPermission method and call fillInStackTrace() to find the series of code lines visited before arriving at the method.
2) If the elements in the getStackTrace() array indicate the JAXB API, pass it, otherwise reject it.
a) But seriously, I would seek further advice from those more experienced with security, before attempting things related to security. Perhaps you are better off asking on one of the Security related forums (which I do not read, let alone post to!).

Similar Messages

  • Problem loading jar into Applet

    Good day folks.
    The scenario I try to implement is the following: I want to start an applet A (a small one) which then loads another jar B (a big one) and starts it.
    The code of applet A looks like this:
    File file = new File("C:\\B.jar");
    JarFile jar = new JarFile(file);
    String mainclass = jar.getManifest().getMainAttributes().getValue("Main-Class");
    URL urlList[] = {file.toURL()};
    URLClassLoader loader = new URLClassLoader(urlList,  Thread.currentThread().getContextClassLoader());
    Class c = Class.forName(mainclass, true, loader);
    MySecondApplet b = ((MySecondApplet ) c.newInstance());Now this works quite well, as long as B doesnt do any potential unsecure stuff like accessing System.Properties. If B tries that I get an java.security.AccessControlException: access denied!
    This behaviour is normal if B isn't signed, but both jars A and B are signed with the same signature, so somehow the signature of B isnt looked at by the JavaVM.
    Anyone knows why the signature of B is disregarded?
    Thanks in advance
    MVeeck

    First of all, I really don't understand how you manage to create a new Instance of a class
    from A that is not in the classpath of A.
    My example above I had test and t.
    When I try this
    ((t) c.newInstance()).init();
    In test without having t.jar in the html I get the following exception:
    ava.lang.NoClassDefFoundError: t
    This is because test doesn't know about t because it is not in test's classpath (archive
    tag in html file).
    Now I can cast t to Applet and get the following exception (same as yours)
    AccessControlException: access denied (java.util.PropertyPermission user.name read)
    Now I sign t.class differently that test.class and put t.jar back in the html (archive tag).
    The jre will ask me twice if I trust the applet because t.jar is signed diffently than test.
    That doesn't work hower because I get the following exception:
    class "t"'s signer information does not match signer information of other classes in the same package
    so I put t in another package and we are back to accessControlException, the jre
    never asks the user if he or she trusts t.t class when the t.jar is loaded.
    In my opinion this is a bug or if we are missing something here it's poorly
    documentend by the jave doc since I found no method at all where I either tell the
    JarFile instance or URLClassLoader to ask the user the "do you trust" question.
    Here are the files again (changed some code there)
    c:\temp\page.htm
    <DIV id="lblOutputText">Output comes here</DIV>
    <DIV id="dvObjectHolder">Applet comes here</DIV>
    <script>
    if(window.navigator.appName.toLowerCase().indexOf("netscape")!=-1){ // set object for Netscape:
         document.getElementById('dvObjectHolder').innerHTML = "        <object ID='appletTest1' classid=\"java:test\"" +
                    "height='0' width='0' onError=\"changeObject();\"" +
              ">" +
                    "<param name=\"archive\" value=\"sTest.jar \">" +
                    "<param name=\"mayscript\" value=\"Y\">" +
            "</object>";
    }else if(window.navigator.appName.toLowerCase().indexOf('internet explorer')!=-1){ //set object for IE
         document.getElementById('dvObjectHolder').innerHTML =      "<object ID='appletTest1' classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\"" +
                   "         height='0' width='0' >" +
                   "   <param name=\"code\" value=\"test\" />" +
                      "<param name=\"archive\" value=\"sTest.jar\">" +
                   " </object>"
    </script>c:\temp\t\t.java
    package t;
    import java.security.*;
    import java.io.*;
    public class t extends java.applet.Applet {
        public void init() {
             try{
                   String user = (String) AccessController.doPrivileged(
                     new PrivilegedAction() {
                        public Object run() {
                             String u = "";
                             try{
                                  u = System.getProperty("user.name");
                                  File f = new File("C:\\temp\\atest.txt");
                                  FileOutputStream fo = new FileOutputStream(f);
                                  fo.write("this seems to work\n".getBytes());
                                  fo.write("full control here\n".getBytes());
                                  fo.write(new String("can allso get the user name:" + System.getProperty("user.name")).getBytes());
                                  fo.close();
                             }catch(Exception e){
                                  e.printStackTrace();
                             return u;
                   System.out.println(user);
            }catch(Exception e){
                 e.printStackTrace();
    }c:\temp\test.java
    import java.net.*;
    import java.util.jar.*;
    import java.io.*;
    public class test extends java.applet.Applet {
        public void init() {
             try{
                   File file = new File("C:\\temp\\t.jar");
                   JarFile jar = new JarFile(file,true);
                   URL urlList[] = {file.toURL()};
                   URLClassLoader loader = new URLClassLoader(urlList, Thread.currentThread().getContextClassLoader());
                   Class c = Class.forName("t.t", true, loader);
                   System.out.println(c==null);
                   ((java.applet.Applet) c.newInstance()).init();
            }catch(Exception e){
                 e.printStackTrace();
    }c:\temp\make.bat
    del *.cer
    del *.com
    del *.jar
    del *.class
    javac t\t.java
    javac test.java
    keytool -genkey -keystore harm.com -keyalg rsa -dname "CN=Harm Meijer, OU=Technology, O=org, L=Amsterdam, ST=, C=NL" -alias harm -validity 3600 -keypass password -storepass password
    keytool -genkey -keystore har.com -keyalg rsa -dname "CN=Har Meijer, OU=Technology, O=org, L=Amsterdam, ST=, C=NL" -alias har -validity 3600 -keypass password -storepass password
    jar cf0 test.jar test.class
    jar cf0 tt.jar t\t.class t\t$1.class
    jarsigner -keystore harm.com -storepass password -keypass password -signedjar sTest.jar test.jar harm
    jarsigner -keystore har.com -storepass password -keypass password -signedjar t.jar tt.jar har
    del *.class
    del test.jar
    del tt.jar
    pause

  • I try to go to certain websites that I've had no problem going to before, and suddenly, it says, "Page cannot complete because the server is loading in such a way that it will never complete." I've tried erasing my cookies, and it still persists. Help!

    I tried going to a site that I've never had problems loading before, and suddenly it says, "Page cannot load because the server is loading in such a way that it will never complete." or something along those lines. I've tried clearing my cookies, but the problem persists. Help!

    If clearing the cookies doesn't help then it is possible that the file <i>cookies.sqlite</i> that stores the cookies is corrupted.
    Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete <b>cookies.sqlite-journal</b> and <b>cookies.txt</b>, if they exist, in the Firefox Profile Folder in case the file cookies.sqlite got corrupted.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder

  • Problem Loading some symlinked jars

    Hi,
    We have a very strange problem with loading jars (which are symlinks).
    We are loading about 20 jars inside a certain directory and all are ok, except 1 sometimes (x.jar)
    Lets say the files are inside /opt/shared/lib and ls /opt/shared/lib shows:
    a.jar -> /opt/a/a.jar
    b.jar -> /opt/b/b.jar
    c.jar -> /opt/c/c.jar
    d.jar -> /opt/d/d.jar
    x.jar -> /opt/x/x.jar
    For some reason loading x always gives the exception:
    Caused by: java.security.AccessControlException: access denied (java.io.FilePermission /opt/x/x.jar read)
    When we look at /opt/x/x.jar, the permissions are fine. Now comes the strange part.
    After some tries we ended up with (d.jar was obsolete):
    a.jar -> /opt/a/a.jar
    b.jar -> /opt/b/b.jar
    c.jar -> /opt/c/c.jar
    x.jar -> /opt/x/x.jar
    and everything works as expected.
    Then we:
    1. remove the symlink x.jar
    2. add a new (dummy) file to this directory
    3. make the symlink again
    4. remove the dummy file
    Now the problem occurs again and we get the above io.FilePermission exception.
    Now if we:
    1. remove the symlink
    2. make the symlink again
    The exception is gone, it seems as if the symlinks takes the physical place of the dummy file on the filesystem.
    Redoing the above sequences gives again the FilePermission exception and finally OK again.

    bami wrote:
    I'm not sure what you mean with cat ïng to /dev/null.I meant to try this in the shell, when you have the problem:
    cat /opt/shared/lib/x.jar > /dev/nulland see if it succeeds (i.e. prints nothing).
    If that works, then there's a Java problem, if it doesn't work, then Java is not the problematic element in the equation.
    The OS is Solaris (sparc) with kernel Generic_137111-08. The Filesystem is UFS.Unfortunatley I have no experience with Solaris whatsoever, so I can't comment on that.

  • How to dynamically load jar files - limiting scope to that thread

    Dynamically loading jar files has been discussed a lot. I have read a quite a few posts, articles, and demo code for doing just that. However, I have yet to find a solution to my problem. Most people modify their system class loader and are happy. I have done that and was happy for a time. Occasionally, you will see reference to an application server or tomcat or some other large project that have successfully been able to load and unload jar files, allow for dynamic deployment of code, etc. However, I have not been able to achieve similar success; And my problem is much less complicated.
    I have an application that executes a thread to send a given file/message to a standard JMS Server Queue. Depending on the parameters selected by the user, this thread may need to communicate with one of a number of JMS Servers, ie. JBoss, WebLogic, EAServer, Glassfish, etc. All of which can be done with the same code, but each needs to load their own flavor of JMS Client Jar files. In this instance, spawning a separate JVM for each communication would work from a classloader perspective. However, I need to keep it in the family and run under the same JVM, albeit each JMS Server Connection will be created and maintained in separate Threads.
    I am close, I am doing the following...
    1. Creating a new URLClassLoader in the run() method of each thread.
    2. Set this threads contextClassLoader to the new URLClassLoader.
    3. Load the javax.jms.JMSException class with the URLClassLoader.loadClass() method.
    4. Create an initialContext object within this thread.
    Note: I read that the initialContext and subsequent conext lookup calls would use the Thread�s
    contextClassLoader for finding/loading classes.
    5. Perform context.lookup calls for a connectionFactory and Queue name.
    6. Create JMS Connection, etc. Send Message.
    Most of this seems to work. However, I am still getting a NoClassDefFoundError exception for the javax.jms.JMSException class ( Note step #3 - tried to cure unsuccessfully).
    If I include one of the JMS Client jar files ( ie wljmsclient.jar for weblogic ) in the classpath then it works for all the different JMS Servers, but I do not have confidence that each of the providers implemented these classes that now resolve the same way. It may work for now, but, I believe I am just lucky.
    Can anyone shine some light on this for me and all the others who have wanted to dynamically load classes/jar files on a per Thread basis?

    Thanks to everyone - I got it working!
    First, BenSchulz' s dumpClassLoader() method helped me to visualize the classLoader hierarchy. I am still not completely sure I understand why my initial class was always found by the systemClassLoader, but knowning that - was the step I needed to find the solution.
    Second, kdgregory suggested that I use a "glue class". I thought that I already was using a "glue class" because I did not have any JMSClient specific classes exposed to the rest of the application. They were all handled by my QueueAdmin class. However...
    The real problem turned out to be that my two isolating classes (the parent "MessageSender", and the child "QueueAdmin") were contained within the same jar file that was included in the classpath. This meant that no matter what I did the classes were loaded by the systemClassLoader. Isolating them in classes was just the first step. I had to remove them from my jar file and create another jar file just for those JMSClient specific classes. Then this jar file was only included int custom classLoader that I created when I wanted to instantiate a JMSClient session.
    I had to create an interface in the primary jar file that could be loaded by the systemClassLoader to provide the stubs for the individual methods that I needed to call in the MessageSender/QueueAdmin Classes. These JMSClient specific classes had to implement the interface so as to provide a relationship between the systemClassLoader classes and the custom classLoader classes.
    Finally, when I loaded and instantiated the JMSClient specific classes with the custom classLoader I had to cast them to the interface class in order to make the method calls necessary to send the messages to the individual JMS Servers.
    psuedu code/concept ....
    Primary Jar File   -  Included in ClassPath                                                      
    Class<?> cls = ClassLoader.loadClass( "JMSClient.MessageSender" )
    JMSClientInterface jmsClient = (JMSClientInterface) cls.newInstance()                            
    jmsClient.sendMessage()                                                                      
    JMSClient Jar File  -  Loaded by Custom ClassLoader Only
    MessageSender impliments Primary.JMSClientInterface{
        sendMessage() {
            Class<?> cls=ClassLoader.loadClass( "JMSClient.QueueAdmin" )
            QueueAdmin queueAdmin=(QueueAdmin) cls.newInstance()
            queueAdmin.JMSClientSpecificMethod()
        }

  • Problem Loading JDBC Enabled JSP Page

    Hi all, does anyone knows that's the case of this error:
    This happened when I tried to access MySQL Database from remote client. I have no problem loading normal jsp file w/o JDBC Connection. Kind of confused on what is going on
    Regards,
    Joe
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: com.mysql.jdbc.Driver
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    root cause
    javax.servlet.ServletException: com.mysql.jdbc.Driver
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
         at org.apache.jsp.dbquery_jsp._jspService(dbquery_jsp.java:112)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    Apache Tomcat/4.1.24

    Hi scsi-boy, first of all, thank you so much for your
    prompt and fast response. So how do i tackle
    ClassNotFoundException ?.i'm sorry coz i'm a newbie to
    jsp. I hope by providing my configuration below could
    aid you in understanding my problem.
    I've place the setting config in /etc/profile with the
    following:
    JAVA_HOME=/usr/local/java
    CATALINA_HOME=/usr/local/tomcat
    ANT_HOME=/usr/local/ant
    APACHE_HOME=/usr/local/apache
    MYSQL_HOME=/usr/local/mysql
    CLASSPATH=${CATALINA_HOME}/common/lib/servlet-api.jar:$
    YSQL_HOME/connector/mysql_connector/mysql_connector-jav
    -3.08-stable-bin.jar:${JAVA_HOME}/lib/tools.jar:${JAVA_
    OME}/jre/lib/rt.jar:./
    PATH=${PATH}:${JAVA_HOME}/bin:${ANT_HOME}/bin:
    MANPATH=${JAVA_HOME}/man:${MANPATH}
    export JAVA_HOME ANT_HOME APACHE_HOME MYSQL_HOME
    CATALINA_HOME CLASSPATH PATH MANPATH
    As you can see, i've un-tar mysql_connector in
    /usr/local/mysql/connector directory and set my
    classpath to point to that file. Is that the proper
    way to do it?
    Regards,
    Joesorry not a JSP expert however just to clarify i am guessing that it is a ClassNotFoundException. it could be something else entirely and i don't really want to send you on a wild goose chase. we need to know what the root exception actually is.
    i am off to sleep now but i'm sure if you can give a little more information which may involve figuring out how to get it to cough up more information someone will help you here.

  • Problem loading image for TrayIcon

    This code works great if I'm in Netbeans running my project. No problems.
                //grabbing image for TrayIcon
                String curDir = System.getProperty("user.dir");
                Image image = Toolkit.getDefaultToolkit().getImage
                        (curDir + "\\src\\edunasdesktop\\earth_alert.png");The problem is when I run my jar file from the dist folder in my project folder. The TrayIcon loads just fine,
    just with no picture. Do I need to point to a different location or do I need to put the picture elsewhere; or both?
    Some pictures I used with the Netbeans GUI Builder on some JLabels are in the same src directory but I used the
    Builder to add those pics so I guess I'm a bit unsure on how to do this by hand, as the Builder handled this type situation
    in previous occassions.

    The [section on icons|http://java.sun.com/docs/books/tutorial/uiswing/components/icon.html#getResource] in the Swing tutorial has information about loading images. The general idea is you use
    URL toImage = SomeClass.class.getResource(...);Incendently, if done right then it will work in Netbeans or in a jar. The way you currently have it set the image would have to be in +/src/edunasdesktop/+ within the jar file for the Toolkit to find it.

  • Loading jar files at execution time via URLClassLoader

    Hello�All,
    I'm�making�a�Java�SQL�Client.�I�have�practicaly�all�basic�work�done,�now�I'm�trying�to�improve�it.
    One�thing�I�want�it�to�do�is�to�allow�the�user�to�specify�new�drivers�and�to�use�them�to�make�new�connections.�To�do�this�I�have�this�class:�
    public�class�DriverFinder�extends�URLClassLoader{
    ����private�JarFile�jarFile�=�null;
    ����
    ����private�Vector�drivers�=�new�Vector();
    ����
    ����public�DriverFinder(String�jarName)�throws�Exception{
    ��������super(new�URL[]{�new�URL("jar",�"",�"file:"�+�new�File(jarName).getAbsolutePath()�+"!/")�},�ClassLoader.getSystemClassLoader());
    ��������jarFile�=�new�JarFile(new�File(jarName));
    ��������
    ��������/*
    ��������System.out.println("-->"�+�System.getProperty("java.class.path"));
    ��������System.setProperty("java.class.path",�System.getProperty("java.class.path")+File.pathSeparator+jarName);
    ��������System.out.println("-->"�+�System.getProperty("java.class.path"));
    ��������*/
    ��������
    ��������Enumeration�enumeration�=�jarFile.entries();
    ��������while(enumeration.hasMoreElements()){
    ������������String�className�=�((ZipEntry)enumeration.nextElement()).getName();
    ������������if(className.endsWith(".class")){
    ����������������className�=�className.substring(0,�className.length()-6);
    ����������������if(className.indexOf("Driver")!=-1)System.out.println(className);
    ����������������
    ����������������try{
    ��������������������Class�classe�=�loadClass(className,�true);
    ��������������������Class[]�interfaces�=�classe.getInterfaces();
    ��������������������for(int�i=0;�i<interfaces.length;�i++){
    ������������������������if(interfaces.getName().equals("java.sql.Driver")){
    ����������������������������drivers.add(classe);
    ������������������������}
    ��������������������}
    ��������������������Class�superclasse�=�classe.getSuperclass();
    ��������������������interfaces�=�superclasse.getInterfaces();
    ��������������������for(int�i=0;�i<interfaces.length;�i++){
    ������������������������if(interfaces[i].getName().equals("java.sql.Driver")){
    ����������������������������drivers.add(classe);
    ������������������������}
    ��������������������}
    ����������������}catch(NoClassDefFoundError�e){
    ����������������}catch(Exception�e){}
    ������������}
    ��������}
    ����}
    ����
    ����public�Enumeration�getDrivers(){
    ��������return�drivers.elements();
    ����}
    ����
    ����public�String�getJarFileName(){
    ��������return�jarFile.getName();
    ����}
    ����
    ����public�static�void�main(String[]�args)�throws�Exception{
    ��������DriverFinder�df�=�new�DriverFinder("D:/Classes/db2java.zip");
    ��������System.out.println("jar:�"�+�df.getJarFileName());
    ��������Enumeration�enumeration�=�df.getDrivers();
    ��������while(enumeration.hasMoreElements()){
    ������������Class�classe�=�(Class)enumeration.nextElement();
    ������������System.out.println(classe.getName());
    ��������}
    ����}
    It�loads�a�jar�and�searches�it�looking�for�drivers�(classes�implementing�directly�or�indirectly�interface�java.sql.Driver)�At�the�end�of�the�execution�I�have�found�all�drivers�in�the�jar�file.
    The�main�application�loads�jar�files�from�an�XML�file�and�instantiates�one�DriverFinder�for�each�jar�file.�The�problem�is�at�execution�time,�it�finds�the�drivers�and�i�think�loads�it�by�issuing�this�statement�(Class�classe�=�loadClass(className,�true);),�but�what�i�think�is�not�what�is�happening...�the�execution�of�my�code�throws�this�exception
    java.lang.ClassNotFoundException:�com.ibm.as400.access.AS400JDBCDriver
    ��������at�java.net.URLClassLoader$1.run(URLClassLoader.java:198)
    ��������at�java.security.AccessController.doPrivileged(Native�Method)
    ��������at�java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    ��������at�java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    ��������at�sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    ��������at�java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    ��������at�java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    ��������at�java.lang.Class.forName0(Native�Method)
    ��������at�java.lang.Class.forName(Class.java:140)
    ��������at�com.marmots.database.DB.<init>(DB.java:44)
    ��������at�com.marmots.dbreplicator.DBReplicatorConfigHelper.carregaConfiguracio(DBReplicatorConfigHelper.java:296)
    ��������at�com.marmots.dbreplicator.DBReplicatorConfigHelper.<init>(DBReplicatorConfigHelper.java:74)
    ��������at�com.marmots.dbreplicator.DBReplicatorAdmin.<init>(DBReplicatorAdmin.java:115)
    ��������at�com.marmots.dbreplicator.DBReplicatorAdmin.main(DBReplicatorAdmin.java:93)
    Driver�file�is�not�in�the�classpath�!!!�
    I�have�tried�also�(as�you�can�see�in�comented�lines)�to�update�System�property�java.class.path�by�adding�the�path�to�the�jar�but�neither...
    I'm�sure�I'm�making�a/some�mistake/s...�can�you�help�me?
    Thanks�in�advice,
    (if�there�is�some�incorrect�word�or�expression�excuse�me)

    Sorry i have tried to format the code, but it has changed   to �... sorry read this one...
    Hello All,
    I'm making a Java SQL Client. I have practicaly all basic work done, now I'm trying to improve it.
    One thing I want it to do is to allow the user to specify new drivers and to use them to make new connections. To do this I have this class:
    public class DriverFinder extends URLClassLoader{
    private JarFile jarFile = null;
    private Vector drivers = new Vector();
    public DriverFinder(String jarName) throws Exception{
    super(new URL[]{ new URL("jar", "", "file:" + new File(jarName).getAbsolutePath() +"!/") }, ClassLoader.getSystemClassLoader());
    jarFile = new JarFile(new File(jarName));
    System.out.println("-->" + System.getProperty("java.class.path"));
    System.setProperty("java.class.path", System.getProperty("java.class.path")+File.pathSeparator+jarName);
    System.out.println("-->" + System.getProperty("java.class.path"));
    Enumeration enumeration = jarFile.entries();
    while(enumeration.hasMoreElements()){
    String className = ((ZipEntry)enumeration.nextElement()).getName();
    if(className.endsWith(".class")){
    className = className.substring(0, className.length()-6);
    if(className.indexOf("Driver")!=-1)System.out.println(className);
    try{
    Class classe = loadClass(className, true);
    Class[] interfaces = classe.getInterfaces();
    for(int i=0; i<interfaces.length; i++){
    if(interfaces.getName().equals("java.sql.Driver")){
    drivers.add(classe);
    Class superclasse = classe.getSuperclass();
    interfaces = superclasse.getInterfaces();
    for(int i=0; i<interfaces.length; i++){
    if(interfaces[i].getName().equals("java.sql.Driver")){
    drivers.add(classe);
    }catch(NoClassDefFoundError e){
    }catch(Exception e){}
    public Enumeration getDrivers(){
    return drivers.elements();
    public String getJarFileName(){
    return jarFile.getName();
    public static void main(String[] args) throws Exception{
    DriverFinder df = new DriverFinder("D:/Classes/db2java.zip");
    System.out.println("jar: " + df.getJarFileName());
    Enumeration enumeration = df.getDrivers();
    while(enumeration.hasMoreElements()){
    Class classe = (Class)enumeration.nextElement();
    System.out.println(classe.getName());
    It loads a jar and searches it looking for drivers (classes implementing directly or indirectly interface java.sql.Driver) At the end of the execution I have found all drivers in the jar file.
    The main application loads jar files from an XML file and instantiates one DriverFinder for each jar file. The problem is at execution time, it finds the drivers and i think loads it by issuing this statement (Class classe = loadClass(className, true);), but what i think is not what is happening... the execution of my code throws this exception
    java.lang.ClassNotFoundException: com.ibm.as400.access.AS400JDBCDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:140)
    at com.marmots.database.DB.<init>(DB.java:44)
    at com.marmots.dbreplicator.DBReplicatorConfigHelper.carregaConfiguracio(DBReplicatorConfigHelper.java:296)
    at com.marmots.dbreplicator.DBReplicatorConfigHelper.<init>(DBReplicatorConfigHelper.java:74)
    at com.marmots.dbreplicator.DBReplicatorAdmin.<init>(DBReplicatorAdmin.java:115)
    at com.marmots.dbreplicator.DBReplicatorAdmin.main(DBReplicatorAdmin.java:93)
    Driver file is not in the classpath !!!
    I have tried also (as you can see in comented lines) to update System property java.class.path by adding the path to the jar but neither...
    I'm sure I'm making a/some mistake/s... can you help me?
    Thanks in advice,
    (if there is some incorrect word or expression excuse me)

  • Problems load XSU

    Whe tryign to load the XSU package into the DBMS I get the following error:
    <---------------------->
    C:\Oracle\OracleXSU12\lib>echo "Loading jar files..."
    "Loading jar files..."
    C:\Oracle\OracleXSU12\lib>echo "Loading xmlparser..."
    "Loading xmlparser..."
    C:\Oracle\OracleXSU12\lib>call loadjava -r -v -u "SSDR/IPT@ipt" xmlparserv2.jar
    initialization complete
    loading : oracle/xml/parser/v2/XSLResultElement
    creating : oracle/xml/parser/v2/XSLResultElement
    Error while creating class oracle/xml/parser/v2/XSLResultElement
    ORA-29516: Aurora assertion failure: Assertion failure at eox.c:187
    Uncaught exception Root of all Java exceptions:
    loading : oracle/xml/parser/v2/XSLCopy
    creating : oracle/xml/parser/v2/XSLCopy
    Error while creating class oracle/xml/parser/v2/XSLCopy
    ORA-29516: Aurora assertion failure: Assertion failure at eox.c:187
    Uncaught exception Root of all Java exceptions:
    loading : oracle/xml/parser/v2/XMLByteReader
    creating : oracle/xml/parser/v2/XMLByteReader
    <----------------->
    the initjvm.sql is performed wo errors
    null

    hi
    i am also doing the same..but the same worked for me....which version of xsu ur trying to install??
    i am working with xsu111
    my problem is something else...when i am trying to execute the SQL statement..i am getting a JVM error and Java is terminating the program
    any idea what might be the reason??
    aniket
    null

  • How to load jar file in oracle 9i???

    Hi Friends,
    Can you help me, how to load jar file oracle 9i? I have to tried to load in 10g using loadjava command but it's not working in oracle 9i because the loadjava batch file itself is not there in oralce 9i.
    Is there any other way then pls let me know.
    - Hiren Modi

    Hi,
    I have oracle version : Release 2 (9.2.0.1.0) for Windows. I have tried to execute the loadjava command from SQL prompt but its giving as below.
    H:\>loadjava
    The system cannot find the path specified.
    Do you know why its giving error like this. I have checked in dir : C:\oracle\ora92\bin but loadjava executable file is not there in it.
    - Hiren Modi

  • Problems loading user business areas

    Hi,
    I connect ok with a user/password to the desktop edition, but the list box with the business areas are empty. I already grant access rights to three business areas in the administration edition.
    But the same operation in another PC works fine. Connects well and later shows the three business areas.
    It's a local problem inside this right PC. From this PC, the connection with the administrator user shows me all the BAs.
    May be a bug? What's happen?
    Thanks.

    trananhdung wrote:
    Yes, I have a problem loading BlackBerry User Tools CD on Vista Operating System!
    Hi and Welcome to the Forums!
    Well, "a problem"...perhaps you could be a little less vague so that we don't have to guess? Perhaps you could scroll up through this thread, read all the posts, try the solutions already provided, and let us know exactly what is going on. That way, we can avoid guessing.
    Thanks!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Problem loading applet from tomcat

    I am facing a problem loading the batik applet from tomcat. I have placed all the jar files of batik in ROOT directory in tomcat. Along with the folder containing the batik applet. Still i receive the following exception when trying to load the html page containing batik applet.
    Applet tag in html page is:
    <applet codebase = "." code="batik_applet.BatikApplet.class" name="myApplet" width="1600" height="1200" hspace="0" vspace="0" align="middle" archive="batik-swing.jar,batik-gvt.jar,batik-bridge.jar,xml-apis-ext.jar,batik-css.jar,batik-util.jar,batik-dom.jar,batik-svg-dom.jar,batik-anim.jar,batik-awt-util.jar,batik-codec.jar,batik-ext.jar,batik-extension.jar,batik-gui-util.jar,batik-parser.jar,batik-script.jar,batik-svggen.jar,batik-transcoder.jar,batik-xml.jar,js.jar,pdf-transcoder.jar,xalan-2.6.0.jar,xerces_2_5_0.jar,xml-apis.jar">
    </applet>
    I already have a folder named batik_applet containing BatikApplet.class in the ROOT directory.
    ========Exception===========
    network: Connecting http://localhost:8080/servlet/batik_applet/BatikApplet.class with proxy=DIRECT
    network: Connecting http://localhost:8080/servlet/batik_applet/BatikApplet.class with cookie "JSESSIONID=1A75299B77372108560B4DF8DC65A3A6"
    network: Connecting http://localhost:8080/servlet/batik_applet/BatikApplet/class.class with proxy=DIRECT
    network: Connecting http://localhost:8080/servlet/batik_applet/BatikApplet/class.class with cookie "JSESSIONID=1A75299B77372108560B4DF8DC65A3A6"
    load: class batik_applet.BatikApplet.class not found.
    java.lang.ClassNotFoundException: batik_applet.BatikApplet.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    basic: Exception: java.lang.ClassNotFoundException: batik_applet.BatikApplet.class
    Any help would be appreciated.

    Assuming that your applet is not in a jar file (don't see a value for archive)
    you have a file callsed ProcessStatus.class in a folder WEB-INF\classes relative to
    the location of the jsp file.
    So if the jsp file is in
    myJSPFileFolder
    the class should be in:
    myJSPFileFolder\WEB-INF\classes
    If you want to see when the jre is trying to load and where it it trying to load it from you
    can inspect a full trace, to turn the full trace on (windows) you can start the java console, to be found here:
    C:\Program Files\Java\j2re1.4...\bin\jpicpl32.exe
    In the advanced tab you can fill in something for runtime parameters fill in this:
    -Djavaplugin.trace=true -Djavaplugin.trace.option=basic|net|security|ext|liveconnect
    if you cannot start the java console check here:
    C:\Documents and Settings\userName\Application Data\Sun\Java\Deployment\deployment.properties
    I think for linux this is somewhere in youruserdir/java (hidden directory)
    add or change the following line:
    javaplugin.jre.params=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
    for 1.5:
    deployment.javapi.jre.1.5.0.args=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
    The trace is here:
    C:\Documents and Settings\your user\Application Data\Sun\Java\Deployment\log\plugin...log
    I think for linux this is somewhere in youruserdir/java (hidden directory)
    The trace should show something like :
    Caused by: java.io.FileNotFoundException: http://server/location/filename.class (The system cannot find the path specified)

  • Problems Loading Programs

    Hi, I'm having some problems loading programs, specifically the game Neverwinter Nights 2.
    It has been working fine for a month or so. Now when I click to load, the icon jumps a few times then nothing.
    - I have reinstalled the game, but with no success.
    - I have tried to repair the disk permissions in Safe Boot mode.
    - I have unsuccessfully searched for Plist files connected to the game (found none).
    - I have tried to load the game via a New Login account, with no success.
    Im Reluctant to do an 'Archive and Install', as I have no idea where have my app disks are.
    Has anyone an other idea's? Loosing the ability to play the game is annoying but I'm more worried that this may happen to other more important applications in the future!
    Any help or suggestions would be appreciated!
    Thank You!
    Specs are.
    10.4.11
    2.16 Intel Core Duo
    2gb 667
    ATI Radeon X1600

    Don't even think about deleting Quicktime, it's an integrated part of the OS.
    If that (or any other) game is that important to you, and you are prepared to lose the security fixes in QT 7.6, then it is possible to revert to an earlier version of Quicktime:
    If you wish to downgrade Quicktime to 7.5.5, (even though you will lose the important security fixes contained in the 7.6 update, and you will also find that parts of iTunes 7.6, iMovie and iChat may not now work without QT 7.6) there are two methods for doing this (note that attempting to manually delete Quicktime from your hard disk is doomed to failure. QT has components all over the place as it is used by many applications):
    (Note: I am running 10.4.11. Some things may be different in Leopard, but the principle should be the same.)
    First: Go to HD/Library/Receipts and drag the file QuickTime750_Tiger.pkg to the trash, and delete it.
    1. Perform an Archive and Install process to remove all of the QuickTime update's (and potentially problem-causing) components, and replace them with the components of the older release. Unfortunately, this means you will lose some system settings and some or all third-party system add-ons. This method is therefore longwinded and inconvenient, but will ultimately work. Because QT is an integral part of OS X using an archive and install to also downgrade to a previous version of OS X so that the various versions can work in the intended tandem, is the safest way to do it. But there is also another way:
    2. Install Quicktime 7.5. in such a way that it overwrites the QT 7.6 files without interfering with your other system settings and third-party add-ons. This can be done using a shareware (you can use it a few times for free, but worth paying for and having) application called Pacifist. This method works perfectly:
    (Note that there separate QT 7.7.5 installer packages for Leopard and Tiger , and you can get them here:
    For Panther: http://www.apple.com/support/downloads/quicktime74forpanther.html
    For Tiger: http://support.apple.com/downloads/QuickTime7_5_5_forTiger
    For Leopard: http://support.apple.com/downloads/QuickTime7_5_5_forLeopard
    Make sure you download the correct version for your system!
    If you don't have it already, download Pacifist from:
    http://www.charlessoft.com/
    and install it.
    Open Pacifist, and drag the icon of the QT installer to the Pacifist window. This will have the 'open carton' icon. Click on this, then click Install from the top left-hand corner of the Pacifist menu. You will be asked if you want existing files replaced. Say yes to all. Job done!
    You will now have Quicktime 7.5.5.x installed.
    N.B. Repair permissions and restart both before and after installation.

  • IOException: Problem loading image

    Hi foreros
    What could be the reason behind an error like this IOException: Problem loading image except it cannot find the jar path for the images?
    Regards
    Tizha

    Without more information, I'd say there's not enough available RAM to load the image.

  • Load jar in ClassLoad

    I need load jar in ClassLoad, I did write code, but he not work. what is the problem?
    package jar;
    import java.io.File;
    import java.io.IOException;
    import java.lang.reflect.Method;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.URLClassLoader;
    import java.util.Enumeration;
    import java.util.jar.JarFile;
    import java.util.zip.ZipEntry;
    public class Jar1 {
        public static void main(String[] args) {
            try {
                String filePath = "/home/pitbull/temp/plugins/script.jar";
                printJar(filePath);
                load(filePath);
            } catch (Exception e) {
                e.printStackTrace();
        public static void printJar(String path) throws IOException {
            JarFile jarFile = new JarFile(path);
            Enumeration entries = jarFile.entries();
            while (entries.hasMoreElements()) {
                ZipEntry entry = (ZipEntry) entries.nextElement();
                System.out.println(entry.getName());
            jarFile.close();
        public static void load(String filePath) throws MalformedURLException, ClassNotFoundException {
            filePath = "jar:file://" + filePath + "!/";
            URL url = new File(filePath).toURI().toURL();
            URLClassLoader clazzLoader = new URLClassLoader(new URL[]{url});
            Class clazz = clazzLoader.loadClass("scripts.task_custom_field_value.MessageFormat");
            for (Method method : clazz.getMethods()) {
                System.out.println(method.getName());
    }This jar "/home/pitbull/temp/plugins/script.jar" not classpath.

    Get exception. But class scripts.task_custom_field_value.MessageFormat.class is exactly have in jar.
    java.lang.ClassNotFoundException: scripts.task_custom_field_value.MessageFormat
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at jar.Jar1.load(Jar1.java:38)
         at jar.Jar1.main(Jar1.java:18)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)Edited by: P1tBull on Jul 27, 2010 2:17 AM

Maybe you are looking for

  • Error message when trying to open iTunes.exe

    I love itunes and everything, and its been working really great until recently (about 2 days ago) in which my iTunes stopped working. I get a message which says: "The iTunes application could not be opened. The file or directory is corrupt and unread

  • Java.util.zip.ZipException Error

    I created a jar file, and put in C:\tools C:\tools>java -jar myjar.jar is working fine However, if I try to run myjar.jar in other directories, then I have problems. I already set the classpath: SET CLASSPATH=.;%CLASSPATH%;C:\tools\myjar.jar; Here's

  • HR-SRM question

    Can someone please explain to me the differences between a Standard Organization Sturcture in SRM and the one HR organization structure? We have our users assigned to two clients.And that has really confused me.:)) Moreover..how are the attributes af

  • DLL basics Documents

    Hello every one, I know how to create a dll in labview and how to use it . But i need a good document which explains how to handle DLL with different data types. Thank you Solved! Go to Solution.

  • Autocomplete field sending id instead of label

    Hi, does anyone know whether it would be possible for the autocomplete field to retrieve 3 fields: id, name, surname 1) visualize as label something like name + " " + surname 2) send the id instead of the label? For 1, I tried using mysql CONCAT but