Ah ha i have a java question about replaceAll

for my find and replace component to do a replace all im simply saying
text.replaceAll(find,replace)
but if i try and find { and replace with } then it throws an exception because you need to escape the { (or the } which ever one)
but because im passing them a parameter i cant just escape it.
is there a simple way round this or would i have to have an array of all characters i need to escape?
thanks

hi
i tried
text.replaceAll("\Q"+f,"\Q"+r)
and with \q
but it returns an error
findReplace.java [179:1] illegal escape character
thats no good :(
also sabre, how would u like me to elaborate more?
i have a method that is passed 2 parameters, find and replace both strings
then my replaceAll uses these 2 parameters
replaceAll(find,replace)
if the strings are "hello" & "byebye"
then all hellos in the text are replaced by byebyes
if the strings are "{" & "}" then it throws an exception

Similar Messages

  • I have an urgent question about my indesign. I had problems with the creative cloude app and then uninstalled it and then installed it again. Now it is not opening and I cannot download it again either. Pls give me help and advice if there is anything I c

    I have an urgent question about my indesign. I had problems with the creative cloude app and then uninstalled it and then installed it again. Now it is not opening and I cannot download it again either. Pls give me help and advice if there is anything I can do to repair it

    Please authorize ADE 3 with same credentials that you used with older version of ADE

  • Hi I have a small question about Flash Builder

    Hi,
    I am Chenchu Gottipati, one of the graduate students from Department of Mathematics, Florida Atlantic Univerisity, Boca Raton. I have a small question about Flash Builder student version. I am doing my research in Graph Theory and I am trying to implement some animation of graph using Flash. I was trying to download the software but the link was broken. Could you please help me about how to get around this issie.
    Here is the link provided.
    http://freeriatools.adobe.com/flex
    Regards,
    Chenchu Gottipati

    Thank you for your kind reply. But where can I get this serial number ? I was trying to register through the above link but it was broken. So I don't know how to communicate with Adobe customer service to get the free student version.
    Regards,
    Chenchu Gottipati

  • Hello! I have a huge question about how can I get connected my iphone 4 with my car Is there any opption on find my car application? I have a Volvo xc60 and I want to be connected all the time with my iphone. Can I do that?

    Hello! I have a huge question about how can I get connected my iphone 4 with my car Is there any opption on find my car application? I have a Volvo xc60 and I want to be connected all the time with my iphone. Can I do that?

    Hello. I can say that you have a quite strange „huge question”… It’s non-sense to stay connected with your car which is hundreds miles away. Unless…
    I have a theory. You don’t want to controll your car, you want to controll somebody who is driving the car. Volvo XC 60 is a nice family car, usually used by married men between age of 35-45, probably with small children, so it’s very unlikely that you want to controll your teanage kid, mainly because probably even if you would give him/her to drive the car in the neighborhoud, I don’t think that he/she would be „several hundred miles away”…  If your child is not young teneage anymore, and he/she has his/her own life, but you want to control him/her, that is sick… So I am convinced that you want to controll your husband who probably travelling often! Am I wright?
    Isnt’t nice at all! Would you like if you would be monitorized in such way? I bet you don’t!
    Anyway, iPhone is smart, you can use for many things, but come on, you really were thinking that there is such kind of application???
    What could you do it's to put in the car a GPS survelling system, however I don't think that you could do it without your husband knowledge, otherwise he won't be able to start the engine...

  • Have a few questions about iPad before I get one

    I have a few questions about getting an ipad before I committ to get one.
    I have about 24 gb of itunes purchases in my itunes library, I am thinking of getting the 64 gb ipad. However, after you purchase the 64 gb, it will not truly be 64 gb,
    1) how much actual storage space would I have on a 64 gb ipad accounting for the os? On my macbook now I have a 164 gb hard drive but only access to about 148 gb for example.
    2) Would I be able to store the 24 gb of itunes purchases in icloud? How would I do that? Would I keep needing to go into the Purchase History tab in the ITunes store and download the song when I want to listen to it? My concern with this is that the item will no longer be "available in the Itunes store" and I will lose access to my music I purchased? 
    I would like to ditch the laptop and just have the ipad as my computer but want to know about these questions I have first.
    3) Can ipad and iphone now be charged without needing a laptop? Per last year's June 2011 conference when Lion and ICloud were announced, it was stated in Fall 2011 with iOS5 that people could get ipads and iphones and charge them without needing a laptop for syncing?

    1. About 57 on mine
    2. Subscribe to iTunes Match at a cost of about $25 per year - 25000 song limit I think
    http://www.apple.com/icloud/features/
    3. The iPad comes with a power adapter that plugs into a wall socket and that is the recommended way to charge it anyway. - not by using a computer
    http://www.apple.com/batteries/ipad.html
    You do not absolutely need a computer in order to use an iPad but you have to do more research to figure out if it will fit your needs that way.

  • Need help with Java, have a few questions about my Applet

    Purpose of the program: To create a mortgage calculator that will allow the user to input the loan principal then select 1 of 3 choices from a combo-box (7 years @ 5.35%, 15 years @ 5.50%, 30 years @ 5.75%).
    Problem: My program was working properly (so I thought). I can get the program to properly compile and run through TextPad. However, I noticed that when the user clicks the calculate more than once (with the same input), it slightly alters the output calculations. So that is my first question, Why is it doing that?  How can I get it only calculate that information once unless the user changes it etc?
    My next question is regarding my exit button. I was told by my instructor (who has already stated he won't help any of us) that my exit button does not work for an applet and only for an application. So, how can I create an exit button that will work with an applet? I thought I did it right but I can't find any resources online for this.
    Next question, why isn't my program properly validating invalid input? My program should only allow numeric input and nothing more.
    And last question, when invalid input is entered and the user clicks calculate, why isn't my JOptionPane window for error messages not displaying?
    I know my code is a little long so I have to post this in two messages. Please don't criticize me for what I am doing, that is why I am learning and have come to this forum for help. Thanks
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    import java.text.NumberFormat;
    import java.text.DecimalFormat;
    // Creating the main class
    public class test extends JApplet implements ActionListener
         // Defining of format information
         JLabel heading = new JLabel("McBride Financial Services Mortgage Calculator");
         Font newFontOne = new Font("TimesRoman", Font.BOLD, 20);
         Font newFontTwo = new Font("TimesRoman", Font.ITALIC, 16);
         Font newFontThree = new Font("TimesRoman", Font.BOLD, 16);
         Font newFontFour = new Font("TimesRoman", Font.BOLD, 14);
         JButton calculate = new JButton("Calculate");
         JButton exitButton = new JButton("Quit");
         JButton clearButton = new JButton("Clear");
         JLabel instructions = new JLabel("Please Enter the Principal Amount Below");
         JLabel instructions2 = new JLabel("and Select a Loan Type from the Menu");
         // Declaration of variables
         private double principalAmount;
         private JLabel principalLabel = new JLabel("Principal Amount");
         private NumberFormat principalFormat;
         private JTextField enterPrincipal = new JTextField(10);
         private double finalPayment;
         private JLabel monthlyPaymentLabel = new JLabel("  Monthly Payment    \t         Interest Paid    \t \t            Loan Balance");
         private NumberFormat finalPaymentFormat;
         private JTextField displayMonthlyPayment = new JTextField(10);
         private JTextField displayInterestPaid = new JTextField(10);
         private JTextField displayBalance = new JTextField(10);
         // Creation of the String of arrays for the ComboBox
         String [] list = {"7 Years @ 5.35%", "15 Years @ 5.50%", "30 Years @ 5.75%"};
         JComboBox selections = new JComboBox(list);
         // Creation of the textArea that will display the output
         private TextArea txtArea = new TextArea(5, 10);
         StringBuffer buff = null;
              Edited by: LoveMyAJ on Jan 19, 2009 1:49 AM

    // Initializing the interface
         public void init()
              // Creation of the panel design and fonts
              JPanel upper = new JPanel(new BorderLayout());
              JPanel middle = new JPanel(new BorderLayout());
              JPanel lower = new JPanel(new BorderLayout());
              JPanel areaOne = new JPanel(new BorderLayout());
              JPanel areaTwo = new JPanel(new BorderLayout());
              JPanel areaThree = new JPanel(new BorderLayout());
              JPanel areaFour = new JPanel(new BorderLayout());
              JPanel areaFive = new JPanel(new BorderLayout());
              JPanel areaSix = new JPanel(new BorderLayout());
              Container con = getContentPane();
              getContentPane().add(upper, BorderLayout.NORTH);
              getContentPane().add(middle, BorderLayout.CENTER);
              getContentPane().add(lower, BorderLayout.SOUTH);
              upper.add(areaOne, BorderLayout.NORTH);
              middle.add(areaTwo, BorderLayout.NORTH);
              middle.add(areaThree, BorderLayout.CENTER);
              middle.add(areaFour, BorderLayout.SOUTH);
              lower.add(areaFive, BorderLayout.NORTH);
              lower.add(areaSix, BorderLayout.SOUTH);
              heading.setFont(newFontOne);
              instructions.setFont(newFontTwo);
              instructions2.setFont(newFontTwo);
              principalLabel.setFont(newFontThree);
              monthlyPaymentLabel.setFont(newFontFour);
              displayInterestPaid.setFont(newFontFour);
              displayBalance.setFont(newFontFour);
              areaOne.add(heading, BorderLayout.NORTH);
              areaOne.add(instructions, BorderLayout.CENTER);
              areaOne.add(instructions2, BorderLayout.SOUTH);
              areaTwo.add(principalLabel, BorderLayout.WEST);
              areaTwo.add(enterPrincipal, BorderLayout.EAST);
              areaThree.add(selections, BorderLayout.NORTH);
              areaFour.add(calculate, BorderLayout.CENTER);
              areaFour.add(exitButton, BorderLayout.EAST);
              areaFour.add(clearButton, BorderLayout.WEST);
              areaFive.add(monthlyPaymentLabel, BorderLayout.CENTER);
              areaSix.add(txtArea, BorderLayout.CENTER);
              // Using the ActionListener to determine when each button is clicked
              calculate.addActionListener(this);
              exitButton.addActionListener(this);
              clearButton.addActionListener(this);
              enterPrincipal.requestFocus();
              selections.addActionListener(this);
         // The method that will perform specific actions defined below
         public void actionPerformed(ActionEvent e)
              Object source = e.getSource();
              buff = new StringBuffer();
              // Outcome of pressing the calculate button
              if (source == calculate)
                   // Used to call upon the user chosen selection
                   int selection = selections.getSelectedIndex();
                   // If statement to call upon Loan One's Method
                   if (selection == 0)
                        Double data = (Double)calculateLoanOne();
                        String sourceInput = data.toString();
                        displayMonthlyPayment.setText(sourceInput);
                        txtArea.setText(buff.toString());
                   // If statement to call upon Loan Two's Method
                   else if (selection == 1)
                        Double data = (Double)calculateLoanTwo();
                        String sourceInput = data.toString();
                        displayMonthlyPayment.setText(sourceInput);
                        txtArea.setText(buff.toString());
                   // If statement to call upon Loan Three's Method
                   else if (selection == 2)
                        Double data = (Double)calculateLoanThree();
                        String sourceInput = data.toString();
                        displayMonthlyPayment.setText(sourceInput);
                        txtArea.setText(buff.toString());
                   // Outcome of pressing the clear button
                   else if (source == clearButton)
                        enterPrincipal.setText("");
                        displayMonthlyPayment.setText("");
                        selections.setSelectedIndex(0);
                        txtArea.setText("");
                   // Outcome of pressing the quit button
                   else if (source == exitButton)
                        System.exit(1);
         // Method used to validate user input
         private static boolean validate(JTextField in)
              String inText = in.getText();
              char[] charInput = inText.toCharArray();
              for(int i = 0; i < charInput.length; i++)
                   int asciiVal = (int)charInput;
              if((asciiVal >= 48 && asciiVal <= 57) || asciiVal == 46)
              else
                   JOptionPane.showMessageDialog(null, "Invalid Character, Please Use Numeric Values Only");
                   return false;
                   return true;

  • I have some general questions about Java

    Is there a such thing as a list of every Exception in Java?
    Is there somewhere I can look at examples of try statements, catch statements I guess tutorials on the basics of Java, like what would constitute these statements.

    Thanks so much. This helps with the questions that I have. I am taking a class, where the only input I'm getting is "feedback". I'm expected to read the chapter, do the assignments, mind you this is the first time I have ever seen Java. Most of the class dropped out and now I see why.
    I asked the questions I did, because I didn't know "what" I understood the books explanation of the try statement pertaining to it's example, but I have nothing to apply "across the board" when it comes to try statements. The links you gave me were great, I now know how to tailor my questions. I will use the example in the link you gave me and try to equate it to my assignment. (This is a perfect example!)
    readFile {
        try {
            open the file;
            determine its size;
            allocate that much memory;
            read the file into memory;
            close the file;
        } catch (fileOpenFailed) {
           doSomething;
        } catch (sizeDeterminationFailed) {
            doSomething;
        } catch (memoryAllocationFailed) {
            doSomething;
        } catch (readFailed) {
            doSomething;
        } catch (fileCloseFailed) {
            doSomething;
    }I know that hitting enter more than once, entering a non integer (7.4), or entering a character "w" will cause a NumberFormatException. I am to enclose the methods in the try statement. Does that mean that I start with try {, then the section of code?  Then I need a statement or code?  This is where I am confused.  I look at the example above and those are actual statements.  Will it come a time when after "try" i will need code?
    What would be my statement? Is this something that I make up? ( I know these questions are dumming it down ALOT but once I get why something is done, I'll get it everytime.) My try statement has to say something to the effect that if the user trys to enter a non-integer value....am I right so far???
    try
    //Calling the user-defined methods
    multiplier = getNumber();
    correct = takeQuiz(multiplier);
    System.out.println("\t\tYou got "+correct+ " correct!" );
    user inputs any invalid, non-integer
    catch (NumberFormatException e)
    }

  • I am now running Windows 7 Ultimate on my Macbook Pro and the through VMware Fusion Software and I have a few questions about the ins and outs.

    So far I have a few kinks to work out. While running Internet Explorer 8, I get the error message, " Cannot connect to the internet." In Networks on the control panel, it says that I am connected to a local area public network but there is no internet access. How do I establish a connection to my existing network which works with the mac os? Also, of course, programs like Adobe, Quick Time Player, and uTorrent/bitorrent are already installed on my computer. Do I have to download them again on windows or can I import them or share them somehow?

    I am about to run specialized GIS software that may or may not need the full machine resources. I am an attorney who uses QuickBooks for my accounting. The Mac version does not do as much as the Windows version. This is from both Apple and Quick Books professionals. I am using Parallels Desktop version 8 at this time. It does not support QuickBooks Windows version per Parallels. Any other questions? I am a highly competent PC user who is new to Macs. I am entitled to my own configuration choices. That said, I know when I need help which is now.
    As to the free space issue I have 665.18 GB free space out of 749.3 GB on the drive. I am not trying to run the 32 bit version. I know that it requires the 64 bit version. Besides, it does not get that far in the process. As I said Boot Camp asssitant terminates unexpectedly as soon as you hit the continue button after setting the partition size. Therefore I conclude that it does not have a chance to see which version of Windows that I am using. I am using Windows 7 Ultimate 64 bit version in the virtual engine (to use Parallels speak), but again Boot Camp would not see that since it is not running. It can't run at the momenet because Apple just installed a new hard drive and I have just restored the data from TIme Machine and Parallels needs reactivated, which I have not done yet deliberatley. With all of this addtiional information do you have any further suggestions? Thanks for your time and interest my issue.

  • I have a tricky question about metadata and iTunes Match!

    Hi,
    Here's my question:
    I have purchased some content from the iTunes Store, most of it classical music (although that's not so relevant for my question). The Store metadata is generally poor, so for every purchased item I changed the metadata to suit my tastes (for example, all albums by J.S. Bach have "Bach" as artist, instead of the performer, which is the default in the iTunes Store).
    I have read some nightmare stories about metadata reverting to the original iTunes Store metadata, when subscribing to iTunes Match.
    I have also understood that iTunes Match does not change the metadata stored locally on my HD.
    So here is my question, which is twofold:
    1) Say I bought a song by the artist "John" on the iTunes Store. On my library, I changed the artist field metadata to "Jeff". Now, I subscribe to iTunes Match. Naturally, it will match my song to the one on the Store. On my iPhone, will my song appear under "John", or "Jeff"?
    2) In the same setting, after subscribing, will I still find this song under "Jeff" on my local library? In other words, what will change in my Desktop experience with iTunes?
    If having bad metadata when browsing my music on my iPhone is the price to pay for having all my music at my disposal anytime, I won't mind. But if iTunes Match messes up all my hard work getting my library just right on my Desktop, then I have to pass.
    Can you guys help me make a decision?
    Thanks,
    Paulo

    Thanks,
    Here is what another user got on https://discussions.apple.com/message/23028717#23028717 :
    "I can say that when my spouse gifted me with iTunes Match it was a disaster for my music library. It's all classical, and I also standardized names of composers, performers especially when there were multiple ones, and a ton of other stuff. Whatever matched, iTunes just upped and erased that, and used the title, artist, and whatever else from the store."
    This is *exactly* what I don't want to see happening! However, I could not find any other reports of what he describes. What do you think?
    Paulo

  • I have submitted a question about thumbnails, but it is not included under my Profile, so where is it held and how can I view it ?

    This is my original question.
    I have disabled the New Tab thumbnails by setting auto-config to 'aboutblank' and this has ensured the New Tab page is blank.
    However, FF is still dumping these thumbnails onto my PC, this despite my having set the History to 'Clear Cache' on exit from FF. I have tested New Tab without thumbnails in my last FF session, yet found the thumbnails of visited Sites were on my PC.
    If 'Clear Cache' does not remove these thumbnails, what does ?

    You can create new properties in about:config by right-clicking in the list and choosing New > [entry type] from the context menu.
    For true/false properties, choose New > Boolean as your entry type.

  • I have a few questions about iCloud....

    1-Is the only way there is to save docuemnts is by using the proper version of say Pages, and save it to iCloud? There isn't a vistual hardisk such as iDisk where I cam store my docuemnts, or pictures, or whatever, and pull them down from anywhere? If there is, where is it located?
    2-My wife had an iCLoud account, which is on her phone but not being used for anything. I have one on out iPad. Now we have taken pictures with both the phone and the iPad and some images are listed as being part of our photo stream and some aren't even though there is nothin i did, (knowingl) different from picture to picture. Why are some in the photo stream and some aren't?
    3-Still about photos. I don't have a desire right now to have a photo stream and when I try to turn off the Photo Stream it tells me those images will be deleted from the device. Why is that? What is the work around to take them off o out of the stream and keep them on the device? And I know for a fact I nevert turned the stream on because I don't need or want my images being sent out and about, so this is irksome to me.
    4-My wife has an iCloud account on her phone but for future use to stream music, but I have my iCal updated to my work computer, iPad and my MacBook Pro. I wanted my iCal info to be on her phone and it seemed no way for that information to merge onto her account. So I then thought I would just take her iCloud account off the phone and put mine on. Seems no way to do that either. Am I missing something obvious here?
    Thanks in advanced.

    This article provides some alternatives to iDisk: http://www.peachpit.com/articles/article.aspx?p=1751378.
    If the photos that were not added to photo stream are photos that were on your device before your tuned photo stream on, that's the reason.  Photo stream only uploads photos take after turning it on.  It should automatically upload photos when you are connected to wifi, have the camera app closed, and have at least 20% battery life remaining.  If that isn't the reason, then I don't know why some of your photos weren't added.
    To turn off photo stream and keep your photo stream photos, save them to your camera roll first.  To do this, open your my photo stream album in the thumbnail view, tap Edit, tap the photos you want to save, tap Share, tap Save to Camera Roll.  After they are in the camera roll, you can turn off photo stream.
    If the calendar you want to share with your wife is in iCloud, you can share that with her as explained here: http://help.apple.com/icloud/#mm6b1a8694.  If you ever want to change her iCloud account, just go to Settings>iCloud, tap Delete Account, then sign into the account you want to use.  You can also set up a second ("secondary") iCloud account on her phone by going to Settings>Mail,Contacts,Calendars>Add Account>iCloud.  (You could, for example, add your account to her phone as a secondary account and just turn on contacts syncing in the secondary account.)

  • PLEASE HELP! Just switched to Mac and I have a few questions about bootcamp

    I am looking to load Boot Camp onto my MacBook and want to know if it is necessary to save things like songs to an external hard drive(the computer is new so i don't have any important documents or files on it).
    Second Question: I would consider myself somewhat of an intermediate user on the PC operating system but I am new to Mac and want to know if I should run Boot Camp on my own knowing just the basics of Mac.
    Thanks for any help,
    -Cody
    Florida

    If you have nothing important, don't worry. If you want to save the songs to an external hard drive do so. The key is being aware that you could lose everything, so you should back up anything and everything you don't want to lose. If you can't afford to lose the songs, back them up somewhere. If it were me, I would back up the entire computer, just in case, but that's me. Just be sure to unplug the external hard drive before commencing the Windows installation.
    As for running Boot Camp on your own, I don't see why not. Most of the problems people have is not with Boot Camp per se but with the installation of Windows. In particular, take care to not overwrite or break your Leopard installation by selecting the wrong disk partition to install Windows on, and make sure you then format (or quick format) the Boot Camp partition to FAT or NTFS. Do not choose the "convert to NTFS" option!

  • I have a few questions about Airport...

    Hi.
    Recently, I've just started to use my internet connection wirelessly via Airport. I'm a bit nervous about my security. I'm using a WPA Personal password type (which is very long and contains multiple text and number characters) in order to access my router's network distribution.
    Am I right in thinking that, if any neighbouring persons wished to connect to my wireless network, they would need my WPA Personal password in which to do so?
    Also, if somebody was to connect to my wireless network, how can I monitor them, and others who may be connected (i.e. how can I obtain their IP address, computer name, network name, etc)?
    Thanks for your time,
    onlyone-jc.

    You are absolutely correct in your assumption that with WPA implamented.
    It is not possible for anyone to access your network without you first giving them your password. They are able to see your network name but thats all they can do. This is the same with your computer, you can go up to your Airport Signal Strength Meter and see any Network in range of your computer.
    There are several different programs available at.
    http://www.versiontracker.com/macosx/
    You will have to search through to find exactly what all is available.
    There are different programs that give you several different options
    Cheers Don

  • I have a few questions about the warrenty for the iPhone 4

    I just called technical support and they said since the vibrate on my phone is broken, they would send me a used phone, no cost to me. However, I have to send back my current phone and they said if they find out that I was the reason the phone is broken that they would have to charge me $300 for sending me the used one.
    How could they know if it was my fault? As far as I know the vibrate just stopped working one day. What would have to be wrong with the phone for them to be positive that it was my fault? If they do come to the conclusion that it is my fault, how do they charge me? Can I cancel the order for the new one and just keep my old one?
    My phone has minimal scratches on it, looks like it is practically brand new. If i receive the replacement phone tomorrow and change my mind, can I send it back with the prepaid label they send me?
    Sure I would love a phone with vibrate in working condition but if it is going to cost me $300, I can deal without it.

        @Dougnvic, no need to worry because I'm here to help! The vibrate function is very important especially when you're in a situation where you cannot have the ringer turned on.
    If we replace your phone through the warranty you are only charged for the equipment if there is any damage on the phone. The normal wear and tare is expected and you will not be billed for the phone because of these scratches.
    Once the phone is received it is inspected for any physical or liquid damage. If damage is found you are then billed for the phone and the charge will appear on your bill. You will also receive a text message advising you of the charge. Once you are billed the charge cannot be removed even if you return the replacement.
    If you change your mind and do not want to have the phone replaced you can just return the replacement once you receive it and keep your current phone. Just use the prepaid return label that will be inside the box of the replacement.
    If you are sure there hasn't been any damage then there is nothing to worry about. You will not be charged. You can also take the phone into a store and have a store representative take a look at the phone before you return it, if that makes you feel better.
    John B
    Follow us on Twitter @VZWSupport

  • Hi,all I have a permission question about midp's httpconnection class

    Connection conn=Connector.open("http://www.sina.com.cn");
                   HttpConnection hc=(HttpConnection)conn;
                   int len = (int)hc.getLength();
                   byte[] b=new byte[len];
                   hc.openInputStream().read(b);
                   hc.close();
                   g.drawString(new String(b),0,0,0);
    this is my code, in function startApp()
    the result of the execute is that the screen prompt me a question:
    is it ok to use airtime?
    and the execption is :
    java.lang.SecurityException: Application not authorized to access the restricted API
         at com.sun.midp.security.SecurityToken.checkForPermission(+331)
         at com.sun.midp.security.SecurityToken.checkForPermission(+15)
         at com.sun.midp.midletsuite.MIDletSuiteImpl.checkForPermission(+20)
         at com.sun.midp.midletsuite.MIDletSuiteImpl.checkForPermission(+13)
         at com.sun.midp.io.ConnectionBaseAdapter.checkForPermission(+67)
         at com.sun.midp.io.j2me.http.Protocol.checkForPermission(+17)
         at com.sun.midp.io.ConnectionBaseAdapter.openPrim(+6)
         at javax.microedition.io.Connector.openPrim(+121)
         at javax.microedition.io.Connector.open(+15)
         at javax.microedition.io.Connector.open(+6)
         at javax.microedition.io.Connector.open(+5)
         at com.ipanel.j2me.test.TestCanvas.paint(+5)
         at javax.microedition.lcdui.Canvas.callPaint(+80)
         at javax.microedition.lcdui.Display.repaint(+77)
         at javax.microedition.lcdui.Display.registerNewCurrent(+237)
         at javax.microedition.lcdui.Display.access$400(+6)
         at javax.microedition.lcdui.Display$DisplayAccessor.foregroundNotify(+46)
         at javax.microedition.lcdui.Display$DisplayManagerImpl.notifyWantsForeground(+152)
         at javax.microedition.lcdui.Display$DisplayManagerImpl.access$100(+6)
         at javax.microedition.lcdui.Display.setCurrentImpl(+98)
         at javax.microedition.lcdui.Display.setCurrent(+29)
         at com.ipanel.j2me.test.Test.startApp(+16)
         at javax.microedition.midlet.MIDletProxy.startApp(+7)
         at com.sun.midp.midlet.Scheduler.schedule(+270)
         at com.sun.midp.main.CommandProcessor.run(+141)
         at com.sun.midp.main.CommandProcessor.dispatch(+49)
         at com.sun.midp.main.CommandProcessor.perform(+27)
         at com.sun.midp.main.Main.main(+171)
    i need to help... thanks

    You need to add permissions for some APIs in the JAD file.
    Ex. Add following line in your JAD (Java Archieve Descriptor) of your application.
    MIDlet-Permissions-Opt: javax.microedition.io.Connector.http
    Multiple permissions are to be separated with comma.
    Onkar

Maybe you are looking for

  • "Phony" Apple ID seized one of my e-mails! How do I stop a fake?

    I'm usually one to give advice as opposed to seeking it, but this issue's pretty hairy.. During a cleanup of my MSN account, I spotted several legitimate messages from Apple, but for which I never signed up.  Some guy with a very similar-sounding nam

  • ITunes 10.1 and iPhone 4 - failure to connect / sync

    Hi Apologies if this is already out there but couldn't see. Since iTunes 10.x, neither iPhone 4 can connect to main XP PC through iTunes. The iPhones screens themselves flick up a "this accessory doesn't charge" message, just momentarily but repeated

  • Audit Universe - Difference between Document Refresh & Read Document

    Hi, I have created reports to track the User Activity on different Universe and I am using Action Name filter with Read Document & Document Refresh. I am always getting Read Document counts less than Document Refresh count. I am a bit confused becaus

  • Importing a ,docx document (book)

    Hello I need to use the demo of Indesign4 to import an 80 page book of poetry created in Word 2003. I need to create a PDF with bleed for a 6in x 9in book. I have converted the document to Word 2007 docx, but when I try to place this into Indesign I

  • Flat File Profiles vs Auth.Analysis : limited flexibility

    Hi, How can I combine values of different characteristics - that belong together from a auhtorization point of view - into one profile? The subject of this post may not be very clear, but let me explain what I need ... Suppose I have a user that may