How to load the original manifest file

Hi I wrote an application. Is lanunched by webstart.
In the original jar file is set an property like a Program-version:1.5
after launching the application I can fread resources from "/resources/images/myimage", but I Cant read the from the manifest file.
just 2 properties: Manifest version and oanother one.
What can I do?

You have right! That is one of the advantanges of saying a lot
of things - I am regularly wrong, but the number
of times I am right, outnumbers them!
( Also, when I am wrong, I get to find out..
in public! ;)
Image url =
jar:http://www.theWebServer.com/file/path/myApplicatio
n.jar!/resources/images/logo.png
Manifest url =
jar:file:/C:/Program%20Files/Java/jre1.6.0/lib/javaws.
jar!/META-INF/MANIFEST.MF
Is not the same! :-))
It is true: The first time when I want to read the
manifest file. And I never imagene before: I read my
application image, and I cant read the same manifest
:-))Good. It is not good that they are 'not the same',
but that you are beginning to understand some
of the traps and pitfalls, and ways to find out what
is going wrong. That is progress.
But if in my main static method if I call:
Thread.currentThread().getContextClassLoader().getReso
urce("/resources/images/logo.png")
this URL is null !!
Why?
I know I should learn something about classloaders,
but when is changed the jnlp loader to a "normal"
classloader. when I launch only the .jar file I have
no problems, but I need webstart! :-)I am surprised it worked from within main(),
in a jar file - it usually would not work for loose
classes off the local file system (but that is a
whole other story, to do with classloaders).
In any case, I think Caffeine0001 recently posted
some source that should help out, here. Check out
the source example he(/she) posted in this thread..
http://forum.java.sun.com/thread.jspa?messageID=4510193
It shows a way to find the actual file-system location
of a resource (your image, in this case), from which we
might construct an URL directly to the MANIFEST.MF
that you actually need.
Have a look/play with that source, and see if you
can include it into your code, so that we can see
where the image is being cached to.

