Can't use certain characters in java programs.

For some reason I cannot use characters like: " ^ ~ | " in java programs.
I can type them in a terminal and then paste them into the program, but cannot type them inside the java program - It's has been like that in every java application I have used. It only works when typing them in a applet running on a browser.
Im running Linux RH 7.2 with JDK1.4.0 (It works fine in windows 2000)
Hope somebody can help me.
/Tommy

Ehmm. What makes you believe that it isnt?
I can't make exclusiveOr operations and if(bubba || bubba2) something....And that is a problem / annoyance.
I can type every other characters but those ��� works fine as well.

Similar Messages

  • How can I use MS Word within java programming

    Hi everyone!
    I am developing a Java program that will take data
    from an Access 2000 database, and manipulate it,
    display the results graphically and in tables. The
    challenge for me is that I want the program insert the
    graphics and tables into the MS Word template and then
    prompt me to save it as a word * .doc. Do you know
    of any articles or sources of sample code on how to do
    this. The Java environment is Java2, JDK 1.3,
    JBuilder4. The OS environment is XP.
    Regards,
    Farad

    Hi, I also need that package. my e-mail is [email protected] Plese send me that. Thanks in advance
    I have a package that will do this for you. I just
    need to get your email to send an attachment and
    examples.

  • Can't use certain characters as bullets

    I'm using CS3 and am trying to define a new paragraph style for bulleted lists. The bullet I want to use is a character in Arno Pro (specifically a flower). I go to the Bullets and Numbering section of the Paragraph Style Options dialog, set Bullets as the list type, and then under the Bullet Character section I choose Add . . . to select the character. The character shows up fine in the Add Bullets dialog box, but once I add it, it shows up in the Bullet Character window as a simple black bullet, identical to the default one (but without the little red u underneath); it even has the same GID and Unicode number. If I say OK, it also appears in the text as this simple black bullet.
    This isn't happening with all characters in the font; letters and punctuation work just fine (if I for some reason wanted to use them as bullets). It's just a certain set of curlicues and leaves and bullets. And I think it's got to be related to the fact that this whole set has the same Unicode number and are all given as having the name BULLET; it seems that the program is only looking at this identical Unicode number and not at those fields that differentiate the characters from each other. And since this simple black bullet also has this Unicode number (2022) the program just assumes I mean that one. But I have no idea what to do about that (or if I'm even correct about this, as I know very little about Unicode and GIDs and who knows what else). Anyone have any suggestions?

    It works like this: all characters ('glyphs') in a font have a Glyph ID. That's because the Glyph ID is simply the index number of that glyph in the font file.
    But not all characters have a Unicode value -- this is because a font may contain characters for special purposes, such as small capitals or ligatures, or alternative characters (such as for your bullet), or simply because the characters do not exist in Unicode (the Math section in Cambria Math, for example).
    InDesign differentiates between 'any character in any font' and 'a certain glyph in a certain font' because the former can only be coded in Unicode, while the latter depends entirely on the font certaine. The little red 'u' you see is actually a good thing here, it means the character is, or should be, available in any other font. When you don't see the red 'u', the character comes from a certain font (and thus can be any glyph).
    This is where InDesign gets it wrong.
    If you add a glyph to the bullet list from the current default font, InDesign assumes it's a Unicode glyph (you're just selecting any old Bullet character) -- and it "forgets" to check if the character you selected is, in fact, a regular Unicode glyph, or if you selected it from the non-Unicode "any glyph at all" section of the little character map.
    Fortunately, you can circumvent this behavior by tricking InDesign. Simply first set another default font than the intended one, then add the bullet/ornament from the other font as needed -- InDesign will then correctly store it as both font + glyph in the Bullet list.

  • How can i use Unix database in java?

    How can i use Unix database in Java?
    Message was edited by:
    JPro

    I have not a clue about FoxPro, but the db then is FoxPro and not Unix. The better question would be "How do I connect to FoxPro DB running on Unix with JDBC?".
    My answer to that would be, search the Internet for a JDBC driver.

  • How can i use C/Javascript/php/Java in flex?

    can i embed these language into my flex project?
    since i have to check harddisk space, free memory remain. Also, i need to check the pixel of photos before the photos becoming bitmapdata
    please help~

    saipanBETTY0509 wrote:
    Subject: How can i use C/Javascript/php/Java in flex?
    can i embed these language into my flex project?
    You can't.  Why do you want to do this?
    saipanBETTY0509 wrote:
    since i have to check harddisk space, free memory remain. Also, i need to check the pixel of photos before the photos becoming bitmapdata
    I think what this means is "I want to check to see how much hard disk space is available.  Also, I need to check the pixel dimensions of an image."
    Is that right?
    There is no way in the Flash Player (as far as I know) that you can determine the amount of free disk space.  However, in AIR you can use air.File.applicationStorageDirectory.spaceAvailable to determine the storage space available in the application storage directory.
    As far as determining the dimensions of an image, there are plenty of good resources out there on that.  Maybe this one will be helpful to you?
    http://www.yswfblog.com/blog/2008/12/22/flash-10-experiments-the-warholizer-loading-and-pr ocessing-local-images/
      -Josh

  • Since i have downloaded the new version of OS mavericks 10.9, i can't use adobe pdf and java anymore (all the softwares are updated) what can i do?

    Hello,
    Since i have downloaded the new version of OS mavericks 10.9, i can't use adobe pdf and java anymore (all the softwares are updated) what can i do?
    thank you for the help

    Uninstall version 6, Google for a download site for version 5.1. Problem solved.

  • I can't use certain programs with Yosemite

    I have the Adobe CS6 installed on my computer and they all worked fine with Snow leopard, but the moment I got Yosemite and tried to open After Effects I get this message:
    "You can’t use this version of the application “Adobe After Effects CS6” with this version of OS X.
    You have “Adobe After Effects CS6” 11.0."
    Every other program I tried on Adobe CS6 works fine but After Effects will not open. I tried to uninstall and reinstall it but I get the same message.
    After Effects is my second most used program on the Creative Suite, how do I fix it?
    An answer would be very helpful Apple. Please and thank you.

    Lowenfas wrote:
    I am figuring the fault lies with Yosemite since everything worked fine before I got it.
    Why did you not check if the programs would work before updating to Yosemite ?

  • Displaying japanese chars using servlet (posted in Java programming too)

    I am trying to display the japanese characters inputed by the user using
    html form and I am using servlet...
    After reading the input and when i try to display i get ????
    how can i solve this.
    It was originally posted in Java Programming forum. but i think the question suits here....heres the link for original post
    http://forum.java.sun.com/thread.jspa?threadID=670419&tstart=0
    sorry for posts at two different forums

    After reading the input and when i try to displayDisplay on what?
    Usually, if request.getCharacterEncoding() doesn't return viable result, then you should call
    request.setCharacterEncoding() with a proper value. If user send Shift_JIS string as form
    input, then the argument value should be also "Shift_JIS". When in doubt, use "UTF-8".
    Then, you call response.setContentType("text/html; charset="Shift_JIS"), etc.

  • How can I use HTTP authorization in my program?

    I'm writing full-featured proxy server in Java and want to require users to provide login and password and then use their login-name internally to provide different permissions, different quotas, etc... for different users. How can I do that with Java? I prefer to use standard HTTP method for this (classic pop-up login/password dialog in client browser). This is typical solution for all password-protected proxies.
    This question sounds so simple... How to popup a standard dialog asking for login/password in client browser and get its values for farther processing. But I googled for the solution and found nothing. In the Internet, there is a lot of information about how I can use password-protected proxy but none about how I can write one myself with Java.
    Thanks. I need at least some clues...

    I'm asking exactly what I'm asking for in the title :) . Maybe I need to give an example with additional explanation?
    I'm writing a proxy. It has different settings for each user so it must recognize user name and password. Of course, user want to use a browser or other program (possibly another proxy - for example Proxomitron or Privoxy to filter banners and ads) to make requests via my proxy. Browser (not my proxy) should pop-up a dialog asking for a login and password if my proxy server will require authorization. Of course not every program will pop-up a dialog: for example in case of Privoxy or Proxomitron user must provide login and password for parent proxy. In this example "parent proxy" is my proxy. Question is: how I can request HTTP authorization (by sending Proxy-Authenticate) and handle the input? Is there any standard API for that in Java?
    There is big difference between standard HTTP authorization and custom pop-up dialog or custom web-interface login page. In first case user can use standard settings in his/her program/browser to provide password automatically (in this case user just need to enter his/her password once). HTTP authorization is the standard. My proxy need to handle Proxy-Authorization request-header field.
    The Proxy-Authorization request-header field allows the client to identify itself (or its user) to my proxy which (should be able to) require authentication. The Proxy-Authorization field value consists of credentials containing the authentication information of the user agent for the proxy and/or realm of the resource being requested.
    So more complete question would be: is there standard API or third-party API in Java for requesting Proxy-Authorization field from a client and process its values (for example: if password and login is correct then user is allowed to use the proxy; if not user will be asked for login and password again).
    If someone knows proxy server (with source code in Java) which can use standard password protection this will be good answer to my question too.
    Unfortunately it seems that I will need to write account-management code for my proxy myself. Oh, this isn't too hard but for C/C++ there is a lot of examples and ready-to-use pieces of code which I can use immediately. This is why I'm asking here this question: before I will write HTTP authorization class in Java from scratch I want to make sure there is no "ready-to-use piece of code". I don't want to "reinvent the wheel".
    For now, I even cannot find a proxy server with Java source code with ability to use standard password protection to prevent access for non-authorized users. So I'm asking here if there is ready-to-use API (class) for doing HTTP authorization or I need to write one myself.
    Message was edited by:
    Dark_Dragon

  • How can i execute vb scripts in java program

    hi
    how can i execute any batch files or any other exe files (vb scripts) from java programs
    thanks

    Hi,
    You use Runtime.exec to execute commands / exe-files. See the documentation (and remember that it will only work on windows):
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
    /Kaj

  • Passing Japanese characters to Java program

    Hi,
    I am using Java POI APIs for creating/modifying excel spreadsheets. The platform is Solaris. The data to be populated contains both English as well as Japanese characters. The input data to Java program comes from a perl program. When I populate the data in excel or even print using System.out.println, it prints ???... for Japanese characters. The data is in SJIS format.
    I tried converting it to UNICODE in java but that doesn't seem to be working.
    I also tried using native2ascii for converting the data to UNICODE before it is fed to Java program using the following command
    native2ascii -encoding SJIS <Input File> <Output File>
    Although it converts the charaters into UNICODE correctly in the form \u8a3c\u523... but when it is input to Java, the program prints the string as such.
    But if this string is hardcoded in the program, the Japanese characters are printed correctly.
    Could anybody please throw some light as to the data should actually be passed to the Java program.
    Thanks

    Sekhar
    Ive realised the solution will probably involve HttpServletRequest.setCharacterEncoding.
    Im now upgrading to Tomcat 4 because 3 didnt support this method. Once I'm through the upgrade, I'll try Japanese the chars again.
    I would guess I need to force my web pages to utf-8 and use HttpServletRequest.setCharacterEncoding(utf-8) in the servlet to get it working ?

  • How to Use native keyword in java programming

    Hi ,
    I am using JDK 1.6.0_11 , and i was trying to create a java program using "native" keyword ,
    i got the sample code for the same from the site : - http://www.javaworld.com/javaworld/javatips/jw-javatip23.html
    But when i type this command " C:\javah -stubs Happy " following error occurs
    " Error: JNI does not require stubs, please refer to the JNI documentation. "
    then typed " c:\javah -jni Happy" without any error .
    After that i wrote a HappyImpl.c as mentioned in the above tutorial
    #include <StubPreamble.h> /* Standard native method stuff. */
    #include "Happy.h" /* Generated earlier. */
    #include &ltstdio.h> /* Standard C IO stuff. */
    void Happy_printText (struct HHappy *this)
    puts ("Happy New Year!!!");
    then it is not compling and error is
    "unable to open included file StubPreamble.h file
    unable to open included file Happy.h file "
    Please help me . i want to use native method , i did exactly the same in tutorial at above link.
    Thanks & Regards
    Mannat

    you do need to know how to use your C compiler... It quite clearly can't find those files which indicates that you didn't tell it where to find them.

  • Using WD APIs in Java Programming

    Hi,
         First let me explain my scenario:
              I have to get the <b>attachments in a PDF document</b>, using a <b>java program</b>. I am using Java perspective of NWDS. I am using the APIs
    ->IWDPDFDocumentHandler
    ->IWDPDFDocumentAccessibleContext
    ->IWDPDFDocument
    ->IWDPDFDocumentAttachment
    in my program.
    When I run my java program, I am getting the <b>java.lang.NoClassDefFoundError</b>.  Can you please, give me a solution for this problem?
    Note :  I have added the necessary JAR files to the project.
    Thanks,
    Prabhakar.

    Hi Sumit,
       Here is the result which I got in the console,
    java.lang.NoClassDefFoundError: com/sap/tc/webdynpro/services/exceptions/WDRuntimeException
         at PDFAttachment.readAttachmentFromPDF(PDFAttachment.java:241)
         at PDFAttachmentMain.main(PDFAttachmentMain.java:21)
    Exception in thread "main"
    Note :
    PDFAttachment
    - Class
    readAttachmentFromPDF
    - method
    The code is,
    String PDFDocName = "podetailswithAttachment.pdf";
                        //wdComponentAPI.getMessageManager().reportSuccess("Outside try FileName :"+PDFDocName );
                        try
                             //wdComponentAPI.getMessageManager().reportSuccess("Inside try FileName :"+PDFDocName );
                             FileInputStream fileInpStrm = new FileInputStream("C:\"+PDFDocName);
                             FileOutputStream fileOutStrm;// = new FileOutputStream()
                             ByteArrayOutputStream bo = new ByteArrayOutputStream();
                             int c;
                             while ((c = fileInpStrm.read()) > -1)
                                  bo.write(c);
                             byte[] pdfSource = bo.toByteArray();
    // Line :240     
                             IWDPDFDocumentHandler pdfdocHandler =WDPDFDocumentFactory.getDocumentHandler();
                             IWDPDFDocumentAccessibleContext pdfdocaccContext = pdfdocHandler.getDocumentAccessibleContext();
                             pdfdocaccContext.setPDF(bo);
                             IWDPDFDocument pdfDocument = pdfdocaccContext.execute();
                             IWDPDFDocumentAttachment[] pdfatt =   pdfDocument.getAllAttachments();
                             //wdComponentAPI.getMessageManager().reportSuccess("Length of the attachments: "+pdfatt.length);
                             //pdfdocaccContext.setPDF();
                        catch(Exception e)
                             //wdComponentAPI.getMessageManager().reportSuccess(""+e);
                             System.out.println(""+e);
    Thanks,
    Prabhakar.

  • Please help How can i run Os commands thru Java programs

    Hey,
    I want to stop and restart the linux server thru java program.Is it possible to run the os commands thru java program.
    I had it thru Runtime.getRuntime().exec("*.exe");
    it only runs the exe files.How can run files other than exe files like .bat,com ans shell commands..Any body knows please help with the code..or mail to this address
    [email protected]
    thankyou,
    regards,
    j.mouli

    What about "start command.com /C execute.bat", or using the overload that takes a String[] as argument?
    What if you use the the full path of execute.bat?
    What error code do you get?
    And what comes th linux, I'm not sure... you'll need a shell interpreter there too, me thinks. (never had to run anything with runtime.exec on linux). Check the man pages if csh, bash, ksh, or what ever shell you like.

  • Specify a exe running from certain directory from java program

    Hi there,
    I had a java program, which will spawn some child process to run vb COM;
    what I wanted to do: have a child process start the COM from a specific diretory?
    IS there any way to do it from Java, like shell programming?
    Thanks

    I do all my portable shell stuff now in ant.. http://jakarta.apache.org/ant/
    it is an XML driven java script for doing builds.. but it can be used for shell scripting.
    They are also some java scripting languages like jPython but i am not very familiar with them.
    u can also get Cygwin and write unix shell scripts. www.cygwin.com
    hope this helps

Maybe you are looking for

  • Need help in forms and reports

    I am new to forms and reports .. when i am trying to connect database using forms builder its giving followin error; ora-12170--TNS CONNECT TIME OUT OCCURED. Can any one tell what might be the reason?

  • The feature you are trying to use is on a network resource that is...

    I tired opening itunes one day and a message came up saying i didnt have permission to open it. SO I tried downloading it angain and I get a WIndows Intall box that says "the feature you are trying to use is on a network resource that is unavailable.

  • ANN: AXCM 2.0 (formerly ABCM) released

    Finally, after a number of hurdles, AXCM 2.0 has been released. Among other features, this version provides a new ability to construct schemes using XPath expressions, a powerful expansion of conditional evaluation options. It is supported on structu

  • DB: Handling temp tables

    Another DB question... We have a function that grabs a random record from a table using a stored procedure (MS SQL): CREATE PROCEDURE dbo.sp_randomJudge_district @Dist int AS -- Create a temporary table with the same structure of -- the table we want

  • Can't Open Documents From Finder

    Sorry- the topic title is a little deceiving. I wasn't quite sure where this issue would go because really it's an issue I'm having with Word. Word doesn't seem to want to open ANY documents. Every time I try, it stops responding and I have to Force