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

Similar Messages

  • Loading Images into Applets

    I've been having problems loading an image into an Applet. I've found that when the getImage() call is put into the init() method it loads the image fine, also implementing an imageUpdate call. However, now I'm trying to expand on this by putting it into a button click, it hangs indefinitely while waiting for the image to load.
    Another interesting point I've noticed is that the Canvas subclass ImageSegmentSelector uses a PixelGrabber in its constructor to put the Image into a buffer - when this class is created from the imageUpdate() call, NOT the init() call, the grabPixels() call hangs indefinitely too!!
    Any feedback, please,
    Jonathan Pendrous
    import java.applet.*;
    import java.net.*;
    import jmpendrous.util.*;
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    public class XplaneGlobalSceneryDownloader extends Applet implements ActionListener{
    ImageSegmentSelector worldMap;
    Image img;
    URL url;
    int longtitude = 36;
    int latitude = 18;
    boolean imageLoaded;
    TextField t1, t2,t3;
    Label l1,l2,l3;
    Button b1;
    Applet a1;
    public void init() {
    a1 = this;
    l1 = (Label) add(new Label("Number of horizontal sections: "));
    t1 = (TextField) add(new TextField("45",3));
    l2 = (Label) add(new Label("Number of vertical sections: "));
    t2 = (TextField) add(new TextField("45",3));
    l3 = (Label) add(new Label("URL of image file: "));
    t3 = (TextField) add(new TextField("file:///C:/java/work/xplane_project/source/world-landuse.GIF",60));
    b1 = (Button) add(new Button("Load image"));
    b1.addActionListener(this);
    validate();
    // THIS CODE WORKS FINE ...
    /*try { url = new URL("file:///C:/java/work/xplane_project/source/world-landuse.GIF"); }
    catch(MalformedURLException e) { System.exit(0);   }
    img = getImage(url);
    //int w=img.getWidth(this);
    while(imageLoaded==false) { try { Thread.sleep(1000);   } catch(InterruptedException e) {System.exit(0);    } }
    worldMap = new ImageSegmentSelector(this, img, longtitude, latitude);
    add(worldMap);
    //resize(worldMap.getWidth(), worldMap.getHeight());
    validate();*/
    //repaint();
    //worldMap = new ImageSegmentSelector(this, img, longtitude, latitude);
    //repaint();
    public void actionPerformed(ActionEvent e) {
    try { longtitude = Integer.parseInt(t1.getText()); } catch (NumberFormatException ex) {System.exit(0); }
    try { latitude = Integer.parseInt(t2.getText()); } catch (NumberFormatException e2) {System.exit(0); }
    try { url = new URL(t3.getText()); }
    catch(MalformedURLException e3) { System.exit(0);   }
    img = getImage(url);
    //int w=img.getWidth(this);
    while(imageLoaded==false)
    { try { Thread.sleep(1000);   } //KEEPS ON LOOPING
    catch(InterruptedException e4) {System.exit(0);    } }
    worldMap = new ImageSegmentSelector(a1, img, longtitude, latitude);
    add(worldMap);
    //resize(worldMap.getWidth(), worldMap.getHeight());
    validate();
    public boolean imageUpdate(Image i, int flags, int x, int y, int w, int h){
    // THIS NEVER GETS CALLED AT ALL //
    if (((flags & ImageObserver.WIDTH) != 0) && ((flags & ImageObserver.HEIGHT) != 0)) {
    //worldMap = new ImageSegmentSelector(this, i, longtitude, latitude);
    //add(worldMap);
    //validate();
    //repaint();
    imageLoaded = true;
    return false;
    return true;
    }

    Sorry, thought this had been lost.
    You can load a file if the applet itself is run from the local filesystem - it loads it fine from the init(), but not otherwise. But I haven't got the applet to run from a browser yet without crashing (it's OK in the IDE debugger), so that's the next step.

  • Problem loading data into write optimized dso.....

    Hi ,
    I am having problem loading the data from PSA to write optimised DSO
    I have changed the normal DSO into a Write Optimised DSO. I have 2 data sources to be loaded into the write optimized DSO. One for Demand and one for Inventory.
    The loading of Demand data from PSA to DSO happens fine with out any error.
    Now while loading the Inventory data from PSA to DSO , i get the below errors
    "Data Structures were changed. Start Transaction before hand"
    Execption CX_RS_FAILED Logged
    I have tried reactivating the DSO, Transformation, DTP and tried to load the data again to the write optimised DSO, but no luck, I get the above error message always.
    Can some one please suggest me what could be done to avoid the above error messages and load the data successfully.
    Thanks in advance.

    Hi,
    Check the transformations is there any routines written.
    Check your Data struture of cube and DS as well.
    Is there any changes in structure.
    Data will load upto PSA normally, if is there any changes in struture of DSO, then the error may occur.just check it.
    Check the below blog:
    /people/martin.mouilpadeti/blog/2007/08/24/sap-netweaver-70-bi-new-datastore-write-optimized-dso
    Let us know status.........
    Reg
    Pra

  • Problem loading image into texture memory

    Hi there, I am currently porting our new casual PC game over to the iPad using the pfi, the game was written in Flash so the porting process isn't that hard thankfully, it's mainly just optimizing the graphics.
    So far things are going smoothly, I was initially worried about graphical performance, but since we put everything into the GPU that's no longer a concern- it runs super smooth at 60fps at 1024x768, we can have a hundred large bitmaps rotating and alphaing at once with no slowdown.
    However there is one weird problem which is really worrying me at this point- it seems that the speed at which images are loaded into video memory as textures is vastly different depending on what else is being run on the iPad, for example:
    * If I run my game with nothing else in memory, it will run fine at 60fps, and load up large images into texture memory very fast.
    * If I run another App, in this case a Virtual piano app for a while, then close that App via the Home button (so the piano app is still in memory but suspended due to the multitasking), then when I run my game, it will run ok initially, but when I try to load a large (1024x512) image into texture memory it pauses the whole game for several seconds.
    * To make matters worse, if I repeat the same test using the RAGE app from ID software (which is very graphically intense), my game actually slows down to 1 fps and runs extremely slowly as soon as I run it and the frame rate never returns to normal. If I then double-click the home button, shut down RAGE, then go back to my game, it will run fine.
    I have read that sometimes when you load images into texture memory it will have to reclaim that memory from other apps, but that doesnt exaplain why it slows down every time I want to load something, or why the game would slow right down to a crawl.
    So then it seems that having other Apps in memory is slowing down my game, or stopping it from working altogether. Obviously this is not ideal and would stop us from releasing, so is there any way I can stop this, has anyone come across the problem? Please help!
    PS. this problem also happens on an iPhone 4, as I have performed the same tests.

    Hi _mz84
    First thing I noticed, is that you did not close your
    <embed> tag
    <embed src="gallery1.swf" bgcolor="#421628" width="385"
    height="611" wmode="transparent" />
    If that doesn't solve your troubles, try the following
    container.
    <object type="application/x-shockwave-flash" height="611"
    width="385" align="middle" data="gallery1.swf">
    <param name="allowScriptAccess" value="never" />
    <param name="allowNetworking" value="internal" />
    <param name="movie" value="gallery1.swf" />
    <param name="quality" value="high" />
    <param name="scale" value="noscale" />
    <param name="wmode" value="transparent" />
    <param name="bgcolor" value="#421628" />
    </object>
    hope this helps out.

  • Access denied by loading files into applet

    Hi!
    I have a problem with initializing my applet.
    When i try to load files from my harddisk in my applet, i get the
    "access denied" message and so the applet could not be initialized.
    I gave my program files "allPermission" in the java-policy-tool.
    Is there anybody who can tell me, what the problem is?
    Thanks for your help.
    Stefan

    You should load the URL of your file.
    URL url = null;
    try {
    url = new URL(getCodeBase(), getParameter("...your file..."));
    }catch(Exception e){;}
    loaders.load(url);
    Normally, that should be good !
    Bye !

  • Problem load hierarchy into 0GL_ACCOUNT

    Hi all,
    I' am trying to load data into 0GL_ACCOUNT for use the 0FIGL_CO1 cube, when try to load the hierarchy from dataSource 0GL_ACCOUNT_T011_HIER has errors...
    1. I edit the infoPack and message say something like "the transfer method has change PSA to IDocs".
    2. When I check the transfer rule see that is missing map some fields ... i don't know if is necessary make the fix like with the 0GLACCEXT... then i fill the fields missing and when load the data with the infoPack it fill the PSA but not the hierarchy.
    I have tried everything but now I don't know what to do.
    Please help me, I am new in BW.
    tnk

    Hi,
    Mapping is
    0HIENM     Hierarchy name     HIENM
    0HIER_VERS     Hierarchy version     VERSION
    0DATEFROM     Valid-From Date     DATEFROM
    0DATETO     Valid-to date     DATETO
    In InfoPackage under Hierarchy you check correct one, ie. click on Available Hierarchies From OLTP and select correct one and load,.
    Thanks
    Reddy

  • Dynamically Loading .jar into the AppletClassLoader of Signed Applet

    First of all, I thank you for reading this post. I will do everything I can to be concise, as I know you have things to do. If you're really busy, I summarize my question at the bottom of this post.
    My goal:
    1.) User opens applet page. As quickly as possible, he sees the "accept certificate" dialog.
    2.) Applet gets OS vendor, and downloads native libraries (.dll for windows, etc.) and saves them in user.home/ my new dir: .taifDDR
    3.) Calls are made to System.load(the downloaded .dlls) to get the natives available.
    4.) Applet downloads the .jar files that we stripped so that the applet was smaller, one by one
    5.) For each .jar downloaded, it goes through the entries, decodes the .class files, and shoves them onto the AppletClassLoader.
    6.) Finally, the looping drawmation of the applet is linked to a subclass, that now has everything it needs to do what it wants.
    I have gotten all the way to step 5!!! It was amazing!
    But now I'm stuck on step 5. I can download the .jar files, read them, even decode the classes!
    As evidence, I had it print out random Methods using reflection on the created classes:
    public net.java.games.input.Component$Identifier net.java.games.input.AbstractComponent.getIdentifier()
    public final void net.java.games.input.AbstractController.setEventQueueSize(int)
    public java.lang.String net.java.games.input.Component$Identifier.toString()
    public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException
    ... many many more So, its frustrating! I have the Class objects! But, whenever the applet begins to try to, say instantiate a new ControllerEnvironment (jinput library), it says ClassNotFoundException, because even though I made those Classes, they aren't linked to the system classLoader!
    Here is how I am loading the classes from the jar and attempting to shove them on the appletclassloader:
    ClassLoader load = null;
    try {
         load = new AllPermissionsClassLoader(new URL[]{new File(url).toURL()});
    } catch (MalformedURLException e2) {
         e2.printStackTrace();
    final JarFile ajar = new JarFile(url);
    ... we iterate over the elements (trust me, this part works)
    String name = entry.getName();
    if (name.endsWith(".class")) {
         name = name.substring(0, name.length() - 6);
         name = name.replace('/', '.');
              Class g = load.loadClass(name);
    public class AllPermissionsClassLoader extends URLClassLoader {
        public AllPermissionsClassLoader (URL[] urls) {
            super(urls);
        public AllPermissionsClassLoader (URL[] urls, ClassLoader parent) {
            super(urls, parent);
            System.out.println(parent);
        public AllPermissionsClassLoader (URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory) {
            super(urls, parent, factory);
        protected PermissionCollection getPermissions (CodeSource codesource) {
            Permissions permissions = new Permissions();
            permissions.add(new AllPermission());
            return permissions;
    }so, my assumption here is that if I create a new AllPermissionsClassLoader and then call loadClass, the loaded class (because it does return a valid Class object) is usable globally across my applet. If this is not true, how should I else be doing this? Thank you for Any advice you could offer!

    I know it's two years ago but the OP's approach seems pointless to me.
    4.) Applet downloads the .jar files that we stripped so that the applet was smaller, one by oneWhy? Just name the JAR files in the CLASSPATH attribute of the <applet> tag. Then what you describe in (5) and (6) happens automatically on demand.
    protected PermissionCollection getPermissions (CodeSource codesource) {Who does he think is going to call that?

  • How to load files into applets?

    Hi,
    I have developed a quiz applet. The quiz applet will have a button by clicking which one can start quiz. The quiz will open in a Jframe.
    At first the frame shows screen to enter a username (no checking for present).
    After you click login it takes the test quiz file as input and number of questions to appear in quiz.
    After that quiz program will be reading the quiz file specified (available in the same directory), then parsing the file getting questions and answers into Objects of questionRecord.
    From these questionRecords a question will be given in the frame at random.
    Finally, score will be displayed to the user.
    The program works well when it is compiled in eclipse. When I try the same program to run in browser (I'm using Mozilla), I can't load the quiz file. I dont find any errors as it running in the browser. I dont understand where the problem might be.
    Here is the Url: http://csee.wvu.edu/~srikantv/Assign/Assignment4Applet1164649158249.html
    If you want to look at.
    Please help..
    Thanx

    You can configure the browser or the plugin so that the java console is displayed.
    Your problem is probably that an applet which isn't signed isn't allowed to read files from the local filesystem.
    Kaj

  • Problem loading models from applet

    Hello, I am trying to convert a collaborative CAD program I wrote into an applet.
    The program loads .OBJ files, and I can not seem to convert my code for it to work as an applet.
    Is it possible to package the .OBJ files into the applet .JAR file so that they are downloaded and loaded out of the .JAR?
    I am at wits end here, having tried many things.
    I know an applet can't read from the hard disk...
    And to cover the major areas of concern:
    Program packaged in a jar.
    Each class is part of a package, OOP_PA4
    so the file structure is
    OOP-PA4.jar / OOP_PA4/ Classes etc
    Dont know if that helps.
    Thanks

    I see three main options:
    - If the files to read are in the JAR, the ClassLoader could give you a stream to read them by means of the getResourceAsStream. But this means the are packaged togheter with your application code, adn so allways the same.
    - An applet, unless in a signed JAR file and authorized in the local JVM does not have access to the local resources, such as files, printers, etc. Your best option if you need access to files on the local disks is to use Java PlugIn or Java WebStart, both also require a signed JAR but much more portable between brosers. Java WebStart is particularly nice, check it.
    - An applet can open network connections to the server from where it was downloaded, so if you place your files in the same web server in which your web page and applet are, the applet's code should be able to open an HTTP connection and get them without deeding to sign the JAR.
    Regards

  • 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!).

  • Problem loading flash into website

    Hi,
    I wanted to load simple image gallery into my website using
    following code:
    <object width="385" height="611" align="middle">
    <param name="movie" value="gallery1.swf">
    <param name="bgcolor" value="#421628" />
    <param name="wmode" value="transparent" />
    <embed src="gallery1.swf" bgcolor="#421628" width="385"
    height="611" wmode="transparent">
    </object>
    It is working fine when I run just the gallery1.swf on my
    machine, but it somehow can not load the images into website,
    although all the paths are correct. Did anyone else had this
    problem?
    I would realle appreciate help,
    Thanks

    Hi _mz84
    First thing I noticed, is that you did not close your
    <embed> tag
    <embed src="gallery1.swf" bgcolor="#421628" width="385"
    height="611" wmode="transparent" />
    If that doesn't solve your troubles, try the following
    container.
    <object type="application/x-shockwave-flash" height="611"
    width="385" align="middle" data="gallery1.swf">
    <param name="allowScriptAccess" value="never" />
    <param name="allowNetworking" value="internal" />
    <param name="movie" value="gallery1.swf" />
    <param name="quality" value="high" />
    <param name="scale" value="noscale" />
    <param name="wmode" value="transparent" />
    <param name="bgcolor" value="#421628" />
    </object>
    hope this helps out.

  • Problem loading the chat applet, red x mark sign..

    Hello all - hopefully this is the correct place for this post. I've been trying to load a java enabled chat room, and keep getting a red X in the top left corner (java applet failed, etc).
    Java chat applet fails to load in the following website www.chat-web.com, but loads in the other websites. the following is the version i have installed in my computer. Version 6 Update 12 (build 1.6.0_12-b04). I have visited the help section of the website in which java applet fails to load and tried all the following steps,
    1) I cleared all the temp files from the internet options.
    2) cleared the cache in the java plug-in
    3) disabled the pop-up blocker
    insipite of the above steps the problem still persists..
    here is a screen shot of the error > http://i42.tinypic.com/2pzwhvp.jpg
    here is the details of the error :
    Java Plug-in 1.6.0_12
    Using JRE version 1.6.0_12 Java HotSpot(TM) Client VM
    User home directory = C:\Users\Guest
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class com.chatspace.v20090.Chat not found.
    java.lang.ClassNotFoundException: com.chatspace.v20090.Chat
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 7 more
    Exception: java.lang.ClassNotFoundException: com.chatspace.v20090.Chat
    Does this look like a chat room error? I think my side is fine, but I could be wrong. I'm not the best technical person, but just know the basics.
    Anyone have any ideas?
    Thanks!
    livelife

    Hi. Thank you for reply. I tried the steps suggested by you, but it still shows the same errors, i e-mailed to chat-web.com as well but seems the e-mail is invalid. i tried to load the chat rooms in my desktop pc too, i get the same error,
    Java Plug-in 1.6.0_13
    Using JRE version 1.6.0_13 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Intel
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class com.chatspace.v20090.Chat not found.
    java.lang.ClassNotFoundException: com.chatspace.v20090.Chat
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.SocketException: Network is unreachable: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 7 more
    Exception: java.lang.ClassNotFoundException: com.chatspace.v20090.Chat
    lifelive

  • Problems loading songs into flash mp3 player

    I am very new to actionscript, and I am still trying to learn some of the basics, but I'm getting there, understanding it better with help from great forums like this one.
    I have a music community website, visitors can sign up, upload mp3 files, their files get uploaded into their own folder named '$id' in the php code, (if they are the 10th member to sign up, their folder would be named 10, and so on)
    I have a prebuilt flash player that I want to playback the mp3 files just for that member when their profile is being viewed, I have some code in the mp3 upload script that automatically writes an xml file to their folder containing their song data, with Andrei1's help, I got that part working using flashvars, now the problem I am having is that I can't get the songs to play back, the data is there but no music.
    as I said I am using a prebuilt flash player that is using a static call to a directory, so should I use flashvars again to load the mp3 files into the player? and I also need help figuring out what to change in the actionscript.
    here is the object embed src for the html:
    <param name="movie" value="flplayer1a.swf">
                        <embed src="flplayer1a.swf" FlashVars="xml=<?php echo "members/$id/playlist.xml" ?>"></embed>
                        <param name="FlashVars" value="xml=<?php echo "members/$id/playlist.xml" ?>">
    and here is the actionscript code for the playback on frame 1
    stop();
    var myFormat:TextFormat = new TextFormat();
    myFormat.color = "0xFFFFFF";
    list.setRendererStyle("textFormat", myFormat);
    var trackToPlay:String;
    var pausePosition:int = 0;
    var songURL:URLRequest;
    var isPlaying:Boolean = false;
    var i:uint;
    var myXML:XML = new XML();
    var XML_URL:String = loaderInfo.parameters.xml;
    var myXMLURL:URLRequest = new URLRequest(XML_URL);
    var myLoader:URLLoader = new URLLoader(myXMLURL);
    myLoader.addEventListener("complete", xmlLoaded);
    function xmlLoaded(event:Event):void {
        myXML = XML(myLoader.data);
        var firstSong:String = myXML..Song.songTitle[0];
       var firstArtist:String = myXML..Song.songArtist[0];
      songURL = new URLRequest("????" + firstSong + ".mp3");
       status_txt.text = "1. "+firstSong +" - "+firstArtist;
         for each (var Song:XML in myXML..Song) {
    i++;
      var songTitle:String = Song.songTitle.toString();
    var songArtist:String = Song.songArtist.toString();
    list.addItem( { label: i+". "+songTitle+" - "+songArtist, songString: songTitle, Artist: songArtist, songNum: i } )
    var myArray = new Array (0,0);
             list.selectedIndices = myArray; // This highlights song 1 by default
    gotoAndStop(3);
    this is on frame 2 for the song switching
    songURL = new URLRequest("?????" + trackToPlay + ".mp3");
    and this on frame 3:
    stop();
    var snd:Sound = new Sound();
    var channel:SoundChannel;
    var context:SoundLoaderContext = new SoundLoaderContext(5000, true);
    snd.load(songURL, context);
    channel = snd.play(pausePosition);
    I'm starting to build my own flash player based on what I have learned here, I just have to figure this part out and I'm good to go.

    songURL = new URLRequest("?????" + trackToPlay + ".mp3"); and
    songURL = new URLRequest("????" + firstSong + ".mp3");
    this is where the movie looks for mp3 files, when I downloaded this prebuilt player, the line looked like this
    songURL = new URLRequest("http://www.mydomain.com/mp3_files" + firstSong + ".mp3");
    songURL = new URLRequest("http://www.mydomain.com/mp3_files" + trackToPlay + ".mp3");
    this is the part I am trying to figure out how to change, if I were to have all the members mp3 files go into the mp3_files folder, the player works fine, no problems at all, but I don't want all the members mp3s in one folder, they need to be in each members folder(which I have it set up to do) and I can't figure out how to change the "http://www.mydomain.com/mp3_files" to http://www.mydomain.com/members/$id, that's why I was asking if we add another value in the flash vars, again my inexperience with 2 way communication between as3 and php variables is what's choking me
    the list component is a movie clip
    "You did not answer the question about whether scripts are spread through several frames"
    the first frame has all the code for variables, xml loading, inserting data, the second frame has code for song switching, the third frams has the sound variables, button functions, scrubber and volume, animated meters, etc., I hope i answered it this time, being a newbie, I am trying to answer the best I can.

  • Problem Loading Photos into iPhoto

    I recently started downloading my pictures from my digital camera into iPhoto 5. I don't like deleting the pictures from my memory card because I print them from my card and also download them to other computers. Every time I plug in my camera it goes through every single picture. Every time I tell it not to download duplicates and to apply this to every picture, but it takes a lot of time to go through the hundreds of pictures on my card before it gets to the 3 at the end that I want to download. Also, I don't want some of the pictures on my mac and delete them from iPhoto (because I don't know how to prevent it from downloading them in the first place), but the next time I plug in my camera it downloads them all over again! Are there ways to bypass these problems? Thanks!
    By the way- my camera is the Canon Powershot A75

    hi newmacusers,
    I download my photos with Image Capture (you can choose which images to download).
    I then put them in a dated folder and import that folder into iPhoto. I keep all my dated folders of images till I have enough to burn them to DVD as a backup of just my images.
    Using Image Capture to download images and video clips:
    Open up Image Capture which is found in the Applications folder.
    When it is opened, go to Image Capture/Preferences
    Under the General button choose
    Camera: When a camera is connected, open Image Capture.
    The next time you connect your camera Image Capture will open.
    In the window that opens you will see an Options button. Click on that button to set your options.
    To find out more about Image Capture (it can do a lot more) Click on Help in the menu bar when Image Capture is open.
    iPhoto: How to Change the "Open Automatically" Preference
    If you find you can't change any of Image Captures preferences or can't access any drop down menus or they are greyed out, check to make sure Image Capture is loose in the Applications folder and not within a sub folder.
    Lori

  • Problem loading flv into FLVPlayBack

    Hello All,
    I have set up a test site at
    http://www.sinifdizi.com/test.html.
    When the page loads there is an error. When I look at the
    browser activity viewer it says my video
    http://www.sinifdizi.com/videos/sinif-bol-01_01.flv
    not found. BUT!!!! If you click the first button 'bölüm
    1' then the 'indik' button under '1. BÖLÜM - TANITIM 01'
    the file will download from the server.
    I have tried everything. The page works fine during testing
    but not online. Any thoughts.

    Instructions for adding FLV MIME
    type to IIS

Maybe you are looking for

  • Are the delays in iMessage fixed in IOS 7.1 ?

    For quite some time there are discussions about delays in iMessages. For me (iPhone 4S, IOS 7.0.4) iMessages started to show huge (up to 45 minutes) delays in communication with exactly one person (iPhone 4S). The problems suddenly showed up and were

  • Oracle 8.1.5 Memory bug!?!

    Hi ! I have a serious problem concerning the use of Oracle as db for upcoming projects. Current situation: - Platform: Windows NT 4.0 server - DB: Oracle 8.1.5 - JDBC: 1.1 which comes with the Oracle 8.1.5 Problem: - I have developed an ServletBased

  • Parts missing in PDF and AI

    When i send my ai or pdf-files, the receiver only can see (and most inportant) print part of the drawing. I tried to save is as a earlier version because the recever is working on cs5 (while i am working with cs6 on OS X 10.8.1) but no change in the

  • Execute query not working  in CALL_FORM

    Hi, I am opening FormA from FormB, when clicking a button, and pass the values to Form B, by using the global variables, and assigned these values in the pre-query of Form B, When clicking button Form B is opening, but nothing displaying, I need to c

  • Inconsistency in SLD

    Hi, How to find the inconsistencies in SLD Technical landscape. We have received the comments that there are some inconsistencies in SLD. The following technical systems must be registered in SLD and must refer to the same domain: Adapter Engine Doma