I want to use £ in euro in java code

Hi,
I want to use £ as euro symbol in java code please help me as soon as possible.

It's not 100% clear what you are asking:
I want to use £ as euro symbol in java codeDo you mean you want to display a Euro symbol? If so, you use € (if your font supports it) but I suspect that is too easy you must mean something else. Can you ask the question again but rephrase to make it clearer what you want to do. Do you want to use the symbol in a particular Java component?

Similar Messages

  • Search information using a VO by java code..?

    Search information using a VO by java code.
    Hi to all
    Im trying to retrieve specific   information by java  using the VO object that I have attaché to the EO. I need to know if this is possible and how to.
    For example lest say that I have the following information user name and password and I wand the telephone and other information.
    Can some pls help me with a link of an example of how to do this.
    Tanks to all.

    Hi JulianeE
    Yes it is possbile, please generate the VORowImpl file on the corresponding VO object. Even if your query return multple rows, it can . see the sample code below
    OAViewObject vo1 = (OAViewObject)am.findViewObject("EmployeeEOVO1");
    vo1.reset();
    if (vo1 != null)
    do
    if(!vo1.hasNext())
    break;
    vo1.next();
    EmployeeEOVORowImpl lcerl = (EmployeeEOVORowImpl)vo1.getCurrentRow();
    lcerl.getFullName();
    Thanks
    Sandeep

  • How to use Oracle objects in java code

    Hi all!
    I'm reading an xls and i need to fill me oracle objects with java code:
    OBJECT_NAME OBJECT_TYPE
    LETTURA_OBJ TYPE
    LETTURA_OBJ TYPE BODY
    In the past weeks i've been using both java code into oracle and oracle objects, but new i need to write those objects with data i read with java, anybody can help me?
    I know that the easiest work around would be to put the data i read from the excel file into a table and then fill the oracle objects, but now i want to learn how to write directly those objects with a command like the following one:
    a sample of the code i'm tryng to write:
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED REPORT."Manage_Excel_ASMBS" AS
    import java.io.*;
    import java.io.IOException;
    import jxl.*;
    public cass ....
    #sql{  variabili_globali.var_ER_F3.Tipo_Lettura := 5}
    thanks,
    Massimo
    Edited by: LinoPisto on 16-mag-2011 16.38

    mmmh i'm not understanding so much....
    well... as i told before i'm working in oracle database environment and i'm developing a java procedure.
    now, i have this object
    CREATE OR REPLACE
    TYPE REPORT.FATTURA_OBJ AS OBJECT (
    POD VARCHAR2(1000),
    ID_FATTURA NUMBER,
    ID_FILE NUMBER,
    COERENZA_EA_F VARCHAR2(1000),
    COERENZA_ER_F VARCHAR2(1000),
    COERENZA_EA_M VARCHAR2(1000),
    COERENZA_EF_M VARCHAR2(1000),
    ANOMALIA VARCHAR2(1000),
    MOTIVO_INVALIDAZIONE VARCHAR2(1000),
    MATRICOLA_CONTATORE VARCHAR2(1000),
    POTENZA_DISPONIBILE VARCHAR2(1000),
    MEMBER PROCEDURE pulisci
    /and i need to work with it inside this procedure:
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED REPORT."Manage_Excel_ASMBS" AS
    import java.io.*;
    import java.io.IOException;
    import java.io.StringWriter;
    public class Manage_Excel_ASMBS
    public static void read_Excel(String inputFile,int var_Id_Caricamento, int var_Id_Distributore, String var_Distributore) throws SQLException, IOException
              **here i need to put what i'm reading inside the excel file into oracle objects**
    /can you please give me a sample ?
    thanks

  • Using getProperty in my Java code.

    I am reading the attached XML file into my Java classes.
    <Config>
    <Properties>
         <entry key="rmi.remotecontrol.port">30</entry>
    </Properties>
    <AListener>
              <Subscriber></Subscriber>
              <Database>
                   <URL>jdbc:oracle:thin:@0.0.0:1521:dev</URL>
              </Database>
    </AListener>
    </Config>
    My Java code displays the correct output when I say:
    System.out.println("The RMI Port name property: " +  prop.getProperty("rmi.remotecontrol.port"));
    Output : 30Now,if I want to get the URL address of the database,and when I use
    System.out.println("The RMI Port name property: " +  prop.getProperty("Database.URL"));
    Output is null.How do I get the value of the URL using getProperty?
    Thanks,

    you're a complete idiot. seriously. three separate threads, days apart, each with the same mistake in, pointed out by me several times each thread, links to exactly the documentation you need, code actually pasted into the thread from the documentation, several patient explainations, and you still haven't bothered actually listening to me
    other posters beware: check this fools posting history for an insight into how they repeatedly ignore advice on this problem before deciding whether it's worth your effort replying - it isn't. this clown simply ignores being told directly what is wrong here, and even ignores being given the exact fix. no point replying
    http://forum.java.sun.com/thread.jspa?threadID=5155898&messageID=9589500#9589500
    http://forum.java.sun.com/thread.jspa?threadID=5153393&messageID=9577681#9577681
    http://forum.java.sun.com/thread.jspa?threadID=5152929&messageID=9575638#9575638
    and still you don't get it. give up programming, you're not cut out for it. it involves an attention span and the ability to listen to advice

  • Using jsp variable in java code

    Hey guys,
    I need some help hope you guys can help me.
    I've declared a variable "error" in a jsp. how do I access this variable in the java code whice resides in the same jsp page.
    I know I can use java variable in jsp code using
    <%= sVariable %>
    where sVariable was declared in the java code. but how do I access a jsp variable in java code??
    Thanks very much in advance

    Thanks for the reply.
    This is what I want to do.
    I've declared a variable "error" using <c:catch var="error">I want to check the value of this variable and suppose if it contains XYZ (error variable will have a long string so I just want to check if it contains a specific value) I want to do step1 and if the variable of error is not XYZ I want to do step 2
    Problem is I dont know how to check if error contains the XYZ in jsp thats why I thought java code would help here.
    Can you guys suggest a better way to solve my problem.
    Thanks again

  • Using Textbox strings in Java code

    Hi,
    I wonder if anyone can help me with a problem I'm
    having with a JSP.
    I've got several text boxes on my JSP which are static and would like to access their contents from within some dynamic Java code contained within the same JSP. I.e If I have a text box whose name is my_text I
    would like to use my_text as a string within my Java code.
    Does anyone know how to do this?
    Thanks,
    Peter

    actually u can user java variable values in a html form/javacript but not vice versa.

  • How to use odi variable in java code.

    Hi,
    I am trying to calculate check sum of a file and need to capture that in a odi variable...
    I wrote code like this(selected technology as java bean shell)
    <@
    import java.io.*;
    import java.util.zip.*;
    public class checksum {
    public static void main(String[] args) throws Exception {
    FileInputStream fis = new FileInputStream(new File("c:/dummy.txt"));
    CheckedInputStream cis = new CheckedInputStream(fis, new CRC32());
    BufferedInputStream in = new BufferedInputStream(cis);
    while (in.read() != -1) {
    #checksum = cis.getChecksum().getValue();
    }@>
    But I am not able to get that value...
    I tried in another way like this
    <@
    import java.io.*;
    import java.util.zip.*;
    public class checksum {
    public static void main(String[] args) throws Exception {
         long result;
    FileInputStream fis = new FileInputStream(new File("c:/dummy.txt"));
    CheckedInputStream cis = new CheckedInputStream(fis, new CRC32());
    BufferedInputStream in = new BufferedInputStream(cis);
    while (in.read() != -1) {
    result= cis.getChecksum().getValue();
    @>
    In odi variable refreshing mode i selected schema as memory_engine and wrote
    select '<@=result@>' from dual;
    even this wont work for me :(
    Anyone pls help me in this...
    Thanks in advance
    Pavan

    Hi Phani,
    Thanks for the reply. I resolved this. The mistake is I wrote java code in a class,in main function. I removed class and main function. Now I am able to capture value into Odi variable...
    I modified code as
    <@
    import java.io.*;
    import java.util.zip.*;
         long result;
    FileInputStream fis = new FileInputStream(new File("C:/dummy.txt"));
    CheckedInputStream cis = new CheckedInputStream(fis, new CRC32());
    BufferedInputStream in = new BufferedInputStream(cis);
    while (in.read() != -1) {
    result=cis.getChecksum().getValue();
    @>
    finally retrieving result value from dual
    select '<@=result@> from dual
    Edited by: 908443 on Jan 16, 2012 10:42 PM

  • How to Use Exec function in Java Code

    How to Use Exec method
    I want to Execute command
    net Start "some service"
    using exec method of runtime class
    or i use some other way if suggest

    Assuming you have read http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html#exec(java.lang.String) already, I can only suggest to be more specific in what your problems are. If you are after just some example code, then download ftp://ftp.ebi.ac.uk/pub/software/textmining/monq/monq.tar.gz and have a look at the source code of monq.stuff.Exec. It does all those things which are necessary to keep track of a Process after it was created with exec.
    Harald.
    BioMed Information Extraction: http://www.ebi.ac.uk/Rebholz-srv/whatizit

  • Compressing a large PDF document using command line or Java code without GUI operations

    hi,
    I have a programatically generated very large PDF file with lots of tables and cells in it. The size of the file is few MBs. Using Adobe pro, I am able to reduce the size of the PDF in KBs. I want to achive it either through a command line or using Java API without GUI interaction.
    I am using JDK1.6.
    Thanks.

    I think you need the scripting or SDK forums http://forums.adobe.com/community/acrobat
    As far as I know, Acrobat does not have command line operation

  • How to use the XULRunner with JAVA Code

    Hi, all
    I have a big problem about XULRunner. I can not find a nice solution on the internet. So I have to request you to give me some ideas.
    We know the XULRunner is nice solution when we want to embed a browser into desktop program which is thunderbird, firefox and so on.
    My questions are the following:
    1. Can I execute a Java function accross the JAVASCript? We can execute javascript code in the JAVA, but I'm not sure I can do opposite it.
    2. What is javaxpcom?
    If you did program like this, please give me some ideas, thanks very much.

    I marked this as "off-topic" since it's not a Firefox support question.
    Another place for discussion related to XULRunner, besides the Mozilla community links at https://developer.mozilla.org/en-US/docs/Mozilla/Projects/XULRunner might be one of the [http://forums.mozillazine.org/ MozillaZine forums], such as the Mozilla Development forum:
    *http://forums.mozillazine.org/viewforum.php?f=27
    EDIT: I'm leaving this question open since it's about another Mozilla product and I'm escalating it to the Helpdesk in case anyone over there has a suggestion.

  • Using ftp in core java code to transferring a file to other sys

    My mail id:[email protected]
    hi to all
    I am actually using this code for transforing a file from my system to side system of mine.but the code is compiling and when runing this code i am getting an error:
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at com.sshtools.j2ssh.net.SocketTransportProvider.<init>(Unknown Source)
    at com.sshtools.j2ssh.net.TransportProviderFactory.connectTransportProvider(Unknown Source)
    at com.sshtools.j2ssh.SshClient.connect(Unknown Source)
    at com.sshtools.j2ssh.SshClient.connect(Unknown Source)
    at com.sshtools.j2ssh.SshClient.connect(Unknown Source)
    at ftpsample1.main(ftpsample1.java:36)
    I am getting this error.
    friend is saying some proxy should should be installed in that other system.
    Plase help me..
    my code is:
    import java.io.File;
    import java.util.List;
    import java.io.*;
    import com.sshtools.j2ssh.SftpClient;
    import com.sshtools.j2ssh.SshClient;
    import com.sshtools.j2ssh.authentication.AuthenticationProtocolState;
    import com.sshtools.j2ssh.authentication.PasswordAuthenticationClient;
    import com.sshtools.j2ssh.sftp.SftpFile;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    class ftpsample1
         public static void main(String[] args) {
         String username="administrator";
         String password="thota1976";
    try{
    // Make a client connection
    System.out.println("Before SSHCLIENT......");
    SshClient ssh = new SshClient();
         System.out.println("After SSHCLIETNT ......");
    // Connect to the host
    System.out.println("Connecting ......");
    System.out.println("ssh.connect ->9.182.54.70*************************......");
         ssh.connect("9.182.54.70");
    System.out.println("Connected***");
         // Create a password authentication instance
    PasswordAuthenticationClient pwd = new PasswordAuthenticationClient();
         // Get the users name
    pwd.setUsername(username);
         // Get the password
    pwd.setPassword(password);
         // Try the authentication
    int result = ssh.authenticate(pwd);
         System.out.println("ssh.authenticate(pwd):::" +result);
    System.out.println("AuthenticationProtocolState.COMPLETE:::***:" +AuthenticationProtocolState.COMPLETE);
              System.out.println("Beforet he AuthenticationProtocolState.COMPLETE ::");
         if (result == AuthenticationProtocolState.COMPLETE) {
              System.out.println("BOTH ARE SAME RESULT AND .COMPLETED*--------------");
    // The connection is authenticated we can now do some real work!
    SftpClient sftp = ssh.openSftpClient();
              sftp.put("c:/temp/Balaji.jpg");
                   System.out.println("after he AuthenticationProtocolState.COMPLETE ::");
    }catch(Exception e)
                        e.printStackTrace();
                        System.out.println("*****");
                        e.getMessage();

    You could use only Java classes without and 3rd party classes (com.sshtools.j2ssh) for doing this:
         * Upload a file to a FTP server. A FTP URL is generated with the following syntax:
         * <code>ftp://user:password@host:port/filePath;type=i</code>.
         * @param ftpServer FTP server address (incl. optional port ':portNumber').
         * @param user Optional user name to login.
         * @param pwd Optional password for <i>user</i>.
         * @param fileName Destination file name on FTP server (with optional preceeding relative path, e.g. "one/two/three.txt").
         * @param source Source file to upload.
         * @throws MalformedURLException, IOException on error.
        public void upload(String ftpServer, String user, String pwd, String fileName, File source) throws MalformedURLException, IOException {
            if (ftpServer != null && fileName != null && source != null) {
                StringBuffer sb = new StringBuffer("ftp://");
                if (user != null && pwd != null) { //need authentication?
                    sb.append(user);
                    sb.append(':');
                    sb.append(pwd);
                    sb.append('@');
                }//else: anonymous access
                sb.append(ftpServer);
                sb.append('/');
                sb.append(fileName);
                sb.append(";type=i"); //a=ASCII mode, i=image (binary) mode, d= file directory listing
                BufferedInputStream bis = null;
                BufferedOutputStream bos = null;
                try {
                    URL url = new URL(sb.toString());
                    URLConnection urlc = url.openConnection();
                    bos = new BufferedOutputStream(urlc.getOutputStream());
                    bis = new BufferedInputStream(new FileInputStream(source.getName()));
                    int i;
                    while ((i = bis.read()) != -1) { //read next byte until end of stream
                        bos.write(i);
                    }//next byte
                } finally {
                    if (bis != null) try { bis.close(); } catch (IOException ioe) { /* ignore*/ }
                    if (bos != null) try { bos.close(); } catch (IOException ioe) { /* ignore*/ }
            }//else: input unavailable
        }//upload()

  • How to use ButeBuffer properly in java code

    hi,
    i am trying to use a bytebuffer and i don't kniow which methods allow reading its content...i need to retrieve this content in order to convert it ( byte by byte) into RGB values...so can anyone help me to do it please?

    The API documentation tells you exactly which methods are available in class java.nio.ByteBuffer.

  • Want hepl in sending mail vai java code

    Hi
    I want to write code for sending email from java apllication.
    I done that, it works fine onle i send mail within my smtp server i.e. with in my comapny id's but it throws following excpetion when i give from id other than my comapny id
    Exception in thread "main" javax.mail.SendFailedException: Sending failed;
    nested exception is:
    javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    javax.mail.SendFailedException: 550 5.7.1 Unable to relay for meetraj14@
    yahoo.co.in
    at javax.mail.Transport.send0(Transport.java:219)
    at javax.mail.Transport.send(Transport.java:81)
    at mailchk.main(mailchk.java:27)
    Pleas help me
    My code is
    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    class mailchk
         public static void main(String[] args) throws Exception
              String to="[email protected]";
              String from="[email protected]";
              String subject="cheking";
              String message="this is a testing mail from java program";
              System.out.println("Hello World!");
              Properties props = new Properties();
              props.put("mail.smtp.host", "xchange.sigma.com");
              Authenticator auth = (new mailchk()).new SMTPAuthenticator();
              Session session = Session.getDefaultInstance(props,auth);
              MimeMessage msg = new MimeMessage(session);
              msg.setFrom(new InternetAddress(from));
              msg.setRecipient(MimeMessage.RecipientType.TO, new InternetAddress(to));
              msg.setSubject(subject);
              msg.setSentDate(new Date());
              msg.setContent(message, "text/plain");
              Transport.send(msg);
         private class SMTPAuthenticator extends javax.mail.Authenticator
    public PasswordAuthentication getPasswordAuthentication()
    String username = "prithvirajm";
    String password = "welcome";
    return new PasswordAuthentication(username, password);
    }

    i made changes accordingly
    i wrote 1 standalone program which work successfully i.e. it can send more than 1 mail
    but in my actual application ,it can send only 1 mail successfully, 2nd time it shows follwing exception
    exception occues due to javax.mail.SendFailedException: Sending failed;
    nested exception is:
    javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
    nested exception is:
    java.net.ConnectException: Connection refused
    I am attaching part of application code
    please helpme
    if(extFuncName.equals("sendEmail"))
         log.info("insdie sending mail");
         try
         try
         CallArg textMsgArgMail = args.getArg("to");
         this.to = textMsgArgMail.getValue();
         log.info("value of to"+this.to);                    textMsgArgMail = args.getArg("from");               this.from = textMsgArgMail.getValue();               log.info("value of from "+this.from);                    textMsgArgMail = args.getArg("subject");               this.subject = textMsgArgMail.getValue();               log.info("value of subject "+this.subject);               textMsgArgMail = args.getArg("email_data");               this.message = textMsgArgMail.getValue();               log.info(" email to be send to"+to+" from "+from+" with subject "+subject);                         log.info("email data "+message);                    }
         catch(CallArgException e){
                                       throw new TaskConfigError("missing input arg FileData in external function "+
    extFuncName, t.createTask(), e);
         }                         Properties props = new Properties();               props.put("mail.transport.protocol", "smtp");               props.put("mail.smtp.starttls.enable","true");               log.info("value of smtp host is "+this.smtpHost);          props.put("mail.smtp.host", this.smtpHost);               //props.put("mail.smtp.host", "193.168.1.4");               Session session = Session.getDefaultInstance(props);          
                             MimeMessage msg = new MimeMessage(session);
                             msg.setFrom(new InternetAddress(from));
                             msg.setRecipient(MimeMessage.RecipientType.TO, new InternetAddress(this.to));
                             msg.setSubject(this.subject);
                             msg.setSentDate(new Date());
                             msg.setContent(this.message, "text/plain");
                             Transport.send(msg);                    this.to="";                         this.from="";
                             this.subject="";
                             this.message="";                         log.info("email is sent suuceefully");
    catch (Exception mailexp)
    log.info("exception occues due to "+mailexp.toString());
                        //throw new
              }

  • How to use the build-in Java parser

    Hi All,
    I want do use the build-in Java parser. Is this possible? For example I have the following code:
    package ch.fhnw;
    import javax.tools.*;
    public class JavacExample {
         * @param args
        public static void main(String[] args) {
         JavaCompiler javac = ToolProvider.getSystemJavaCompiler();
         String arguments = "./src/ch/fhnw/JavacExample.java";
         int rc = javac.run(null , null, null, "-verbose", arguments);
         System.out.println("Return value: " + rc);
    }After parsing, it would be great to have an object or similar which contains the methods, arguments used by the methods, etc. The target is to extract method declarations from java files. Is there a simple way to do it without defining my own EBNF like in JavaCC? Or any other way?
    Thank you for your help.
    kind regards,
    wolfgang

    Yep. bootstrap your knowledge here
    [http://java.sun.com/javase/6/docs/technotes/guides/javac/index.html]
    [http://forum.java.sun.com/forum.jspa?forumID=514]
    Bruce

  • Use .so file in java

    Hello friends...
    i have dont coding in java (windows based)
    no i want to use .so file in java...
    can i use it in java because c++ coding is done in linux and .so file is generated..
    So can i use directly .so file in java (windows based).
    Please give reply...
    thank...

    You can use a wrapper to call C methods in a DLL under windows or in a lib*so under *nix.
    There are many commercials products to do this : google for them.
    There is at least one LGPL product : jnative.
    Beware that most of those products do not work for C++ exported objects since they can't be "newed".
    BTW : If anybody knows how to new a C++ object by its name (like Class.forName()) : write me at http://sourceforge.net/projects/jnative
    --Marc                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • How do I fix missing and corrupted images after update to Mountain Lion 10.8.2 and Aperture 3.4?

    Last night I tried to update to Aperture 3.4 on my MacBook Pro (late 2007 / 3,1 model) and received a message that I needed to install Mountain Lion 10.8.2 first.  However, there was no update in my App Store account for 10.8.2.  The update for 10.8.

  • PI 7.1 and Oracle JDBC driver: missing com.sap.aii.adapter.lib.sda

    Hello, I want to deploy the JDBC driver for Oracle databases as described in OSS 1138877 on a brand-new PI7.1 (SP06 Stack) installation. Unfortunately, I can't find com.sap.aii.adapter.lib.sda on the system, so I can't add the ojdbc14.jar file and de

  • I want to back up all my photos to a flash drive - how to do?

    I have PSE8 and am running Win7 64 bit laptop. I want to back up all my photos to a flash drive. I can't seem to do this within my PSE8, just gives me the option of copying to a CD or DVD. Should I be doing this from My Pictures or can I do this in P

  • Installing Camera Raw Upgrade on Trial PS cs4

    I am trying out the trial version of PS CS4 and wish to try the Camera Raw plug-in, but when I go to work on a RAW file (NEF as NIKON calls them) I get a message that the file could not be opened because it is not the right kind of document.  I a usi

  • Single Signon in WLP 4.0 ?

    Hi, Can someone help me with a step-by-step description on how to achieve single signon between a number of portals (same deployment)? We have some problems getting it to work properly, and I think I have thoroughly confused myself :-) - Jan