Search:

Type: Posts; User: sbutt

Search: Search took 0.06 seconds.

  1. Replies
    4
    Views
    911

    Re: Java send mail error on Linux

    My code throws no exception.
  2. Replies
    4
    Views
    911

    Java send mail error on Linux

    Hi All,
    I have a simple java program that sends an email.




    public void sendMail(String content, String date) {

    try {
    boolean debug = false;
  3. Re: JDBC Connect problem on Linux: com.mysql.jdbc.Driver

    I fianlly managed to resolve that problem by setting the class path in /etc/profile file:



    export PATH
    JAVA_HOME="/usr/lib/java"
    export JAVA_HOME
    ...
  4. Re: JDBC Connect problem on Linux: com.mysql.jdbc.Driver

    I tried both:




    root@HH-Linux1:/opt/integra/middleware/LCPAnalyzer/src# java -cp /opt/integra/middleware/LCPAnalyzer/src/mysql-connector-java-5.1.22-bin.jar;. LCPAnalyzer
    Usage: java...
  5. JDBC Connect problem on Linux: com.mysql.jdbc.Driver

    Hi All,
    I have a simple java application which reads data from the DB. The application works fine on windows. I have added the 'mysql-connector-java-5.1.22-bin.jar' in my windows classpath....
  6. Replies
    4
    Views
    751

    Re: Java file creation on Linux

    It shows no output on my putty console after i do: java FileTest



    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.PrintStream;


    public class FileTest {
  7. Replies
    4
    Views
    751

    Java file creation on Linux

    Hi All,
    It is actually a very simple problem but i can't get through with it.

    I am trying to create a simple txt or html file in my java program. It works fine but on my local windows...
  8. Replies
    0
    Views
    676

    xml encoding problem.

    Hi All,
    I am trying to embedd an xml response string as CData inside an XML tree. The main XML tree is not in my control to create or change. I just have a class object where i am just...
  9. Replies
    1
    Views
    1,090

    calling EJB method

    Hi All,
    I have never worked with EJBs so I am kind of stuck with one problem.

    I have to make use of one existing EJB project through my external standard java class. The existing EJB...
  10. Replies
    0
    Views
    964

    calling EJB method

    Hi All,
    I have never worked with EJBs so I am kind of stuck with one problem.

    I have to make use of one existing EJB project through my external standard java class. The existing EJB...
  11. Replies
    0
    Views
    1,293

    How to put XML data inside CData

    Hi All,
    I have a string which is infact an xml data. I want to put this xml data inside a cdata and then set it in my main xml tree:

    Currently, when i set my xml data into my main xml...
  12. Extraction of CData Part and later its embedding

    Hi All,
    Could someone please help me figure out how I can extract from my xml the CData part, which is also an xml. Once I have the CData xml, I will then apply some xslt script on it and...
  13. Replies
    4
    Views
    504

    Re: converting simple C code to Java

    i think it is better to write a simple java program instead of decoding this C code. But thanks anyway.
  14. Replies
    4
    Views
    504

    converting simple C code to Java

    Hi People,
    I am new to C programming and have very little idea on how to convert this following C code to Java:




    * (DWORD *) roomcode = * (DWORD *) (roomcode + 1) +...
  15. Replies
    3
    Views
    1,412

    this finally worked... String filePath =...

    this finally worked...




    String filePath = "/META-INF/airlineBaggage/ypsilonBaggage.xml";

    String url = Thread.currentThread().getContextClassLoader().getResource(filePath ).getFile();
    ...
  16. Replies
    3
    Views
    1,412

    tried this filePath =...

    tried this




    filePath = "ypsilonBaggage.xml"

    private static String readFileAsString(String filePath)
    {
    //File file = new File(filePath);
  17. Replies
    3
    Views
    1,412

    file not found error

    Hi All,
    This is somehow a very basic question, but surprisingly I am stuck in it:(
    I am getting this exception:

    [AirlineBaggageReader] Error:java.io.FileNotFoundException:....

    I am...
  18. Maven plugin for eclipse + "Updating Maven Dependencies" problem??

    I'm new to ESB + Maven with Eclipse world so please help me resolve this problem. I have imported an ESB project (General->existing project to work space), but after loading eclipse starts Updating...
Results 1 to 18 of 18