Unable to access gif files from the server

hi all,
i have successfully signed an applet and it is loading in the client system also. in that applet, i instantiated a jbutton as given below:
JButton jb = new JButton(new ImageIcon("http://192.168.91.154:8080/success/set.gif"));
but the icon din appear and a blank button appears, even when accessed from the server system.
if i give the exact path like c:/blazix/webfiles/success/ set.gif, the icon is coming in the server system but not in other systems. i tried without port no also but in vain. pl solve my problem. what i need is how to
specify the path of the file[any file] which is present in server.
or if i put all the gif files in the jar file, can i access the gif files present in the jar file [set for archive] ? if i can, give me the soln for accessing the gif file present in the jar file, so that i need not access the server to get the gif files.(i.e) how to specify the path of the gif files present in the jar file?
i ve one more doubt. the jni library file shld be in the server, and the client has to access the library in the server. i think the applet loaded in the client ll search for the library in the local m/c only . how to make the applet to search for library in the server??
i feel only by using rmi we can solve this problem. am i correct? if so i feel that an appln or applet running in the server shld access the jni library, and the applet in the client side should communicate with this server appln using rmi to get the data.is it correct? is there
anyother way?
i appreciate your help in this regard. thanks in advance. bye, padmanbhan.

Better information on what you are doing with JNI might help you get an answer.
If you have some server process that needs to use JNI, then I would code a servlet to call, instead of using RMI to ge there.
Depending on your environment, and the target audiences environment, RMI may just cause you a lot of grief. Firewalls etc, get in the way of RMI connections and force security holes to be opened in order to work.
If you use a servlet, then traffic to your server process is done via standard http calls, which will already be enabled, because your app runs in a browser.
If ther data requirements are heavy duty, your server could always send an XML stream to the client, which would allow you to describe complex data to the client.
Running JNI stuff from the client directly means a lot of local infrastructure to run your app. The code you want to run, the JNI library ....
If what you have is really an application, but want the convenience of starting it from a browser, look at Java WebStart. Then you can distribute an application via the browser, and WebStart will worry about the deployment issues for you.
In Summary:
Stay away from RMI from applets if you can help it.
If you really have an App, then try WebStart to manage the distribution issues for you.

