Can I change the Jar contents trough Java code ?

It may seems a little bit wierd, but it could solve a lot of acessibility problms....
Can I change/set the jar contents using java code ?
My real problem: I'm creating a EDI Client and using a XML file as configuration file. It's running well but this XML is much exposed to unauthorized users....
Can I set a value in this XML file if it is inside a jar file ??

you can look at class JarOutputStream . You could also use class RunTime to just create a new jar with the proper files via the normal jar command.

Similar Messages

  • How can i change the phonenumber for my security code in keychain on ios 7.03

    how can i change the phonenumber for my security code in keychain on ios 7.03?

    i have changed the phonenumber under icloud preferences keychain. after the update on ios 7.03 there is no sms arriving for the security code because there is a double international code in the telephone number like +49 +49. How can i fix this?

  • How can I change the desktop wallpaper from Java?

    Hello!I'm coding an image viewer and I need to be able to set an image as an desktop wallpaper.What ways can be used to do this?Thank you

    If Java does have a platform-independent way of doing this, it'll be in the [JDIC (Java Desktop Integration Components)|https://jdic.dev.java.net/] library

  • HT3069 How can I change the content list when I change residence country?

    I bought an Apple TV in Mexico but came to came to the US to work on a project, so I brought my Apple TV with me. I already changed the credit card to an American one and all the country settings, but it still displays the Mexican list. How can I change the movie content?

    Purchases will be tied to the original account. Your US account will not have access.
    If your Apple TV is not displaying US content make sure the Apple TV location settings are correct. DNS should be on automatic.

  • Can we change the label of Java Web start at the time of downloading applic

    can we change the label of Java Web start at the time of downloading application?
    At the time of downloading application(jar files) java web start shows "Downloading Application" lable on it window , so can we change it so some other..

    The 'splash' screen might be of interest to you.
    Here is the quick description from the FAQ.
    <http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/faq.html#206>
    Section 3.5 of the JNLP Spec. has more details on using a splash screen for an application.
    (But if you mean changing the very first screen seen when downloading an application the first time, the answer is 'no'.)
    Late addendum..
    By the way - now I review your question, I note you stress 'while jars are downloading'.
    There is another strategy you might take. Mark most of the application jar's as 'lazy' download, get the main GUI on-screen quickly, then use the JNLP API's DownloadService to fetch the rest of the jars, after the application is running.
    This has the advantage that, then we can have complete control of whatever is shown on the screen during the bulk of the downloads. We might show ..a 'splash screen', or a dialog with the application name on it, or a progress dialog, ..or any combination of the three.
    Edited by: AndrewThompson64 on Oct 22, 2007 3:01 PM

  • How can i change the OS input language though java

    hi,
    i am working on Windowx XP and for multiple language input support i am using the windows language bar.
    How can i change the input language through the java itself.

    hi,
    for a solution:
    logText.getInputContext().selectInputMethod(Locale.FRANCE)

  • Can we change the setting of Internet Explorer by Java Script?

    Can we change the setting of Internet Explorer by java script?.
    For e.g: I need to make the "Initialize and script control not marked as safe" as enabled by using java script code.
    Please suggest me is it possible?
    Thanks,
    Manisha

    Thanks everybody.
    My requirement is to push data of a grid to Excel by clicking a button. I have written code in javascript. But if the option in Internet Explorer "Initialize and script controls not marked as safe" is disabled , i am not able to push data to Excel.
    It is possible only this option is enabled.
    So tried to push data by write code: document.appletname.saveAsCSVFile();
    But i am not getting data in Excel in correct format.
    It is coming as : first row: Column name1, " column name 2",...
                             2nd row: value1, "value2",.....
    Any ideas on this?
    Thanks,
    manisha

  • Can I change the content of the home page ?

    Hello,
    Can I change the content of the home page ( http://127.0.0.1:8080/apex ) ?
    Can I change the text ?

    You can add a message to the login page by signing on as SYSTEM and navigating to Administration -> Manage Login Message. The text displays on the lower left of the Login page.
    Steve

  • How can I change the default application for a content type?

    Running a version of Linux, the default application for PDF files is "Use Document Viewer (default)", which appears to be /usr/bin/evince. I'd much prefer to use /usr/bin/okular; how can I change the default. This question is NOT about how to change the function that is automatically applied when I access a link, in this case "Preview in Firefox", but rather to the default application that I can select when I download a file being viewed in Firefox's previewer.

    This is real progress, a solution to the problem as posted. The command:
    xdg-mime default okularApplication_pdf.desktop application/pdf
    makes okular the default.
    However when I added okular to the choices for applications in:
    * Edit>Preferences>Applications>PDF
    the popup box that appears when I click Download on the preview page changed. The pulldown menu that appears next to "Open with" used to have 3 entries:
    # Document Viewer (default)
    # Acroread
    # Other
    Now it has only 2:
    # Okular (Default)
    # Other
    I'd like it to read
    # Okular (Default)
    # Acroread
    # Other
    How can I control the entries in this pulldown list?
    Also, how can I make the default choice in the popup box be
    * Open With <whatever> , rather than
    * Save File ?

  • How can I change the policy file?

    I have designed an applet to read a file from the local Machine.
    This applet thro a servlet reads the contents of the file specified.
    I use Tomcat 4.1.12 server and this is an client-server application.
    To read the file in the local machine, I set the permission as follows in the .java.policy file in the Local Machine.
    grant codeBase "http://MyMachine:8080/Example" {
    permission java.io.FilePermission "<<ALL FILES>>", "read, write, delete, execute";
    as the applet file is in the Example of the server "MyMachine".
    Its working and my applet is able to read the file from the local machine it runs.
    Now my problem is I cannot set/change the policy file in every machine where my applet runs.
    Instead if there is a way to change the policy when the applet downloads,that'll be effective.
    That is I donot want to go and change the policy file manually in each and every machine where my applet runs(I donot even know which are the machines going to run the applet).
    Is there any means to acheieve my need?
    Please explain me in detail or direct me to the relevent web sites or links.
    Thank you

    Hi Hosuke,
    I had the same problem, thanks for the advise.
    Still I have a remark to make.
    The thing is that, in order for the applet to have the permission granted (for whatever), you need to have a policy file which you can include in the JAR file (like you explained before) AND also you need to add an entry in the java.security file (located for me: "C:\Program Files\Java\j2re1.4.1_01\lib\security\java.security") that tells the applet where to find all the .policy files.
    Something like: policy.url.4=file:/c:/java.policy
    But since we are talking about an applet we are not able to make changes to this file.
    Maybe you or anyone else knows a workaround for this problem.
    Thanks in advance,
    Ronald Vromans.

  • How can I change the setting to one appropriate to java1.2

    Hello.
    I am using WebLogic 4.5.1 .
    and recently started to use JDK 1.2 instead of JDK 1.1.7.
    So, I set [start]-[weblogic]-[Choose1.2JRE] in environment.
    and then, if I execute T3Server, the message of
    "javai.dll class path cannot be found " is displayed and the server is not
    loaded.
    However, javai.dll was in java1.1.X\bin.
    I can assume that a setting is to java1.1.X.
    --> How can I change the setting to one appropriate to java 1.2
    It's my environment
    ClassPath
    .;c:\weblogic\classes;C:\weblogic\lib\weblogicaux.jar;C:\weblogic\license;c:
    \weblogic;C:\weblogic\myserver\clientclasses;C:\weblogic\myserver\serverclas
    ses;C:\weblogic\myserver\servletclasses;C:\weblogic\mssqlserver4\classes;c:\
    weblogic\classes\boot;C:\weblogic\eval\cloudscape\lib\cloudscape.jar;c:\rmi-
    iiop\lib\iioprt11.jar;c:\rmi-iiop\lib\iioprt.jar;c:\rmi-iiop\lib\rmiorb.jar;
    C:\jsdk2.1\runner.jar;C:\jsdk2.1\servlet.jar
    Path :
    %SystemRoot%\system32;C:\jdk1.3bin;c:\weblogic;c:\weblogic\bin;
    c:\;c:\bat;c:\util\;C:\jsdk2.0\bin
    Hyung Gi Min

  • How can i change the particular node color in Jtree?

    I have constructed the tree.i dont know how to set the color for the particular node then how can i change the particular node icon depends on some conditions like if we will give the input whether it is available in jtree that node icon only changed.Anyone please help me as soon as possible.

    hi,
    i saw that tutorial.from that book i dont get the particular node cell renderer.i got a cell renderer for tree only.i attached my code in this mail.pls see and help me if u will do
    mport pack.Prop;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.Font;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.Properties;
    import java.util.Set;
    import java.util.StringTokenizer;
    import java.util.Vector;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JScrollPane;
    import javax.swing.JTree;
    import javax.swing.UIManager;
    import javax.swing.text.Position;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeCellRenderer;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.MutableTreeNode;
    import javax.swing.tree.TreeCellRenderer;
    import javax.swing.tree.TreePath;
    public class ReadProperty3 extends JFrame{
    String str,key;
    static JTree tree;
    static Vector v;
    StringTokenizer st;
    static DefaultMutableTreeNode root;
    DefaultMutableTreeNode t;     
    public Object[] o;
    public static void main(String[] args) throws IOException {
    ReadProperty3 r = new ReadProperty3();
    Prop p=new Prop();
    JFrame f=new JFrame();
    p.show();
    Object[] o=v.toArray();
    int startRow = 0;
    String prefix =p.s;
    TreePath path = tree.getNextMatch(prefix, startRow, Position.Bias.Forward);
    //if(prefix.equals(root.getChildAt(0).toString()))
    if(prefix.equals("2000"))
         System.out.println("Node 2000 found");
         else if(prefix.equals("3000"))
              System.out.println("Node 3000 found");
         else if(prefix.equals("4000"))
              System.out.println("Node 4000 found");
         else
              System.out.println("Node not found");
         for(int i=0;i<v.size();i++)
              //((DefaultTreeModel)tree.getModel()).reload();
              DefaultTreeCellRenderer ren=(DefaultTreeCellRenderer)tree.getCellRenderer();
              Icon openIcon = new ImageIcon("C:/apache-tomcat-5.5.12/webapps/jsp-examples/images/execute.gif");
              Icon closedIcon = new ImageIcon("C:/apache-tomcat-5.5.12/webapps/jsp-examples/images/execute.gif");
              Icon leafIcon = new ImageIcon("C:/apache-tomcat-5.5.12/webapps/jsp-examples/images/read.gif");
              if(o[0].equals(p.s))
                   ren.setBackgroundSelectionColor(Color.MAGENTA);
                   ren.setBackgroundNonSelectionColor(Color.YELLOW);
                   //ren.setTextSelectionColor(Color.YELLOW);
                   //ren.setTextNonSelectionColor(Color.BLUE);
                   ren.setClosedIcon(closedIcon);
                   ren.setFont(new Font("Impact",Font.ITALIC,14));
              else if(o[1].equals(p.s))
                   ren.setLeafIcon(leafIcon);
                   ren.setFont(new Font("Impact",Font.ITALIC,10));
                   UIManager.put("Tree.leafIcon", leafIcon);
              else if(o[2].equals(p.s))
                   ren.setOpenIcon(openIcon);
                   ren.setFont(new Font("Dialog",Font.BOLD,9));
    public ReadProperty3(){
         super("JTree With Properties");
         try{
    int c = 0;
    while(c == 0){
    c = 1;
    BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
    System.out.print("Enter file name which has properties extension :");
    str = bf.readLine();
    File f = new File(str + ".properties");
    if(f.exists()){
    Properties pro = new Properties();
    FileInputStream in = new FileInputStream(f);
    pro.load(in);
    System.out.println("Key: " + pro.keySet());
    System.out.print("Enter Key : ");
    key = bf.readLine();
    String p = pro.getProperty(key);
    st = new StringTokenizer(p,"=,");
    root=new DefaultMutableTreeNode(key);
    v=new Vector();
    while(st.hasMoreTokens())
         String val=st.nextToken();
         v.add(val);
         o=v.toArray();
         System.out.println(val);
         t=new DefaultMutableTreeNode(val);
         root.add(t);
         tree=new JTree(root);
         tree.setEditable(true);
         JScrollPane jp=new JScrollPane(tree);
         // tree.setCellRenderer(new CellRenderer());
         Container content=getContentPane();
         content.add(jp,BorderLayout.CENTER);
    setSize(250,275);
    setVisible(true);
    addWindowListener(new ExitListener());
    else{
    c = 0;
    System.out.println("File not found!");
    catch(IOException e){
    System.out.println(e.getMessage());
    }

  • How can I change the age associated with my daughter's account?

    OK I am sure that this is a common issue.  Back when my daughter was about 9 or 10 years old, we bought her an iPod Touch.   She was too young to have an AppleID of her own, so I set one up for her using an extra gmail accoun that I had, and entered my birthdate/age.  A few years later, she received an iPad, and most recently, an iPhone.   All of these devices are tied to the same AppleID.
    Well, now she will be 13 years old soon, and I would like to switch things to represent reality.  She has her own email account, and I believe you can go to My Apple Id to change the Apple ID name and e-mail address.  My question is, can we change the age associated with the account?
    I hear you saying, "Just create a new AppleID for her."  That may end up being the only solution, but I am trying to avoid having two AppleIDs for her to keep up with.  She has already purchased a fair amount of content (music and apps) under the existing AppleID, and I am pretty sure from looking at the posts on this Community that you can not transfer content away from the AppleID under which it was downloaded/purchased.  And so, if I create a new AppleID, she will have to re-purchase the content to get it all in one place.  As she eventually grows up and becomes independent, I would like for he to not have to "start over" with her AppleID.
    Any advice or direction to information would be appreciated.

    I have a similar situation however a bit more complicated! It seems that when I was setting the birthdate I forgot to change the year so now my seven years old daughter shows up as a two months old! There is no way to change the birthdate because it shows up in light grey when I login into my daughters account and doesn't allow a change! The birthdate can be changed only when the child turns 13 however according to this she will have to be 20 before she can change it to show property 13 and here is where this is getting completely out of hand! Now to make things more complicated I have twin daughters and they came up with their unique but similar Apple ID, so changing one will require to change both Apple IDs! After being on the phone with Apple's customer support for about one hour I talked to a supervisor and the supervisor of the supervisor and their only solution is to create a new Apple ID! Of course in my case I will have to create two new Apple IDs, and I'm considering doing it. However when I started reading it becomes more complicated because I already made their Apple IDs part of my family group. It seems like you're not able to just let go of family member that is less than 13 years of age. You can only transfer it to another family, so Apple is making sure there are no kids left behind It seems like the only option will be to "abandon" the family and then create a new family with the new Apple IDs. If all this sounds bizarre to you it sounds bizarre to me too! If I can just put the kids in the car and drive them to the nearest one hour away Apple Store and have them show their credentials confirming their birthdate I would rather do that than having to spend more and more time with this issue, but that was not an option pointed out by customer support. So folks keep in mind that if you make a mistake your children's age is set in stone until he or she turns 20 if they happen to be seven at the time you made the mistake and no one can change this, even Apple! Now on the positive side I'm glad I didn't do the mistake when she was 13 or she will have to wait until she's 26 Most likely I'll be calling customer support tomorrow again and I will let you know how it went!

  • 2 different iphones have the same Apple ID, how can I change the apple ID on one of them but not delete the other iphone's data and media?

    2 different iphones have the same Apple ID, how can I change the apple ID on one of them but not delete the other iphone's data and media?

    You don't have to do anything with the first iPod that you don't use anymore. If you are planning on keeping it, put in a drawer in your house and forget about it.
    You don't need a second account to use with the new iPod. I use one Appl e ID and iTunes library for two iPods, and two iPad. I have different content on all four devices. You can select exactly what you want to sync to each device and it can be different content on all devices.

  • Hi,how can i change the default settings on my adobe readerX1 such that it will display all my pdf files according to their individual cover pages (as cover picture thumbnails)before i click them to open and read........i really enjoyed this feature as a

    hi,how can i change the default settings on my adobe readerX1 such that it will display all my pdf files according to their individual cover pages (as cover picture thumbnails)before i click them to open and read........i really enjoyed this feature as a default settings upon installation in previous editions of adobe reader .i use a windows 8 pc now.thank

    For sideloaded content the nook pulls the metadata from ePub file itself.  I would suggest looking at a program like Sigil or Calibre that will let you edit the metadata in the book to make it appear like you want.
    For the PDF vs ePub - No, that's the way PDFs work (think of them as graphics, not text), wheres ePubs are Web Pages - so  no you can't them to behave exactly alike without converting the files.

Maybe you are looking for