Why System.setProperty doesnot work?

Dear ALL
i Want to use System.setProperty to set CLASSPATH
but i find it doesnot work. after run it,
CLASSPATH is same as before
below is code
before running java Test
classpath is null
after running java Test
classpath is still null,
How do i set classpath during program running time
and keep the change after running time?
import java.util.*;
public class Test
public static void main(String[] args)
System.out.println(System.getProperty("java.class.path"));
System.setProperty("java.class.path","C:\\C\\subc;"+System.getProperty("java.class.path"));
System.out.println(System.getProperty("java.class.path"));

Any properties you change using System.setProperty() go away as soon as the JVM exits -- they are changed in memory only.

Similar Messages

  • System.getProperty doesnot work

    Hi,
    I have a piece of code where I try to get a env variable VTNAME in my java application. Code snippet below
         //this function creates a session.
         public void setSession(configParams params) throws Exception {
              boolean done = false;
              int retryCount = 0;
              mVTName = params.getFactoryName();
              System.out.println(System.getProperty("VTNAME"));
    It returns me null. And when i do
    :/home/santsat > echo $VTNAME
    dbusd1.srv.uk.deuba.com:8092/tcp:
    Any thoughts o what is wrong in the code?
    Thanks
    Message was edited by:
    chabhi

    Java's system property is not the same as environment variable.
    To get environment variable, use System.getenv().
    If you start your java app with -DVTNAME= then you can use System.getProperty().
    Budyanto

  • Why the second NamedData variable doesnot work for CreateWithParams?

    Hi,experts,
    Working in jdev 11.1.2.3,
    A scenario:
    --There is a 1-M link between VO1(id,amount),VO2(id,amount,fkid1,fkid3) where VO2.fkid1=VO1.id;
    --When create a new record for VO2, will select record from VO3(id,amount) and populate for VO2 with VO2.amount=VO3.amount, VO2.fkid3=VO3.id;
    --VO1 render as a formlayout, VO2 and VO3 as tables in the same page;
    --A CreateWithParams button for VO2;
    It's OK when add the first NamedData->amount and bind to VO3.amount.
    --VO2.amount = VO3.amount when a new record is created with the CreateWithParams button;
    see: Re: How to create a new row for a VO based on values from another VO?
    But errors will raised when add the second NamedData->Fkid3 and bind to VO3.id the same way as the first NamedData as follows:
    <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: oracle.jbo.domain.String
    java.lang.ClassNotFoundException: oracle.jbo.domain.String
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
    more info:
    --VO2.fkid1(varchar2(18)), fkid3(varchar2(50)), amount(Number(18,2));
    --VO1.id(varchar2(18));
    --VO3.id(varchar2(18)),amount(Number(18,2));
    Anyone can help?
    Thanks!
    Edited by: BAO.SZ on 2013-4-26 上午8:46
    more info:

    hi,Puthanampatti:
    The NamedData->Amount bind to VO3.amount(number) works well.
    It's the NamedData->Fkid3 bind to VO3.id(varchar2(18)) doesnot work.
    Thanks!

  • Why won't System.exit(0)  work?

    does System.exit(0); work with an event handler?
    I'm making a quit menu button, and I want my program to quit when it is clicked...unfortunately, System.exit(0); is not working...can soemone please help?
    thanks!

    here's all mmy code......i'm really at a loss...i can't figure anything out......
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    import java.util.*;
    public class SafetyMapView extends JFrame {
         // These are the tiles and buttons
         private JPanel               tiles;
         private JButton[]          buttons;
         private JCheckBox           editWallsButton;
         private JCheckBox           selectExitsButton;
         private JButton           computePlanButton;
         private JCheckBox           showDistancesButton;
         private JButton           resetButton;
         private JMenuBar          theMenuBar;
         private JMenu               fileM;
         private JMenuItem          openM,saveM,quitM;
         private JFileChooser      showIt;
         public void setJMenuBar(JMenuBar aMenuBar){theMenuBar=aMenuBar;}
         public JButton getFloorTileButton(int i) { return buttons; }
         public JPanel getTilePanel() { return tiles; }
         public JCheckBox getEditWallsButton() { return editWallsButton; }
         public JCheckBox getSelectExitsButton() { return selectExitsButton; }
         public JButton getComputePlanButton() { return computePlanButton; }
         public JCheckBox getShowDistancesButton() { return showDistancesButton; }
         public JButton getResetButton() { return resetButton; }
         public JFileChooser getJFileChooser() { return showIt; }
         public JMenuItem getOpen() { return openM;}
         public JMenuItem getSave() { return saveM;}
         public JMenuItem getQuit() { return quitM;}
         // This constructor builds the panel
         public SafetyMapView(String title, FloorPlan floorPlan) { 
              super(title);
              // Create the panel with the floor tiles on it      
              createFloorPlanPanel(floorPlan);
              // Layout the rest of the window's components
    setupComponents();
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setSize(600, 500);
    setVisible(true);
    // Create the panel to contain the buttons that display the floor plan
    private void createFloorPlanPanel(FloorPlan floorPlan) {
         // Setup the panel with the buttons
    buttons = new JButton[floorPlan.size()*floorPlan.size()];
    tiles = new JPanel();
    tiles.setLayout(new GridLayout(floorPlan.size(),floorPlan.size()));
              // Add the buttons to the tile panel
    for (int r=0; r<floorPlan.size(); r++) {
         for (int c=0; c<floorPlan.size(); c++) {
              int i = r * floorPlan.size() + c;
              buttons[i] = new JButton();
              buttons[i].setBorder(BorderFactory.createLineBorder(Color.lightGray));
              buttons[i].setBackground(Color.white);
              tiles.add(buttons[i]);
         public void setOpenHandler(java.awt.event.ActionListener x){
         /*public void setSaveHandler(java.awt.event.ActionListener x){
                   int option = 0;
                   java.io.File sel = null;
                   java.io.File[] files = null;
                   String filename = null;
                   javax.swing.JFileChooser chsr = new javax.swing.JFileChooser();
                   option = chsr.showSaveDialog(null);
                   switch (option)
                   case javax.swing.JFileChooser.APPROVE_OPTION :
                   //do something
                        a.dispose();
                        break;
                   case javax.swing.JFileChooser.CANCEL_OPTION :
                   sel = null;
                   break;
                   case javax.swing.JFileChooser.ERROR :
                   sel = null;
                   break;
                   default :
                   sel = null;
                   break;
                   chsr.setEnabled(false);
                   //do something
                   return;
                   //DO something...//
    // Here we add all the components to the window accordingly
    private void setupComponents() {
         // Layout the components using a gridbag
    GridBagLayout layout = new GridBagLayout();
    GridBagConstraints layoutConstraints = new GridBagConstraints();
    getContentPane().setLayout(layout);
    // Add the tiles
    layoutConstraints.gridx = 0; layoutConstraints.gridy = 1;
    layoutConstraints.gridwidth = 1; layoutConstraints.gridheight = 7;
    layoutConstraints.fill = GridBagConstraints.BOTH;
    layoutConstraints.insets = new Insets(2, 2, 2, 2);
    layoutConstraints.anchor = GridBagConstraints.NORTHWEST;
    layoutConstraints.weightx = 1.0; layoutConstraints.weighty = 1.0;
    layout.setConstraints(tiles, layoutConstraints);
    getContentPane().add(tiles);
    JMenuBar myMenuBar = new JMenuBar();
    layoutConstraints.gridx = 0; layoutConstraints.gridy = 0;
    layoutConstraints.gridwidth = layoutConstraints.gridheight = 1;
    layoutConstraints.fill=GridBagConstraints.NONE;
    layoutConstraints.insets = new Insets(2, 2, 2, 2);
    layoutConstraints.anchor = GridBagConstraints.NORTHWEST;
    layoutConstraints.weightx = 0.0; layoutConstraints.weighty = 0.0;
    layout.setConstraints(myMenuBar, layoutConstraints);      
              JMenu fileMenu = new JMenu("File");
              myMenuBar.add(fileMenu);
              fileMenu.setMnemonic('F');
              JMenuItem openM = new JMenuItem("Open Floor Plan");
              fileMenu.add(openM);
              openM.setMnemonic ('O');
              JMenuItem saveM = new JMenuItem("Save Floor Plan");
              fileMenu.add(saveM);
              saveM.setMnemonic ('S');
              JMenuItem quitM = new JMenuItem("Quit");
              fileMenu.add(quitM);
              quitM.setMnemonic ('Q');
              getContentPane().add(myMenuBar);
    public static void main(String args[]){
         //try{
         new SafetyMapView("Fire Safety Routes", FloorPlan.example1());
         //catch(java.io.FileNotFoundException e){
         //     e.printStackTrace();
    I cut out the parts where all the other buttons are being added to the layout cuz it was really relaly long....

  • System.setProperty() doesn't seem to take new keystore

    Hi,
    I've spent a few hours hunting around on google and can't seem to find a solution to my problem so hopefully someone here can help.
    I've written a simulator for people at work that tests HTTPS connections using .jks keystores. Each time they make a request they pass in a few basic variables like IP Address and Port number etc but also the keystore file to use.
    The first HTTPS request always works fine, assuming they've passed in the correct keystore, but if they then change the keystore and point to another server it fails even if using the correct keystore. Here is the part of the code where the keystore is set.
    public HttpsURLConnection getHTTPSRequest(URL url) throws IOException {
              System.setProperty("javax.net.ssl.trustStore", ToolWindow.sHTTPSKeystoreLocation);
              System.setProperty("javax.net.ssl.keyStoreType", "JKS");
              System.out.println(ToolWindow.sHTTPSKeystoreLocation);
              System.out.println(System.getProperty("javax.net.ssl.trustStore"));
              HttpsURLConnection httpsURL = (HttpsURLConnection)url.openConnection();
              httpsURL.setHostnameVerifier(new HostnameVerifier()
                   public boolean verify(String hostname, SSLSession session)
                        return true;
              httpsURL.setRequestProperty("Content-Type","text/xml");
              httpsURL.setDoOutput(true);
              httpsURL.setDoInput(true);
              httpsURL.setConnectTimeout(iConnectTimeout);
              httpsURL.setReadTimeout(iReadTimeout);
              return httpsURL;
         }The System.out.println output always shows the correct keystore that's being passed in but the following exception gets thrown:
    nested exception is:
         javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    I know the path and certificate are good because if I restart the application and put in the same values it works but each time I change the keystore it stops working. It seems like System.setProperty() isn't using the new keystore supplied when making the connection but then my System.out.println output would show that surely.
    Any help would be appreciated.
    Thanks.

    Hi ejp,
    Thanks for pointing me in the right direction. I eventually found a solution which I will share here in case anyone else has a similar problem. The reason why I couldn't put all private keys into a single keystore is that the tool I'm writing is for our Operations team to be able to test keystores that we give out to individual customers. From a security point of view it wouldn't be a good idea to give out every customers keystore to everyone else.
    Here is how I did my implementation.
    In my original class that creates the HttpsURLConnection only line changed as follows:
    public HttpsURLConnection getHTTPSRequest(URL url, SSLSocketFactory sslSF) throws IOException { // pass in SSLSocketFactory
         HttpsURLConnection httpsURL = (HttpsURLConnection)url.openConnection();
         httpsURL.setSSLSocketFactory(sslSF); // set SSLSocketFactory
         httpsURL.setHostnameVerifier(new HostnameVerifier()
              public boolean verify(String hostname, SSLSession session)
                   return true;
         httpsURL.setRequestProperty("Content-Type","text/xml");
         httpsURL.setDoOutput(true);
         httpsURL.setDoInput(true);
         httpsURL.setConnectTimeout(iConnectTimeout);
         httpsURL.setReadTimeout(iReadTimeoutDefault);
         return httpsURL;
    }and here is the code I added to build the SSLSocketFactory...
    KeyStore ks = KeyStore.getInstance("JKS"); // create new KeyStore object and pass in instance to constructor
    ks.load(new FileInputStream(ToolWindow.getHTTPSKeystoreFile()), ToolWindow.getKeystorePassword()); // load keystore file and password in to KeyStore instance
    KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509"); // create a new KeyManagerFactory object and pass in instance to constructor
    kmf.init(ks, ToolWindow.getKeystorePassword()); // initialize the KeyManagerFactory and pass in the KeyStore object and keystore password as variables
    TrustManagerFactory tmf = TrustManagerFactory.getInstance("SunX509"); // create a new TrustManagerFactory object and pass in instance to constructor
    tmf.init(ks); // initialize the TrustManagerFactory and pass in the KeyManagerFactory object as a variable
    SSLContext c = SSLContext.getInstance("SSL"); // create a new SSLContext object and pass in instace to constructor
    c.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null); // initialize SSLContext and pass in Trust/KeyManagerFactory as variables
    SSLSocketFactory sf = c.getSocketFactory(); // create my SSLSocketFactory to be passed in to HttpsURLConnection
    HttpsURLConnection urlc = getHTTPSRequest(url,sf); // create a HttpsURLConnection by calling my method listed at the top of this post and passing in the variables I have herby described.Hope this helps someone else who runs into the same problem as me!

  • Could somebody help about :System.SetProperty

    I use JSP to call a java class in which System.SetProperty is used to set the truststore and password for connecting to LDAP server by TLS connection .
    in the java class there are following statements
    System.setProperty("javax.net.ssl.trustStore",".truststore");
    System.setProperty("javax.net.ssl.trustStorePassword","ldapserver");
    //to set the property to access to the LDAP with TLS connection.
    The java class works well when I call it by a java file .
    But when I call this java class in JSP , there are some errors as following.
    Who can give me some suggestions ? thanks
    exception
    org.apache.jasper.JasperException: access denied
    (java.util.PropertyPermission javax.net.ssl.trustStore write)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    java.security.AccessController.doPrivileged(Native Method)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    root cause
    java.security.AccessControlException: access denied
    (java.util.PropertyPermission javax.net.ssl.trustStore write)
    java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
    java.security.AccessController.checkPermission(AccessController.java:427)
    java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
    java.lang.System.setProperty(System.java:698)
    LDAPAuthenPackage.LDAPAuthen.CheckUserNew(LDAPAuthen.java:30)
    org.apache.jsp.UserAuthen_jsp._jspService(UserAuthen_jsp.java:58)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    java.security.AccessController.doPrivileged(Native Method)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)

    java.security.AccessControlException: access denied
    (java.util.PropertyPermission javax.net.ssl.trustStore write)
    java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)The current security manager does not permit the current code to change the property "javax.net.ssl.trustStore".
    The java class works well when I call it by a java file .
    But when I call this java class in JSP , there are some errors as following.By default, unless you are running applet or java plug-in, there is no security manager. Then all your code has all permissions. However, it is clear that your tomcat(?) instance is using a security manager.
    The first thing you want to know is why or how you started your tomcat instance with a security manager. There are two directions to resolve your problem. You can start your tomcat without a security manager. Or you can add the permission for your class to change that property into the policy file for the security manager.
    Lastly, of course, this problem has nothing particular to do with JSP.

  • Why does GarageBand audio work for guest user but not my account?

    Hello, I have a 15-inch MacBook Pro (2.2 GHz Intel Core i7, 4GB 1333 MHz DDR3) from late 2011 that I bought brand new in 2012. I'm running OS X Mavericks 10.9.4 and my MacBook has 500 GB of storage.
    About a month or two ago I tried to download the new GarageBand (10.0.2) but I had trouble completing the loops download. The download would stop halfway through because of a network error. So last week I decided to try to download it again, and I was able to do so after reading some discussions about the issue. I successfully completed the download in safety mode and then I restarted my MacBook. At this point I was able to open GarageBand 10.0.2 and create a new project. Unfortunately, there was no audio coming through the output and sound bar for the various audio components in GarageBand. I had no audio when previewing the loops or playing it back in an audio track. I didn't really test anything else out because I figured I needed to fix this problem first. I have read many discussion boards about audio problems with GarageBand. I have already made sure everything is set properly in the GarageBand preferences and the audio preferences in system preferences. I've tried restarting GarageBand and restarting the computer.
    This evening I found a discussion from the username icewhatice and they seemed to have had my exact problem. I'm not sure that I found the answer on this discussion though. For reference, this is what icewhatice posted: "I have no audio coming from Garageband 10.0.2. Downloaded it on Saturday and have spent the last two days trying to figure out why it won't work. I'm using a macbook pro with an Alesis QX49. GB registers keyboard when I plug it in but no sound whatsoever, not even from the onscreen keyboard. It seems to read the keyboard as if I play a C chord, it appears in the display. I've done all the obvious stuff like check preferences, restart, I've deleted and downloaded new GB several times and always with same result. Actually, it took me about four attempts to download it in the first place as I was getting an internet connection error message right at the end of the download, and I see others have had that problem. Managed to solve that by downloading in safe mode but now the no sound thing is driving me absolutely crazy because I can't play my keyboard!!!!! Also, worth noting that there is no audio level being read anywhere, I believe in the new version this appears in the volume control at the top. I've also looked into it potentially being a problem with my keyboard and it possibly needing an update but can't find any difinitive answer for that anywhere. I've stopped looking into that because the on screen keyboard doesn't even work - if that worked then I would know at least GB works and it's something to do with the keyboard. So, I am at a complete loss. If anyone has any ideas about why this is happening or what I could do to solve then I would be very grateful."
    After reading this, I realized that I am unable to create new tracks, and I realized that I have the same problems with old projects saved from the last version of GarageBand I had. I have not tried to download GarageBand again since it did not work for icewhatice. léonie ended this post by saying: "Something is certainly wrong - either the current project, some settings in your user account, or the downloaded GarageBand version. Or incompatible software may be interfering. If a new project does not work, try to test by logging into a different user account, for example the "Guest User" account. Create a new project using this account. Does GarageBand work better from this account?  Then we will need to troubleshoot your preferences."
    I have tried this and started a new GarageBand project in the "Guest User" account. GarageBand was working fine in the "Guest User" account and all of the audio was working properly. Does anyone know how I should troubleshoot my preferences?

    If an application is working in a different account, but not in your regular account,try t find out, what you configured differently in your own account, for example start-up items or preference panes you are using, applications and other helper tools, that are only installed for your regular account. As a first guess, remove GarageBands preference files from the user library in your Home folder.
    But you will have to reset all settings you did in the GarageBand preferences dialog. And GarageBand will not remember the last project. You'll have to find the file manually.
    Remove these files from your User Library to a folder on your Desktop:
    ~/Library/Containers/com.apple.garageband10/
    ~/Library/Preferences/com.apple.garageband.plist
    ~/Library/Caches/garageband
    Quit GarageBand, then remove the files to a folder on the Desktop and restart the computer, before trying again to open GarageBand.
    You user library may still be hidden, as is the default in Mavericks: To open your hidden user library:
    Select the "Home" folder icon (the little house)  in the Finder's sidebar and press the key combination ⌘J to open the "view options".
    Enable "Show Library Folder".
    Then open the Home folder and open the Library folder inside and navigate to the Preferences, Caches, or Containers folder. Remove these folders completely - don't leave anything inside:  ~/Library/Containers/com.apple.garageband10/,
    ~/Library/Caches/garageband  .

  • Why does sound not work on my Mac Air?

    Why does sound not work on my Mac Air --all setting seem okay. OSX 10.9.2 operating systyem.

    Open System Preferences > Sound > Output
    Make sure the coorect output devices is selected and the Mute button is not checked.

  • Why does my itunes work in the guest account but not my administrator account?

    I have tried to reset, retry, restart, reinstall and restore itunes on my pc to figure out why it won't work on my administrator account yet it's fine if I sign into my guest account. It worked fine one day and the next, just didn't work.  I have Windows 8.1. Any ideas?
    Thank you,
    Simone

    Make sure that mouse keys aren't on. System Preferences > Universal Access > Mouse and Trackpad
    System Preferences > Language and Text > Make sure that U.S. is selected. If there are multiple languages selected there will be a flag in the menu bar and make sure that that is set to U.S..

  • I have an older iMac 5,1 and the disc drive no longer works. I was hoping that I could the Apple USB super drive as a replacement, but the info on the super drive page says compatible with iMac 2012 or later. Does anyone know why it would not work for me?

    I have an older iMac 5,1 and the disc drive no longer works. I was hoping that I could the Apple USB super drive as a replacement, but the info on the super drive page says compatible with iMac 2012 or later. Does anyone know why it would not work for me?

    A reply to similar question (Q & As , in product page Apple Store) says:
    "...dissable the internal reader hardware from devices setup. Then plug the external usb superdrive and that's it."  Answered by Enrique T from Lima Oct  25 2013.
    If you can locate an external Apple USB 'Air" superdrive for earlier model MacBook Air, that should work. The newer one for the Air is the same as for iMac, now.
    You may be able to use other brands of external USB optical drive with your older intel-based iMac, as some of them function capably. A few should also be able to see system discs or other bootable utilities on DVD.
    Hopefully this helps.
    Good luck & happy computing!

  • Hypertext links are not always preserved from Word to PDF, using Aperçu or Adobe, depending on OS 10 or Lion. Why? This generally works perfectly in Windows. Why are Apple and Adobe unable to correctly handle links when converting from Word to PDF?

    Hypertext links are not always preserved from Word to PDF, using Aperçu or Adobe, depending on OS 10 or Lion. Why? This generally works perfectly in Windows. Why are Apple and Adobe unable to correctly handle links when converting from Word to PDF?
    Depending on the system version, and Office Word version:
    - a pure URL link starting with http or even www sometimes works in PDF, either produced by Aperçu or Adobe, sometimes does not work;
    - other kind of links where the text under display is not a URL, never work!
    I like everything with Apple computers and software, except PDF generation. Output files are usually bigger in size, and no better quality, than under Windows. Furthermore, it is weird that something as common as hyperlinks does not work correctly!
    I related this question with Mac OS X Snow Leopard, but the problem is still there with Mac OS Lion.
    This problem seems to have been around for years, without any proper solution from Apple and/or Adobe! To me, this is very embarrassing!

    Greetings NoNameGiven,
    If I understand the problem correctly (I’m not sure I do) you would prefer ‘iii’ to be read as “eye eye eye” rather than “three”? The alt text property is the only way that I know of to make this happen. Hope this helps.
    a ‘C’ student

  • System.setProperty not being recognised by JVM

    Hi,
    I am trying to change my heap size for an Applet without having to
    get my users to set -Xmx in their plugIns.
    To do this I am trying to set the System Parameter javaplugin.maxHeapSize programmatically using:-
    System.out.println("MaxHeapSIze = " + System.getProperty("javaplugin.maxHeapSize"));
    System.setProperty("javaplugin.maxHeapSize", "100m");
    System.out.println("MaxHeapSIze = " + System.getProperty("javaplugin.maxHeapSize"));
    This appears to work in that it prints out a trace to say heap was 64m
    before and 100m after the setProperty. However the JVM is still using
    a heap of 64m as I get an OutOfMemory Error when the heap gets to 64m.
    Presumable this is because the JVM is still using the value it had at
    start-up.
    Is there a way to tell it to use the new value ?
    Sue

    Shouldn't the user have their own local timezone value
    where the applet is downloaded to?Yes they do, but since we have server side code in a different timezone from some of our clients, any Date objects passed from server to client are interpreted incorrectly on these clients. I figured that setting the timezone on the client to be equal to the server's timezone would solve this problem (I'm talking JVM timezone here, not OS timezone).
    SecurityException - if a security manager exists and
    its checkPermission method doesn't allow setting of
    the specified property. Yes, but it doesn't seem to be throwing any exceptions when I call setProperty. Plus, when I call getProperty to inspect the value I just set, it shows the new value. However, the JVM still behaves as if the old value was still in use.
    Alternatively, is it possible to set JVM parameters such as "-Duser.timezone = xxxx" from within the APPLET tag on the HTML page, so I don't have to use setProperty at all in the code?
    Thanks,
    Ken

  • Why does my eprinter work sometimes then stops working

    why does my eprinter work sometimes then stops working, its like it shows the printer page, there are the two different types one that pops up when you hit the print button then the one that pop up when you go too printer , they are two different types why?

    Hi there Michelle047;
    Are you having perfomance issue and is this still happening?
    What operting system are you using? i.e. use this example Win 7 64 bits. SP1
    Let me know and please clarify further your question I will do my best help you .
    Regards;
    RobertoR
    ▼ 
    You can say THANKS by clicking the KUDOS STAR. If my suggestion resolves your issue Mark as a "SOLUTION" this way others can benefit Thanks in Advance!

  • Why doesnt the Blackberry work?

    100's if not 1000's of people are having problems with there Black Berry phones.
    Youll find search results such as Nuked berry, brick berry or dumb phone.
    Blackberry technical support, had difficulty in handling an enquiry attempting to pass of the enquiry/complaint to the carrier who are not responsible for the incompetance of Blackberry, who call there faulty devices mobile/cell phones.
    There simply not up to the standard of the rest of the world.
    Why doesnt my phone work?
    BB(Blackberry)'s Desktop Software, is not help, being unable to connect with my device, even though it detects it & erases files, & attempts to connect with the device, even though my computer immediately detects my device as soon as I plug it into the USB port.

    Hi and Welcome to the Community!
    ChaserX wrote:
    100's if not 1000's of people are having problems with there Black Berry phones.
    Youll find search results such as Nuked berry, brick berry or dumb phone.
    Blackberry technical support, had difficulty in handling an enquiry attempting to pass of the enquiry/complaint to the carrier who are not responsible for the incompetance of Blackberry, who call there faulty devices mobile/cell phones.
    There simply not up to the standard of the rest of the world.
    So thousands of problems, out of millions of users, dooms the entire brand? Seems like of bit of a stretch to me. Also irrelevant...only your specific issues matter, not the rest of the world.
    ChaserX wrote:
    Why doesnt my phone work?
    BB(Blackberry)'s Desktop Software, is not help, being unable to connect with my device, even though it detects it & erases files, & attempts to connect with the device, even though my computer immediately detects my device as soon as I plug it into the USB port.
    Your report is a little difficult to clearly understand...hence difficult to provide you with useful guidance. So, the simplest thing I can recommend is to, on a PC (you cannot do this on MAC):
    1) Make sure you have a current and complete backup of your BB...you can find complete instructions via the link in my auto-sig below.
    2) Uninstall, from your PC, any BB OS packages
    3) Make sure you have the BB Desktop Software already installed
    http://us.blackberry.com/software/desktop.html
    4) Download and install, to your PC, the BB OS package you desire:
    http://us.blackberry.com/support/downloads/download_sites.jsp
    It is sorted first by carrier -- so if all you want are the OS levels your carrier supports, your search will be quick. However, some carriers are much slower than others to release updates. To truly seek out the most up-to-date OS package for your BB, you must dig through and find all carriers that support your specific model BB, and then compare the OS levels that they support.
    5) Delete, on your PC, all copies of VENDOR.XML...there will be at least one, and perhaps 2, and they will be located in or similarly to (it changes based on your Windows version) these folders:
    C:\Program Files (x86)\Common Files\Research In Motion\AppLoader
    C:\Users\(your Windows UserName)\AppData\Roaming\Research In Motion\BlackBerry\Loader XML
    6a) For changing your installed BB OS level (upgrade or downgrade), you can launch the Desktop Software and connect your BB...the software should offer you the OS package you installed to your PC.
    6b) Or, for reloading your currently installed BB OS level as well as for changing it, bypass the Desktop Software and use LOADER.EXE directly, by proceeding to step 2 in this process:
    http://supportforums.blackberry.com/t5/BlackBerry-Device-Software/How-To-Reload-Your-Operating-Syste...
    Note that while written for "reload" and the Storm, it can be used to upgrade, downgrade, or reload any BB device model -- it all depends on the OS package you download and install to your PC.
    If, during the processes of 6a or 6b, your BB presents a "507" error, simply unplug the USB cord from the BB and re-insert it...don't do anything else...this should allow the install to continue.
    You may also want to investigate the use of BBSAK (bbsak.org) to perform the wipe it is capable of.
    You may also want to try the "Bare Bones OS Reload Procedure" to attempt to narrow down the precise causal item:
    Load your OS "bare bones"...if anything is optional, do not install it.
    If the behavior presents immediately, then try a different OS with step 1
    If the behavior does not immediately present, then run for as long as it takes for you to be sure that the behavior will not present.
    Add one thing -- no matter how tempting, just one.
    If the behavior does not present immediately, then again run for long enough to be sure it will not have the same problem
    Repeat steps 4 and 5 until all things are loaded or the behavior presents
    When the behavior presents, you know the culprit...the last thing you loaded.
    If the behavior does not re-present, then you know that either step 1 or 2 cured it.
    If the behavior presents no matter what, then you likely have a hardware level issue for which no amount of OS or software can cure.
    You may also need the use of these tricks:
    KB10144 How to force the detection of the BlackBerry smartphone using Application Loader
    KB27956 How to recover a BlackBerry smartphone from any state
    http://crackberry.com/blackberry-101-lecture-12-how-reload-operating-system-nuked-blackberry
    If you are on MAC, you are limited to only your carriers sanctioned OS packages...but can still use any levels that they currently sanction. See this procedure:
    KB19915How to perform a clean reload of BlackBerry smartphone application software using BlackBerry Desktop Software
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I have installed Photoshop element 12 trail version in my system and i worked also for some days but it given error that "cannot load default brushes because scratch disk is full " but scratch is 158GB free

    Hi,
    I have installed Photoshop element 12 trail version in my system and i worked also for some days but it given error that "cannot load default brushes because scratch disk is full " but scratch is 158GB free why whats the problem am not getting.

    That thread helped for a time.  But now it seems as though my computer is back to slow again.  But, some of the jargon is over my head as well.  Not sure I knew quoite everything they were talking about.  But thanks a lot for that, it helped I probably just need to reread it and follow the instructions again.  Thanks so much.

Maybe you are looking for