Similar Messages

  • Mac mini Server 10.6  unable to search for files on the server from desktop.

    I'm running Mac mini Server 10.6 with 15 various Apple Mac desktops 10.4 / 10.6. The problem i'm having is that i'm unable to search for files on the server from any of the desktops. I have fixed permissions and rebooted. I can perfomr a search though command - F and spotlight from the server.
    Anyone have any ideas?

    I have a Mac mini server with Mac osx 10.6.8 installed --- I have a website {UNDER CONSTRUCTION} installed on it with a REGISTERED DOMAIN NAME belizeansworldwide.com -->[DNS service w/GoDaddy]  & DSL INTERNET service  w/VERIZON --- {My server is the ONLY DEVICE CONNECTED to my VERIZON DSL router/modem}
    When I enter my DOMAIN NAME or WAN IP # in my browser(s)--> Chrome OR Safari -- i get my Verizon modem
    set-up page-->{this incl the WAN IP# as I expected}----{NORMALLY I WOULD ACCESS MY Actiontec
    modem/router via 192.168.1.1} --- While in that webpage there's an option "shared files/folders"   & clicking on that option DISPLAYS MY WEBSITE --->  {"PORT FORWARDING DID NOT RESOLVE THAT"}
    My next attempt @ a solution was through my Server's SystemPreference>Sharing>Internet Sharing
    & this the Original Object of my post ===>  "MY SHARING PANEL DOES NOT INCLUDE THE OPTION
    FOR   'Internet Sharing' among the others like CD DVD, Remote Login,Remote Management, Bluetooth Sharing, etc.etc ---- Hope this additional info will help to clarify  &/or explain my problem
    Thanks, & best regards to you & yours

  • Is there a way to open Excell file from the server and display in the UI and save it back on to the

    Hello there,
    Is there a way to open Excell file from the server and display in the UI and save it back on to the server? (like showing xell file as a datagrid - add rows, columns etc.)

    Hi Mike,
    Welcome you to the forum.
    You may try:
    SELECT * FROM MyDBNameHere.dbo.OUSR T0
    Thanks,
    Gordon

  • The circuit of my macbook is dead yet the hard drive is fine.  I need to access a file from the hard drive, how can i do this? is there a cable i can connect to another mac that will let me transfer the file?

    The circuit of my macbook is dead yet the hard drive is fine.  I need to access a file from the hard drive, how can i do this? The mac turns on the screen freezes as bright blue.  Is there a cable i can connect to another mac that will let me transfer the file?

    There is another option if the Macbook will start up in Target Disk Mode.
    Restart the computer while holding down the T key. If you see the firewire symbol moving around on the screen you can connect this one to another one in TDM. You will need a suitable cable to connect the two Macs.
    http://support.apple.com/kb/ht1661
    Firewire symbol:

  • The dialog box open twice when open file from the server

    I use the following code to download/open file from the server:
    <%
    String filename = "MengxianhuiDocTest.doc";
    String filepath = "D:\\";
    response.setContentType("APPLICATION/OCTET-STREAM");
    response.setHeader("Content-Disposition",
    ??attachment; filename=\"" + filename + "\"");
    java.io.FileInputStream fileInputStream =
    new java.io.FileInputStream(filepath + filename);
    int i;
    while ((i=fileInputStream.read()) != -1) {
    out.write(i);
    fileInputStream.close();
    out.close();
    %>
    If the application runs, the Open or Save dialog box display.When I select open the file,
    the dialog box will display twice.
    Pls help me.
    Thanks.

    thx
    but I tried it and it did't work.
    The dialog box also display twice.

  • How can open a html, pdf files from the server (c:\foldername\filename)

    Hi all,
    I am developing an application. in this app i have to implement RMI.
    My problem is this, How can a client open a files from the server.
    all the html, pdf files are stored in the server's directory like C:\audit\filename.
    There is a folder on the server's C directory which contains all the html , pdf files.
    please tell me how can a client open a file from the server using RMI.
    Please send me the solution as soon as possible.
    Thanks & Regards
    Bhavishya

    That's doing it the hard way. Why not use HTTP or FTP?

  • How to download a pdf file from the server from an strut application?

    Hi,
    I wan to download a pdf file from the server side to local system. Please help me how i use the down load option.

    Read up on the Struts download action [1].
    And next time, please post in the relevant forum, one of the web-tier ones [2].
    [1] http://wiki.apache.org/struts/StrutsFileDownload
    [2] http://forum.java.sun.com/category.jspa?categoryID=20
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    ----------------------------------------------------------------

  • How to download a text file from the server

    hi everyone,
    can anyone tell me how to download and read a text file from the server and saved in into resource folder.
    with regards
    pallavi

    its really easy
    To read from server, use something like:
    HttpConnection connector = null;
    InputStream inp_stream = null;
    OutputStream out_stream = null;
    void CloseConnection()
         if(inp_stream!=null)inp_stream.close();
         inp_stream=null;
         if(out_stream!=null)out_stream.close();
         out_stream=null;
         connector.close();
         connector = null;
    public void getResponse(String URL,String params)
      try
         if(connector==null)connector = (HttpConnection)Connector.open(URL);//URL of your text file / php script
         connector.setRequestMethod(HttpConnection.POST);
         connector.setRequestProperty("User-Agent","Profile/MIDP-2.0 Configuration/CLDC-1.1");
         connector.setRequestProperty("content-type", "application/x-www-form-urlencoded");
         //connector.setRequestProperty("charset","windows-1251");
         //*** If you need to send ("arg1=value&arg2=value") arguments to script use this:
         out_stream = connector.openOutputStream();
         byte postmsg[] = params.getBytes();
         out_stream.write(postmsg);
         int rc = connector.getResponseCode();//in any case here connection will be opened & closed
         if (rc != HttpConnection.HTTP_OK)
              CloseConnection();
              throw new IOException("HTTP response code: " + rc);
         inp_stream = connector.openInputStream();
         int pack_len = inp_stream.available();
         byte answ[]=new byte[pack_len];
         inp_stream.read(answ);
         CloseConnection();
         ProcAnswer(answ);//process received data
      catch(Exception ex)
         System.err.println("ERROR IN getResponse(): "+ex);
    } And you can read from resource file like
    public void loadFile(String filename)
        DataInputStream dis = new DataInputStream(getClass().getResourceAsStream("/"+filename));
        String str="";
        try
             while (true)
                ch = dis.read();//read character
                if(ch=='\r')continue;//if file made in windows
                if(ch=='\n' || ch==-1)//end of line or end of file
                    if(str.length()==0)continue;//if empty line
                    //do some thing with "str"
                    if(ch==-1)break;//it was last line
                    str="";//next line
                    continue;
                 str+=(char)ch;
           dis.close();
       catch (Exception e)
           System.err.println("ERROR in loadFile() " + e);
    }Welcome! =)
    Edited by: MorskoyZmey on Aug 14, 2008 3:40 AM

  • Desinger Workflow 2010: Unable to load workflow actions from the server. Please contact your server administrator?

    Hello,
    I am facing a problem from last some days..
    When I am trying to open/create/update workflows from Designer 2010, then designer giving me an error "Unable to load workflow actions from the server. Please contact your server administrator".
    I researched on internet for this error and found some possible reason like
    Login user Permission issue
    Error in custom actions
    So that I checked for permission for login user, but it has administrator rights. and I tried to open workflow by removing custom activity code, but still exist.
    also if I tried to create/update workflow for another site on same server then it works without any problem.
    Can anybody please help me?
    Many thanks,
    Nitin
    N i T i N

    Hi NiTiN4u,
    Thanks for your post.
    First, here are some troubleshoot workflow error form Microsoft site:
    http://office.microsoft.com/en-gb/sharepoint-designer-help/troubleshoot-workflow-errors-HA010237912.aspx#BM20
    Second, have you tried to close the site and open it again in SharePoint Designer 2010?
    Third, try to restart your IIS and share the results.
    SharePoint 2010

  • Cant open doc files from the server on MacBook Air after upgrading to Maverick

    Cant open doc files from the server on MacBook Air after upgrading to Maverick, I can only open up docx file. Thank you!

    Thanks for the suggestion! I don't use Phantasm or VectorScribe (or any Astute Graphics plugins for that matter). I do, however, have a Wacom tablet and have a few plugins that concern using Blurb Book Creator as well as LiveSurface Context.
    I did the very unfortunate and foolish act of upgrading to Maverick without a backup, so postponing isn't an option for me.
    I geuss my question at this point would be, would it be worthwhile to wipe all the adobe products from my harddrive and re-install them? Or would that be a useless endeavor.
    I don't have an external hard-drive so backing up and re-installing the entire OS would be a bit much. Any suggestions?

  • TS1402 I can not copy any files from the server & from the Finder. System MAC OS 10.7.5

    I can not copy any files from the server & from the Finder. System MAC OS 10.7.5
    <Email Edited by Host>

    Hi, what is the no boot directory found about???
    Can you give details step by step of what you're trying?

  • Download ECS files from the server

    Currently we have production on Oracle Application Server Integration B2B, Release 10.1.2, Build B2B_10.1.2.4.0_GENERIC_100714.
    Is there a way to download current ECS files from the prod server?
    Regards,
    Suneel Jakka

    Download ECS files from the server
    Regards,
    Anuj

  • To access a file from FTP Server

    Hi All,
    I hav a requirement where i have to download a file from an FTP server(Windows based). I'm able to list all the files that are there in the current directory of the FTP server using the command 'LIST'. the required file is present in that list. But whenever i tried accessing that particular file, it is saying that the file is not found. I identified an open issue in this. When i tried to identify whether it is a directory or a file from the list which is returned by the command LIST , I observed that it is not identified as a file (Directory starts with d, File starts with '-' etc). Can any one help me in resolving this issue. it wud b gr8 if anyone gives me the code for this requirement.
    Any help wud b appreciated.
    Thnx in Advance
    Anil

    .. that the file is not found. That would suggest that you are accessing it incorrectly.

  • Unable to Find Shared Files on the Server

    Hello world,
    I am using Mac in my office and suddenly when I open our company's shared folders, my Mac finder doesn't show latest added files by my colleagues.
    I tried the following with no success:
    Restart.
    Disconnect from the server and reconnect.
    Relaunch the finder.
    Kill the finder using the Terminal.
    My company uses "small business server SBS 2008", and everything was working perfect until I installed "security update 2015-002 V. 1.0"!
    Please help.

    Well seems like this was a bug that was fixed in SQL 2012 Service Pack 2! I've just applied it to the system in question, and it works as it should now.
    At least this information is up here for others who may encounter it now!

  • How do I delete my iCloud email without deleting the files from the server?

    I want to delete my iCloud email from a laptop I don't use much anymore. I am afraid if I do all the files will delete from the server as well. Is this true? If not, what are the best ways to go about deleting the account without harming the files on the server (in turn deleting all my email from synced iCloud devices)?

    In Mail, delete the account, the server side will not be changed.

