Can a signed applet run classes from disk?

Hi all,
I have a signed applet jar and a signed jar file somewhere on disk (I can ensure the jar file is available on client's machine before i run the applet). My applet doesn't let me have file io access from the classes in the jar file on disk. It gives the following exception:
java.security.AccessControlException: access denied (java.io.FilePermission C:\test.jar read)
However I do have file io access from classes in the applet jar itself. Both the jar files are signed.
Is there any way to get around the plug-in security in this case?
Using installed extension (jar/lib/ext) is not an option, unfortunately.
Any help will be appreciated.
-Jas

Is it not the same problem of JavaScript which calls Java ?
Harmemejer posted : http://forum.java.sun.com/thread.jsp?forum=63&thread=524815 (second post) ???
Hope it helps
Rafax.

Similar Messages

  • Force the loading of a class from disk

    Is it possible to force the loading of a class from disk ? The assumption here is that the class we want to load will be continuously updated so we want the latest version of the class(on disk) rather than the one already in memory.
    Thank you.

    You have to implement a custom loader.
    public class MyLoader extends URLClassLoader
      public (URL[] urls)
        super(urls);
      public synchronized loadClass(String className) throws ClassNotFoundException
        // first check built in JDK 1.2 class cache
        Class clazz = findLoadedClass(className);
        if (null == clazz)
          // Didn't find it in cache, so check our custom
          // URL[] classpath, added at the constructor.
          clazz = findClass(className);
          if (null == clazz)
            // Didn't find it in our classpath, so either
            // throw a ClassNotFoundException, or call to
            // the parent if we want to go that way.
            throw new ClassNotFoundException();
        return clazz;
    }In the above, you can do all sort of things. We don't delegate to the parent at all, so if the class being looked for is NOT in any of the URL[] objects passed in when created, then a ClassNotFoundException is thrown. The normal delegation checks cache, then the parent loader, then the findClass(). We simply remove the check to the parent, and try the findClass() right away. Because URLClassLoader implements findClass() to look for a .class in ALL of the URL[] objects passed to it, we don't need to bother with that at all.
    Does that help? Ask away if you have more questions.

  • Can i download and run itunes from an external hard drive

    can i download and run itunes from an external hard drive?

    The iTunes application should be on the boot drive but you can keep the iTunes library on an external.
    hold Shift when launching iTune sand select Create library and select the external.
    This will create an iTunes folder on the external with all the library files and all media will also go into this folder.

  • How can I call a java class from within my program?

    I was wondering if there's a platform independent way to call a java class from my program.

    Here's my scenario. I'm working on a platform independent, feature rich, object-oriented command prompt program. The way I'm designing it is that users can drop classes they write into my bin directory and gain access to the class through my program. For example, they drop a class named Network.class in the bin directory. They would type Network network at my command prompt and gain access to all the methods available in that class. They can then type system.echo network.ipaddress() at my prompt and get the system's ip address. I have it designed that there's a server running in the background and the clients connect to my port. Once connected the end-user can enter their user name and password and gain access to the system. When they type a command they actually call another java program which connects to my server using a seperate thread. They can then communicate back and forth. I have it set that everything has a process id and it's used to keep track of who called what program. Once the program is done it disconnects and closes. Rather than getting into the nitty gritty (I didn't want to get into heavy detail, I know how everything will work) I'm really interested in finding out how I can call a java program from my program. I don't want it to be part of the app in any way.

  • Signed Applet running in weblogic server

    Hi ,
    Im a newbie with applet. Can anyone help me to clarify below question.
    1. I have signed applet compile with jdk 1.4.2. It its running fine with JRE 1.4 and 1.4.2. However i need to upgrade the applet so that it can support JRE 1.6. Can anyone guide me regarding this issue as the applet will close if i running in jre 1.6. I got the below exception
    java.io.FilePermission<<allFiles>> execute.
    2. As i know, If i compiled the applet again, i need to signed the ja againr. I tried once and got below exception
    ClassNotFoundException. can anyone give any idea how resolved this problem. Fyi, im using weblogic server 8.1
    Thanks.
    Regards

    Normally, a 1.4 compiled and signed applet should work just fine under 1.6. No need to recompile and resign.
    This is in theory and in my practice with my applets. Since you do have problems, please post here (copy and paste, don't paraphrase) full stack traces of the errors and relevant code where the error occurs.

  • Can't get rid of classes from JServer

    During the learning process, I created a World.java in directory hello, and following the examples in the online help, put this class in package hello. I found that if I did a loadjava from within the hello directory, the class is successfully loaded, but as hello.World; i.e., loadjava World.class produced an object hello.World in JServer. This class runs okay, but dropjava can't get rid of this class. I try both dropjava hello.World and dropjava World, and both of them say class not found. But the class is still there.
    If I do things the right way (i.e., loadjava hello\World.class from the directory above hello), then dropjava works properly. So finally, the question is: how can I get rid of this class which dropjava says isn't there but actually continues to exist?

    I found the answer by browsing. I am supposed to hold the Command key down and drag the item off the sidebar. It worked. I was trying to right click the item and remove it that way which didn't work.

  • Can you sign into Adobe CreatePDF from different desktops?

    I am looking into purchasing Adobe CreatePDF for administrative work that I do for my job. The problem is that I don't have a set work station and am changing desktop computers in the office frequently. I was wondering if I can sign into Adobe CreatePDF from different desktops for this reason. An answer would be greatly appreciated! If yes then I am definitely subscribing to this product!

    You most certainly can!  As CreatePDF is a web-based service, you can access your account from virtually any computer by visiting http://createpdf.acrobat.com/signin.html
    Let us know if you have any questions.
    -David

  • Can't access non ejb classes from JSP - NoClassDefFound error

              Hi,
              I have one session ejb which has a method returning a collection of non ejb class objects (say of Class 'Foo').
              The method signature is like :
              "Collection getFinacialData() throws RemoteException"
              It is working fine with normal java clients. Now when I run this from a JSP it gives a "NoClassDefFoundError". I kept class 'Foo' and the remote interface of the session bean in the same package and also in the same ejb jar file. Also I am running JSP and ejb in same WL server(ver 5.1, SP8 on solaris). What I have done is only deployed the bean jar file. Do I need to do anything more?
              thanks in advance.
              

    I ran into a similar problem. I solved it by putting the client classes for
              accessing my EJB in the WebLogic POST_CLASSPATH in the startWebLogic script
              file:
              set POST_CLASSPATH=d:\weblogic\myserver\myClient.jar
              For more information on class visibility between the JSP and EJB class
              loaders, check out
              http://www.weblogic.com/docs51/classdocs/API_ejb/EJB_deployover.html#1056256
              Rick
              "niroja" <[email protected]> wrote in message
              news:3a6ed903$[email protected]..
              >
              > Hi,
              >
              > I have one session ejb which has a method returning a collection of non
              ejb class objects (say of Class 'Foo').
              > The method signature is like :
              > "Collection getFinacialData() throws RemoteException"
              > It is working fine with normal java clients. Now when I run this from a
              JSP it gives a "NoClassDefFoundError". I kept class 'Foo' and the remote
              interface of the session bean in the same package and also in the same ejb
              jar file. Also I am running JSP and ejb in same WL server(ver 5.1, SP8 on
              solaris). What I have done is only deployed the bean jar file. Do I need to
              do anything more?
              >
              > thanks in advance.
              >
              

  • Can we call a custom class from a servlet

    Hi
    Can we call a java class (not a delivered class by java) in a servlet. I am trying to call API.class which is written by me in a servlet. It is not giving an error at the import stage. But when i am trying to initialize the class object it is throwing up the following error:
    Error 500--Internal Server Error
    java.lang.NoClassDefFoundError: psft/pt8/joa/API
         at knet.Creditcall.(NBKServlet2.java:61)
         at knet.NBKServlet2.doGet(NBKServlet2.java:49)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:120)
         at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:915)
         at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:879)
         at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
         at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
         at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)

    Did you deploy your class with the web app? You can do this by placing your classes in a jar, and put that jar into the WEB-INF/lib folder or by copying your classes into WEB-INF/classes.

  • I can't sign out of icloud from my iphone

    I keep trying to sign out of icloud from my iphone 5S, bc none of my apps are syncing anymore. I though I could trigger Notes and Calendar to begin working again if I singed out and then signed back in?  But when I tap sign out, it asks if I want to save or delete data, no matter which option I choose, a dialogue box pops up saying "Signing Out" and a timer circle just keeps running and running and never signs out????

    Yes. Try:
    Find My iPhone Activation Lock: Removing a device from a previous owner’s account

  • Can't sign in to Azure from Visual Studio with the 2.5 version of Azure tools

    I'm getting this message when I try to sign in to Azure from within Visual Studio:
    Sorry, but we're having trouble signing you in
    User account you used to sign in is not supported for this application. Please use a different account to sign in.
    View details
    CorrelationId: b17df2a1-a2ea-4548-a614-0700c06dbb0f
    Timestamp: 2014-11-26 21:48:55Z
    I'm using the same Microsoft account (a regular "Live Id", not an org account) as I use for logging into the Azure Portal.
    Anyone know how I can troubleshoot this?

    Hi,
    Based on your description, you have some issues when sign in azure from within Visual Studio, could you login successfully in IE? if all these fail, please contact with azure support, for this account issue, the support channel is the best choice, here
    is the support channel:
    http://www.windowsazure.com/en-us/support/contact/. If you can login successfully in IE, I suggest you try these options, 1) reopen the visual studio with administrator 2) remove the azure certificates then sign in again 3) if all these can't
    give you some help, please try to re-install the azure SDK or repair visual studio.
    Best Regards,
    Jambor 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I can't sign in to YouTube from the iPhone app...

    I've searched and seen a lot of people posting about this.  However, nobody seems to be having the same problem as I am.
    When I attempt to log in to YouTube either from the YouTube app, or from my video upload screen, it just continually pops up the YouTube sign in screen.  No error message.  I know I am using the correct YouTube sign in - I have verified it.  I do not have 2 step authentication activated on my Google account.  Why can I not sign in?  I am extremely frustrated by this - all I am trying to do is upload a video I took on my iPhone 4, and I can't even get signed in to YouTube.  I can get there from their mobile site, but frankly, why do I have an app if I can't use it? 
    Can anyone help me?

    I was actually never able to "restart" the youtube app, because its a "stock" app, and they can't be deleted or restarted. I actually set up the 2-step google verification according to the advice in the previous posts, and that wasn't working so I switched it back from the verification. Then I took the ipod to school, and used it there and it worked again...I think maybe it was a problem with my WiFi at home or something..? Honestly, I was not really sure what fixed it...sorry, that's probably not super helpful for you...what exactly is the problem with your youtube app on your ipod touch?? Can't sign in...??

  • Can I move old video footage from Disk Utility to an external hard drive, to free up space?

    I have a lot of old videos of my students located on Disk Utility.
    I need to free up memory, so am wondering if I can move these videos to an external hard drive.
    From time to time, I need to access these old videos, either to show to a new choreographer or to pull out  a clip for a grant proposal, so I don't want to totally lose access to them.
    Thanks so very much!!!

    What's the file extension of the DVD in question located in Disk Utility? That's why I was asking for a screenshot. Is that .cdr? Can you do a File>Save As? If it's .cdr can you try dragging it to the external. Doesn't have to go to Disk Utility. Can just be to a folder there. As you drag it does it show with a + inside a green circle? That will mean it's copying it, but leaving the original in place. If it can be moved successfully, you can then remove the original from Disk Utility.
    Or just copy (drag) it to your Desktop, then move it over to a folder on the external.
    Message was edited by: WZZZ

  • Can't create client proxy classes from WebLogic-generated WSDL file

    We have a web service that we used to generated a WSDL file. We then used clientgen
    to try and create the client proxy classes from the WSDL. This failed. Doesn't
    it seem reasonable that if WebLogic creates a WSDL that WebLogic should also be
    able to consume that WSDL?

    Can you please post the wsdl?
    Regards,
    -manoj
    http://manojc.com
    "Robert" <[email protected]> wrote in message
    news:40db0bc0@mktnews1...
    >
    We have a web service that we used to generated a WSDL file. We then usedclientgen
    to try and create the client proxy classes from the WSDL. This failed.Doesn't
    it seem reasonable that if WebLogic creates a WSDL that WebLogic shouldalso be
    able to consume that WSDL?

  • How can I sign up for classes for the ipad

    How do I sign up for classes on iPad

    Call your nearest Apple Store.
    This will get you started.
    You can download a complete iPad 2 User Guide here: http://manuals.info.apple.com/en/ipad_user_guide.pdf
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad 2 - Guided Tours
    http://www.apple.com/ipad/videos/
    Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

Maybe you are looking for

  • Does the new Mac Pro has an air filter?

    I think that if you pay this huge price from a computer, you should get an air filter too, but do you?

  • SQL Mode Command to update database table

    Hi All, I have a couple of scenarios which I need help with: 1) - I have a sql query which pulls two columns lets say Equipment and a val1 from a sql database table displayed in a grid. - Once the user clicks on a record I have two text boxes which g

  • Need clarification on one running job in SM37

    Dear  friends, right now am working for one client , so we are the second vendor for them and we have been taking care of the project now i can able to see my client's previous vendor user names are still availbae in SU01.. so instead of deleting the

  • ADF 11g inheritance problem

    Hi Giving a look on ADF 11g model Business Components, I tried to have a generic component A and its extended component B. A has an id primary key attribute and if i generate a database table it has the PK generated, but B has no PK generated since t

  • OutOfMemoryError when merging PDF document

    Sir, We are facing problem while merging the PDF files (using iText 1.1) When the merged PDF reaches 60MB, we are getting java.lang.OutOfMemoryError exception. We increased the heap size using the below command Java -Xms32m -Xmx512m Still the problem