Similar Messages

  • How to export the original raw file?

    I have read a few threads about this but have not seen the answer.
    The original file from my camera (.PEF) now exists only in the Aperature library. I want to export a copy to my desktop so I can do some special processing with Pentax software. How do I export the original .PEF file? (Exporting Masters only gives me processed file types like TIFF and JPEG.)

    Export Version gives you a processed file such as a TIFF or JPEG.
    Export Master will give you a copy of the original RAW file.
    Please double-check that you used the correct export command...
    Ian

  • How to find the original RAW file # from a Lightroom exported JPG?

    Hello, this is in regards to a Lightroom 3.5 exported JPG. This was a year ago when I had been told it was best to export files with simple renumbering of them from 1 to x... instead of retaining the original RAW 4-digit file name.
    I've currently lost the original files, and need to do a search for them via these 4 digits to see if I have them tucked away in any of my drives. I downloaded a metadata explorer, and it's telling me all the lightroom editing information, and everything else, but somehow does not have the simplest of information — that 4 digit original file name.
    Am I grasping at straws or is there likely to be any way to find this information out? I don't work with metadata, so there wouldn't have been any customizations to how Lightroom configures this....hoping that's in my favor. Any help is much appreciated!!!!

    A note about security (context: downloaded apps & plugins...).
    Anatomy of a URL:
    protocol://stuff.stuff.stuff.domain.domain-suffix/stuff/stuff?stuff=stuff
    None of this stuff matters much except:
    domain.domain-suffix (and protocol, to some extent).
    So if you download something from:
    http://ignafradifcawhatyousay.toolonganyway.my.server.com/gogafnoics...
    It's coming from server.com using http (web) protocol.
    But, if you download it from:
    http://my.server.com.badguy.tv/...
    It's coming from badguy.tv, NOT server.com, so if you want it from server.com - danger will robins...
    And, if you download from
    http://216.195.245.134/my.server.com
    It's coming from an unregistered internet address (216.195.245.134) - again: danger...
    (4 groups of up-to-3 digits separated by dots is the format for a literal internet (IP) address, instead of domain-name...)
    Summary: if you learn the anatomy of a URL, and pay attention to the URL's you are clicking on, or entering directly, you can take more responsibility for security, and assure (to a greater extent) you don't download from an unfriendly source.
    Disclaimer: I accept no legal responsibility for anything that happens as a result of anything written above...
    Rob

  • Dreamweaver and PhoneGap: How to Edit the Application Manifest for an Android app

    I successfully created an Android app using dreamweaver cs6 and the PhoneGap build service.  I submitted the app and it is live in Google Play.  The only problem is that the app is requiring all kinds of permissions from users that are not necessary for the app.  The app requires Internet access, but it does not require access to the camera or the user's contacts, etc.  I understand that this information is held in the Application Manifest file, but I don't know where that file is.
    Can you help me figure out how to edit the Application Manifest file for my android app?
    Thanks,
    Michael

    To edit permissions, you do so in the config.xml file. After making changes, you can directly upload on build.phonegap.com or from within Dreamweaver.
    See this page for info on customizing config.xml: https://build.phonegap.com/docs/config-xml#features

  • How to Load the data from excel file(Extension is .CSV) into the temp.table

    Hi
    How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
    My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
    Kindly Suggest the Solution.
    Regards,
    Sachin

    Hello Sachin,
    You can use the following metalink note:How to Read Data from an EXCEL Spreadsheet into a Form Using Webutil Client_OLE2 (Doc ID 813535.1) and modify it a little bit.
    Instead of copy values into forms you can save them in your temporary table.
    Kind regards,
    Alex
    If someone's helpful or correct please mark it accordingly.

  • How to load the data from .csv file to oracle table???

    Hi,
    I am using oracle 10g , plsql developer. Can anyone help me in how to load the data from .csv file to oracle table. The table is already created with the required columns. The .csv file is having about 10lakh records. Is it possible to load 10lakh records. can any one please tell me how to proceed.
    Thanks in advance

    981145 wrote:
    Can you tell more about sql * loader??? how to know that utility is available for me or not??? I am using oracle 10g database and plsql developer???SQL*Loader is part of the Oracle client. If you have a developer installation you should normally have it on your client.
    the command is
    sqlldrType it and see if you have it installed.
    Have a look also at the FAQ link posted by Marwin.
    There are plenty of examples also on the web.
    Regards.
    Al

  • How to load the data from excel file into temprory table in Forms 11g?

    Hi
    How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
    My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
    Kindly Suggest the Solution.
    Regards,
    Sachin

    Declare
        v_full_filename         varchar2(500);
        v_server_path           varchar2(2000);
        v_separator             VARCHAR2(1);
        v_filename              VARCHAR2(400);
        filename                VARCHAR2 (100);
        v_stop_load             varchar2 (2000);
        v_rec_error_log         varchar2(4000);
        v_error_log             varchar2(4000);
        ctr                     NUMBER (12);
        cols                    NUMBER (2);
        btn                     number;
        RES                     BOOLEAN;   
        application             ole2.obj_type;
        workbooks               ole2.obj_type;
        workbook                ole2.obj_type;
        worksheets              ole2.obj_type;
        worksheet               ole2.obj_type;
        cell                    ole2.obj_type;
        cellType                ole2.OBJ_TYPE;
        args                    ole2.obj_type;
        PROCEDURE olearg
        IS
        args   ole2.obj_type;
        BEGIN
        args := ole2.create_arglist;
        ole2.add_arg (args, ctr);                                
        ole2.add_arg (args, cols);                                   
        cell := ole2.get_obj_property (worksheet, 'Cells', args);
        ole2.destroy_arglist (args);
        END;
    BEGIN
    v_full_filename := client_get_file_name(directory_name => null
                                     ,file_name      => null
                                     ,file_filter    => 'Excel  files (*.xls)|*.xls|'  
                                                                            ||'Excel  files (*.xlsx)|*.xlsx|'                                                                 
                                     ,message        => 'Choose Excel file'
                                     ,dialog_type    => null
                                     ,select_file    => null
    If v_full_filename is not null Then
    v_separator := WEBUTIL_CLIENTINFO.Get_file_Separator ;
    v_filename := v_separator||v_full_filename ;
    :LOAD_FILE_NAME := substr(v_filename,instr(v_filename,v_separator,-1) + 1);                                
    RES := Webutil_File_Transfer.Client_To_AS(v_full_filename,"server_path"||substr(v_filename,instr(v_filename,v_separator,-1) + 1));     
    --Begin load data from EXCEL
    BEGIN
        filename := v_server_path||substr(v_filename,instr(v_filename,v_separator,-1) + 1); -- to pick the file
        application := ole2.create_obj ('Excel.Application');
        ole2.set_property (application, 'Visible', 'false');
        workbooks := ole2.get_obj_property (application, 'Workbooks');
        args := ole2.create_arglist;
        ole2.add_arg (args, filename); -- file path and name
        workbook := ole2.get_obj_property(workbooks,'Open',args);
        ole2.destroy_arglist (args);
        args := ole2.create_arglist;
        ole2.add_arg (args, 'Sheet1');
        worksheet := ole2.get_obj_property (workbook, 'Worksheets', args);
        ole2.destroy_arglist (args);
        ctr := 2;                                                     --row number
        cols := 1;                                                -- column number
        go_block('xxx');
        FIRST_RECORD;  
        LOOP       
                --Column 1 VALUE --------------------------------------------------------------------
            olearg;
            v_stop_load := ole2.get_char_property (cell, 'Text'); --cell value of the argument
            :item1 := v_stop_load;
            cols := cols + 1;                                                      
              --Column 2 VALUE --------------------------------------------------------------------
            olearg;
            :item2 := ole2.get_char_property (cell, 'Text'); --cell value of the argument
            cols := cols + 1;
            --<and so on>
        ole2.invoke (application, 'Quit');
        ole2.RELEASE_OBJ (cell);
        ole2.RELEASE_OBJ (worksheet);
        ole2.RELEASE_OBJ (worksheets);
        ole2.RELEASE_OBJ (workbook);
        ole2.RELEASE_OBJ (workbooks);
        ole2.RELEASE_OBJ (application);
    END;
    --End load data from EXCELPlease mark it as answered if you helped.

  • How  to load the data from excel  file  into table in oracle using UTL_FI

    How to load the data from excel file into table in oracle
    and from table to excel file
    using UTL_FILE package
    Please give me some example

    This is something i tried in oracle apex
    http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    Regards,
    CKLP

  • Where are these unix executable files coming from and how do I recover the original text file?

    where are these unix executable files coming from and how do I recover the original text file?

    When you upgraded to Lion did you have AppleWorks installed on your mac?
    Most of the AW documents can be opened by Pages 09 or Numbers 09 with most of the orginal format in tact. (I do not know if previouse verision will work) just open the AW file with both and see which one works best.
    Text Edit will also open most of the AW files as well but will require a lot of work to restore them to their orginal format.
    If you have AW Database documents then they are not supported. 
    These document show up as "exec icons", Kind: Unix Executagle File.
    They also will show up as .cwk file if they are small files. I have a couple that were under 1mb that are shown as " Kind: AppleWorks Document" but will not open.
    The only option to open AW database is to have AW installed on a mac with a pre-Lion OS to recover the file.

  • How do I revert to replaced audio files being saved with the project file, *not* with the original audio files?

    In the latest release, when you send an audio clip to Audition, the newly created audio clip - which was previously saved in the same folder as the project file - is saved next to the original audio file.
    Makes sense, but for reasons to boring to go into, it's a major headache for my workflow, because it means combing through folders to find the files, instead of having them all in once place.
    So how to I turn this off and revert to those files being saved next to the project file?

    Hey Steve,
    You'll want to connect your phone to your computer and sync it in iTunes. You can read more about it here:
    iOS: Syncing your data with iTunes
    http://support.apple.com/kb/HT1386
    Welcome to Apple Support Communities!
    Have a good one,
    Delgadoh

  • I was using photoshop CC as normal, when suddenly it started going haywire. It has corrupted all the one PSD files by distorting the images and colour. Does anyone know how to recover the original images?

    I was using photoshop CC as normal, when suddenly it started going haywire. It has corrupted all the open PSD files by distorting the images and colour. They are now completely unrecognisable and unusable. Does anyone know how to recover the original images as I was saving them as I went along but the files are now corrupt?

    What version of Photoshop are you running?
    I've seen a couple of instances over the last week or two where Photoshop has added masks, strange colours and also merged content from two separate PSD files that were open at the same time.
    This has occurred on two different iMacs, (both 10.10.x) running Photoshop CC 2014.2.2 (20141204.r.310 x64).
    see image below for example:

  • How do i make a compilation in itunes without ruining the original record files

    i am trying to make a compilation in itunes as a christmas present...  i was hoping to create a whole new "album".  but every time i try it either 1. puts the songs in alphabetical order 2. changes the original album file.  Is there a program out there i can use to create a digital compilation?  I have a hankering to make a mixed tape - but somehow do it in the digital age.
    please help!

    gah!!! wrote:
    i am trying to make a compilation in itunes as a christmas present...  i was hoping to create a whole new "album".  but every time i try it either 1. puts the songs in alphabetical order 2. changes the original album file.  Is there a program out there i can use to create a digital compilation?  I have a hankering to make a mixed tape - but somehow do it in the digital age.
    please help!
    Gah,
    The best way to do that is to make a copy of each song.  Leave the tags in the originals alone, but in the mixtape copies change the Album name (something like "Gah's Christmas MIxtape") and the Album Artist ("Compiled by Gah").

  • How to load the sequence file from the process model?

    Does anyone have an example process model that loads a sequence file? The out-of-the-box process models assume the sequence file is already loaded. I want the process model to identify the UUT type and load the appropriate sequence file based on that.

    Mark,
    A better solution to your question can be accomplised if you have TestStand 2.0.
    Within the entry point of a process modle you can set the client sequence using Execution.ClientFile(). This is a new method of TestStand 2.0. It was specifically designed so that you could dynamically set the client sequence within the process model.
    Currently the entry points in the default process models (i.e. Test UUTs and Single Pass) are configured to Show Entry Point When Client File Window is Active. This means that you must open and have active a client sequence file before you can execute one of the entry point. You probably do not want this implementation if you are going to set the client file during the entry point execution. To change this you will need to go the sequence properties of your entry point (while the sequence is open select Edit>>Sequence Properties), switch to the Model tab of the entry point's property dialog box, and enable Show Entry Point For All Windows. The entry point will then appear whether or not you have an open sequence file active.
    You will need to add at least 3 steps to your entry point sequence that all use the ActiveX Automation Adapter. Remember that MUST disable Record Results for any step you add to the process model. The 3 steps will perform the following tasks:
    1) Obtains a sequence file reference of the file that you want to be the client sequence file. You will need to use the Engine.GetSequenceFileEx method. You will need a local variable (ActiveX data type) in which to store the sequence file reference.
    2) Set the client sequence file using the Execution.ClientFile property.
    3) Close the reference to the client sequence file in the Cleanup step group of your entry point sequence using Engine.ReleaseSequenceFileEx
    I am attaching a SequenceModel.seq file (the default process model in TestStand 2.0) in which we have modified the TestUUTs entry point as described above.
    Note that you'll be prompted to enter the path to your client sequence file. This is a message popup that you can delete and it was added for your review only.
    Good luck in your project,
    Azucena Perez
    National Instruments
    Attachments:
    sequentialmodel.seq ‏164 KB

  • HT3842 Does iTunes store the original music file and copy it into a separate folder? If i delete the original file from finder will it remove it from my iTunes library?

    Hi, on my last PC when transferring music to my new MacBook Pro i noticed i had about 6 duplicated of each song in every album i took hours in removing them.
    I Just wondered Does iTunes store the original music file and then copy it into a separate folder?
    If i delete the original file from finder will it remove it from my iTunes library or vice versa. I didnt want to lose any music like i have some how managed to on my old computer.
    Or should i keep both files of it in the Music folder and also iTunes library folder?
    Which is best ?

    DrewPowell wrote:
    I Just wondered Does iTunes store the original music file and then copy it into a separate folder?
    It does both at the same time.
    When you add files to iTunes, it copies them into /Music/iTunes/iTunes media/ folder. The original file remains where it was.
    You can drag a file to /Music/iTunes/iTunes media/Automatically add to iTunes/ folder.
    This will add to iTunes and move it to /Music/iTunes/iTunes media/.
    I keep a shortcut of this folder on my desktop then simply drag files to the shortcut to add to iTunes.
    Then there are no "extra" files around.

  • How to get the most current file based on date and time stamp using SSIS?

    Hello,
    Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
    Thanks
    thx regards dinesh vv

    hi simon
    i excuted this script it is giving error..
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            The execution engine calls this method when the task executes.
            To access the object model, use the Dts property. Connections, variables, events,
            and logging features are available as members of the Dts property as shown in the following examples.
            To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
            To post a log entry, call Dts.Log("This is my log text", 999, null);
            To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
            To use the connections collection use something like the following:
            ConnectionManager cm = Dts.Connections.Add("OLEDB");
            cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
            Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
            To open Help, press F1.
            public void Main()
                string file = Dts.Variables["User::FolderName"].Value.ToString();
                string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
                System.IO.FileInfo finf;
                DateTime currentDate = new DateTime();
                string lastFile = string.Empty;
                foreach (string f in files)
                    finf = new System.IO.FileInfo(f);
                    if (finf.CreationTime >= currentDate)
                        currentDate = finf.CreationTime;
                        lastFile = f;
                Dts.Variables["User::LastFile"].Value = lastFile;
                Dts.TaskResult = (int)ScriptResults.Success;
    thx regards dinesh vv

Maybe you are looking for

  • Selection-Screen  - F4

    my requirement is <b>in my program i have 2 select-options 1.Company code (s_bukrs) 2.Portfolios (s_pfolio)</b> these two are maintained in a Ztable a)if we press F4 on Company code it has to show d values from Ztable-company code, and also b) i)if w

  • Problem changing email address

    All I wanted to do was update my email address.  Went to Profile and entered the new email.  Then it said postal code was required, so I put that in.  Then it said my password was wrong, but I was actually not able to enter the password due to that b

  • Quality Practices in OAF

    Hi, This is not normal Question and Answer thread. It focuses about quality aspects of OAF Work. I may try to put a list of resources about quality practices in OAF, which can be useful for beginners and experienced users as well. Even though the inf

  • How can I get an install of 10.7.5 for my MacPro 1,1

    I have a MacPro 1,1 which was working just beautifully until a few days ago when my email was hacked and I am certain that something is going on with the machine.  It crawls with operations it used to breeze through.  I've installed virus protection

  • Need help with jar files

    I have made an application that uses the javax.comm library for serial port drivers. It works perfectely but when I put all the .class in a .jar and start the application it starts properly with no errors but it doesn't see the com's of the computer.