Maybe you are looking for

  • Problem in Data Display in Dynamic ALV Report

    Hi all, I am developing a Dynamic ALV report where I want display material batch (zjpack_base-charg) in column and Material (zjpack_base-matnr) & Qty (Zjpack_base-netwr) field row wise.My intention is to show report datewise for a material how many b

  • Scanner recognition

    Hello, PSE9 apparently can't see my Microtek ScanMaker 6800. It says there's no compatible device connected. PSE7 and all my other programs are having no problem with seeing the scanwizard driver and utility. I'm running WIN7 Ultimate 64. Thanks for

  • When creating new database, start nomount, got error to say: ORA-00371:

    when i do sql> startup nomount ORA-00371: not enough shared pool memory, should be atleast 52132659 bytes i am trying to create a second database on the backup server.

  • Typing hang ups on Iphone 3G??

    sometimes when I am typing texts or sending emails that the text is very far behind my typing and very slow to catch up. I usually hold down the home button to completly close the program within the Iphone. I even sometimes have to do a full reset (h

  • Photodownloader - Error in sequencing files copied from CF Card

    I'm a relatively new user of Bridge and the Photodownloader there (although I've used Elements and it appears to be very similar).  I've noticed that when I copy files from my CF card (from  nikon 300s) that the sequence of the file names on the CF c