Java or C# Connector

Hi,
is it possible to write a Connector to SAP without having NetWeaver installed, using C# oder Java as language?

just looking for an opinion as to whether java or c# is the best language
or put it another way where is the money making opportunitiesThese are completely different questions.
C# is probably the better language, but it doesn't have so many runtimes on different OSes, doesn't have as mature an implementation, as extensive a set of libraries and has some errors in its api wrt to operator overloading (eg (list + 5) + 5 != list + (5 + 5)).
As to making money, I'm an engineer not a banker.
Pete

Similar Messages

  • Fat Jar Export: Could not find class-path entry for 'C:Java/jdk/mysql-connector-java-

    ok friends,
    have a normaly running project in eclipse and want to create a jar file...i tried ewerythin in ->export but nothing function
    i wanted to create a runnable jar file but that error ecures:
    JAR export finished with warnings. See details for additional information.
    Exported with compile warnings: ICQJJ/src/ICQJJ.java
    Jar export finished with problems. See details for additional infos.
    Fat Jar Export: Could not find class-path entry for 'C:Java/jdk/mysql-connector-java-5.1.8-bin.jar'
    what's the problem?
    ok, i am using a mysql db und using the driver mysql-connector-java-5.1.8-bin.jar....
    i improted this jar file like this run -> run configuration -> classpath -> add external jar....
    pls help me

    That looks like it might be a binary-distribution JAR that you should unjar. The actual JAR for the classpath is probably inside it.

  • Sun Java System Directory connector cloning on OIM 11g R2

    Hi all,
    we successfully installed the +"Sun Java System Directory (9.0.4)"+ connector on OIM 11g R2 and it is properly working.
    We need to clone the LDAP Resource Object in order to execute provisioning to different ldap instances,
    but under "Connector Management" web console is not possible clone this connector; it's possible for example for Active Directory resource object but not for LDAP.
    How we can clone the connector for LDAP?
    Thanks a lot,
    Ettore F.

    Hello Rajiv,
    thank for your help.
    I figured out how to clone a connector, even if the resource object is not shown under "Connector Management".
    It's enough to click the "Clone" button and providing the original xml file, of the resource object then you can proceed with the cloning of the connector in 12 steps as the wizard shows.
    Bye,
    Ettore F.

  • Java Mysql Connector

    Hi everyone,
    I started to work on JDBC but i have a few questions about the mysql connector.
    I downloaded the .zip file and unzipped it to my desktop. Now i have a .jar file , a few folders , a installation guide and a read me file. But i couldn't understand the exact installation.
    First of all where do i have to place this files? In which directory? I have a mysql database installed. But only the guide say is "calling the class.forname() function!"
    I have no idea , what to place inside the forname function and where to install the connector files!
    If u could tell me step by step i'll be really appreciate. Thanks for your helps.
    Waiting for your answers :)

    Let's see...
    C:\Java\AppServer\jdk\bin\javac.exe is "javac
    1.5.0_06"
    .... That's the complete Java EE 5 SDKNo, javac.exe is part of Java SE. You have to have it for Java EE, of course. This version should match that of java.exe. Why does it not?
    C:\Java\bin\java.exe is java version "1.5.0_08"How is it that the versions of javac.exe and java.exe don't match? You're making a mess here.
    c:\MySQL50\bin\mysqld.exe is Ver 5.0.22-community
    for Win32 on ia32 (MySQL Community Edition (GPL))Very good. Can you connect to MySQL using its client?
    I've got copies of mysql-connector-java-5.0.3-bin.jar
    all over the shop including:This is wrong. Don't have them "all over the shop".
    C:\Java\lib\mysql-connector-java-3.1.13Wrong. Remove it.
    C:\Program Files\Java\jre1.5.0_08\lib\ext //how the
    flock did that get there?Didn't you say that you put it there? Wrong. Remove it.
    C:\Program Files\Apache\Tomcat5.5\common\libCorrect. Leave it there.
    C:\Program Files\Apache\Tomcat5.5\shared\libWrong. Remove it.
    C:\Program
    Files\Apache\Tomcat5.5\webapps\krc\WEB-INF\libPossibly wrong. Remove it.
    You should have that JAR in one place from the point of view of your web context.
    My system settings look like thisMicrosoft
    Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\Keith>echo %PATH%
    C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbe
    m;C:\MSSQL\BINN;C:\MySQL50\bin;C:\Program
    Files\QuickTime\QTSystem\;C:\Program
    Files\Apache\ant-1.6.5\bin;C:\Program
    Files\GNU\cvsnt;C:\Program Files\Microsoft SQL
    Server\90\Tools\binn\;C:\java\bin;C:\java\apps
    rver\bin;C:\java\appserver\jdk\bin;c:\program
    files\devstudio\sharedide\bin\ide;c:\program
    files\devstudio\sharedide\bin;c:\program
    files\devstudio\visualc\bin;
    C:\Documents and Settings\Keith>echo %CLASSPATH%
    .;C:\Java\lib\;C:\Java\lib\ext\QTJava.zip;C:\Java\hsql
    db\lib;C:\Java\lib\jakarta-oro-2.0.8\jakarta-oro-2.0.8
    .jarTomcat ignores that CLASSPATH. It does you no good at all. I don't have a system CLASSPATH on any machine I use.
    C:\Documents and Settings\Keith>echo %CATALINA_HOME%
    C:\Program Files\Apache\Tomcat5.5Fine. Might be good to put in in quotes, because that space between Program and Files might be problematic. Save for all other paths with spaces in them.
    C:\Documents and Settings\Keith>echo %JAVA_HOME%
    C:\Java\AppServer\jdk
    Notice that Connector/J is not in my class
    path.Notice that Tomcat doesn't care.
    my code is the same as yours above except for
    formatting, better exception messages, and the
    username and password are different, which are case
    sensitive BTW.import java.sql.*;
    public class Connector {
         public static void main (String[] args) {
              Connection conn = null;
              try {
                   String userName = "keith";
                   String password = "**********";
                   String url = "jdbc:mysql://localhost/test";
    Class.forName
    ame ("com.mysql.jdbc.Driver").newInstance ();
    conn = DriverManager.getConnection (url, userName,
    me, password);
    System.out.println ("Database connection
    ion established");
              } catch (Exception e) {
                   System.err.println ("getConnection: " + e);
              } finally {
                   if (conn != null) {
                        try {
                             conn.close ();
    System.out.println ("Database connection
    ction terminated");
                        } catch (Exception e) {
                             /* ignore close errors */
    }hope this helps... Keith.
    corlettk: oh yeah.. and mysqld is installed as a
    service, which is running. tomcat isn't running, it's
    not required for this test.If you run this test on the command line, you'd better be using the -classpath option to tell the JVM where to find the MySQL connector JAR. The JVM ignores your system CLASSPATH, too.
    %

  • Recommendation of plugin for Java Exchange  (or IMAP) connector.

    Hello,
    We have been using Moyosoft as a Java to Exchange connector. We have been having issue with a few of our data feeds coming through this avenue. I was just wondering of anyone in this forum could recommend a different approach. At present we.
    1. Have datafeeds come to an email box.
    2. Moyosoft scans email box and extracts datafeed into our system.
    Is there other solutions.
    Thanks,

    Adam Y wrote:
    We have been using Moyosoft as a Java to Exchange connector. I can only presume you mean you are using the "Java Bridge to Exchange" product from them.
    However far as I can tell that has nothing to do with JDBC - which is the point of this particular forum.
    We have been having issue with a few of our data feeds coming through this avenue. I was just wondering of anyone in this forum could recommend a different approach. At present we. In terms of a forum that might provider alternatives one of the JEE forums or just the main Java one might suggest alternatives.
    One alternative of course is to write your own interface either JNI or a server to which you use TCP to communicate in java (actually I am pretty sure exchange already has a TCP interface so all you need to do is implement that in java directly.)
    Or maybe buy the source code from that company and figure out the problem.

  • Java-Hierarchylevel - Error

    Hallo,
    i try to describe my problem in the english language:
    I wrote the following code:
    public IDoc.Document createOrderIdoc(SalesOrder order,IDoc.Document doc)
    IDoc.Segment root, segment;
    root = doc.getRootSegment();
    System.out.println(0. LEVEL "+ root.getHierarchyLevel());
    // Ebene 1
    segment = root.addChild("E1EDK01");
    System.out.println(   1. LEVEL "+ segment.getHierarchyLevel());
    segment.setField("ACTION", "000");
    //           Ebene 2
    segment = segment.addChild("Z1KGSKOPF");
         System.out.println(      2. Level: "+ segment.getHierarchyLevel());
                      segment.setField("ZZDKO", order.getOrderKostenstelle());
                      segment.setField("ZZRKAUFNR", order.getOrderAuftragsNr());
                      segment.setField("ZZTIT", "3000");
                     segment.setField("ZZAUF", kundennummer);
    //      Ebene 1: Vertriebsweg
    System.out.println(0. Level: "+ root.getHierarchyLevel());
    segment = root.addChild("E1EDK14");
    System.out.println(   1. LEVEL "+ segment.getHierarchyLevel());
    // ERROR: Println: 1. Level
    2
    // ERROR: root.addChild puts this element in Level 2 and not in level 1.
    segment.setField("QUALF","007");
    segment.setField("ORGID","30");
    //      Ebene 1: Sparte
    System.out.println(0. LEVEL "+ root.getHierarchyLevel());
    segment = root.addChild("E1EDK14");
    System.out.println(   1. LEVEL "+ segment.getHierarchyLevel());
         segment.setField("QUALF","006");
         segment.setField("ORGID","01");
    //      Ebene 1: Verkaufsorganisation
    System.out.println(0. LEVEL "+ root.getHierarchyLevel());
    segment = root.addChild("E1EDK14");
    System.out.println(   1. LEVEL "+ segment.getHierarchyLevel());
         segment.setField("QUALF","008");
         segment.setField("ORGID","0001");
    //          Ebene 1: Auftragsart
    System.out.println(0. LEVEL "+ root.getHierarchyLevel());
    segment = root.addChild("E1EDK14");
         System.out.println(   1. LEVEL "+ segment.getHierarchyLevel());
         segment.setField("QUALF","012");
         segment.setField("ORGID","TG");
    //      Ebene 1: Partnerrolle Auftraggeber
    System.out.println(0. LEVEL "+ root.getHierarchyLevel());
    segment = root.addChild("E1EDKA1");
    System.out.println(   1. LEVEL "+ segment.getHierarchyLevel());
    segment.setField("PARVW","AG");
    segment.setField("PARTN", kundennummer);
    segment.setField("IHREZ", order.getOrderNr() + "/" + orderDate);
    //         Ebene 1: Partnerrolle Auftraggeber      
    System.out.println(0. LEVEL "+ root.getHierarchyLevel());
    segment = root.addChild("E1EDK02");
         System.out.println(   1. LEVEL "+ segment.getHierarchyLevel());
         segment.setField("QUALF","001");
         segment.setField("BELNR", order.getUserFon());
    //      Ebene 1: Partnerrolle Warenempfänger
    System.out.println(0. LEVEL "+ root.getHierarchyLevel());
    segment = root.addChild("E1EDKA1");
         System.out.println(   1. LEVEL "+ segment.getHierarchyLevel());
    segment.setField("PARVW","WE");
             segment.setField("PARTN", kundennummer);
             segment.setField("NAME1", order.getDelCompany());
             segment.setField("NAME2", order.getDelNiederlassung());
             segment.setField("NAME3", order.getDelRessort());
             segment.setField("NAME4", order.getDelSal() +
                order.getDelFName() +
                order.getDelLName());
             segment.setField("STRAS", order.getDelStreet() +
                order.getDelStreetnr());
             segment.setField("ORT01", order.getDelCity());
             segment.setField("PSTLZ", order.getDelZIP());
             segment.setField("LAND1", order.getDelCountry());
    //         Ebene 1: Bestellnummer des Kunden
    System.out.println(0. LEVEL "+ root.getHierarchyLevel());
    segment = root.addChild("E1EDK02");
    System.out.println(   1. LEVEL "+ segment.getHierarchyLevel());
    segment.setField("QUALF","001");
             segment.setField("BELNR",order.getOrderNr());
    // process all order items of this order
    posNr = 10;
    itItems = order.getOrderItems().iterator();
    while (itItems.hasNext()) {
                 item = (OrderItem) itItems.next();
                  // Ebene 1: Bestellte Artikel
              System.out.println(0. Level "+ root.getHierarchyLevel());
             segment = root.addChild("E1EDP01");
         System.out.println(   1. LEVEL "+ segment.getHierarchyLevel());
                 segment.setField("POSEX", String.valueOf(posNr));
                 segment.setField("MATNR", item.getArtNum());
                 segment.setField("MENGE", item.getArtAmount());
                 segment.setField("MENEE", getIsoCode(item.getArtVE()));
             posNr += 10;
    }//while
    System.out.println(   1. LEVEL "+ segment.getHierarchyLevel());
    // Ebene 2
    System.out.println(   1. LEVEL "+ segment.getHierarchyLevel());
    segment = segment.addChild("Z1KGSPOS");
         System.out.println(      2. LEVEL "+ segment.getHierarchyLevel());
         segment.setField("ZZDKO", order.getOrderKostenstelle());
         segment.setField("ZZRKAUFNR", order.getOrderAuftragsNr());
         segment.setField("ZZOZT", order.getOrderOrdnungszahl());
    //prepare document for sending and set the appropriate control data
    doc.checkSyntax();
    Now my big problem. At the line doc.checkSyntax throws the Java-program the following error:
    com.sap.mw.idoc.IDoc$SyntaxException: (1) IDOC_ERROR_SYNTAX: Missing mandatory segment: Z1KGSPOS
         at com.sap.mw.idoc.jco.JCoIDoc$JCoSegment.checkMandatoryChildSegments(JCoIDoc.java:6395)
         at com.sap.mw.idoc.jco.JCoIDoc$JCoSegment.checkSyntax(JCoIDoc.java:6440)
         at com.sap.mw.idoc.jco.JCoIDoc$JCoSegment.checkSyntax(JCoIDoc.java:6450)
         at com.sap.mw.idoc.jco.JCoIDoc$JCoDocument.checkSyntax(JCoIDoc.java:933)
         at com.sap.mw.idoc.jco.JCoIDoc$JCoDocument.checkSyntax(JCoIDoc.java:887)
         at connector.ConnectorSap.createOrderIdoc(ConnectorSap.java:318)
         at connector.ConnectorSap.createOrderIDocList(ConnectorSap.java:355)
         at connector.ConnectorSap.sendSapOrders(ConnectorSap.java:387)
         at connector.SapOrderManager.sendSapOrders(SapOrderManager.java:46)
         at connector.SapOrderManager.main(SapOrderManager.java:55)
    I think the reason is, that the segment "Z1KGSPOS" lies in the wrong HierarchyLevel. In the Metadata which i get from the Sap-Server, it has to be set in Level 2. But my Java-programm puts it always in Level 3.
    I think the problem accrues at the marked position in top java code. But i don´t understand whats the reason for!!!
    Why did the function root.addChild(...) put the segment in Level 2 and not as desired in Level 1.
    I hope anyone of you could help me!!!
    Thanks from Germany

    Hi Stefan,
    I'm not sure I understand your problem; since I have no clue about your IDoc definition, my answer is based on ORDERS05, which might not be appropriate in your case.
    Segment E1EDK14 is level 2 and not level 1; check out the definition of your IDoc. From your coding I see, that you add your custom segment Z1KGSPOS after E1EDP01. E1EDP02 is on level 2, so your segment should end up on level 3. So far so good.
    Where did you place your Z1KGSPOS segment? Natural choice would be below the E1EDP01 segment, as standard SAP defines all other item segments that way. If you did that then the syntax error is caused by first adding all E1EDP01 segments and then adding the Z1KGSPOS. I guess you might've just misplaced your closing brace for your while loop.
    Hope this helps, harald

  • Servlet - java.lang.OutOfMemoryError: Java heap space

    Hi,
    Does anyone know how to debug this error !!
    regards,
    Manmohan
    java.lang.OutOfMemoryError: Java heap space
    2006-05-12 11:38:16,485 INFO [STDOUT] SATS ERROR: DispatcherServlet system exception: Servlet execution threw an exception
    2006-05-12 11:38:16,485 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[drugtest]] System Exception!
    javax.servlet.ServletException: Servlet execution threw an exception
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:275)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:359)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
         at com.auriga.drugtest.web.servlets.DispatcherServlet.redirect(DispatcherServlet.java:51)
         at com.auriga.drugtest.web.servlets.DispatcherServlet.service(DispatcherServlet.java:31)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
         at java.lang.Thread.run(Thread.java:595)

    Where to change/set the memory size in config file. I am using tomcat 6.0, when i start to browse my application i am getting this error. But this error is not coming on all the systems which we work ,only on one system I am getting this type of error. What should I do. If there is a memory leak how to find it out?. our application user very huge memory and we cannot change/reduce the code. this is the error
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
    org.apache.jsp.include.do_005flogin_jsp._jspService(do_005flogin_jsp.java:436)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap
    org.hibernate.mapping.Table.<init>(Table.java:33)
    org.hibernate.cfg.Mappings.addTable(Mappings.java:165)
    org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:290)
    org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:273)
    org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:144)
    org.hibernate.cfg.Configuration.add(Configuration.java:669)
    org.hibernate.cfg.Configuration.addInputStream(Configuration.java:504)
    org.hibernate.cfg.Configuration.addResource(Configuration.java:566)
    org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1587)
    org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1555)
    org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1534)
    org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1508)
    org.hibernate.cfg.Configuration.configure(Configuration.java:1428)
    org.hibernate.cfg.Configuration.configure(Configuration.java:1414)
    esq.connector.ConnectorFactory.prepareConnection(Unknown Source)
    esq.connector.ConnectorFactory.<init>(Unknown Source)
    esq.connector.ConnectorFactory.getConnector(Unknown Source)
    esq.connector.ConnectorFactory.getUserConnector(Unknown Source)
    esq.common.session.UserSession.authenticate(Unknown Source)
    esq.modules.user.LogonManager.doLogin(Unknown Source)
    org.apache.jsp.include.do_005flogin_jsp._jspService(do_005flogin_jsp.java:404)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs.

  • JDBC Java- mysql problem help!

    Hi, I wnat to connect to mySQL fromo Java, I followed all the instructions from the mySql web page, yet I havent been able to do it, when I compile the java progrm I keep getting class not found exceptions, I am using Fedora Core and Java was already installed-well I chose to install it when I installed the operating system, the point is that the paths are all assigned by he system not by me.
    WHat can I do?, Ive been trying over andover again with no results, hopefully somebody can help, I tried to include all the configuration in this email,
    thank you
    my java program is the following:
    t.java
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class t {
    public static void main (String[] args) {
    System.out.println("Hello, world!\n");
    Class.forName("com.mysql.jdbc.Driver");
    when I javac t.java
    I have the following error
    4. ERROR in t.java
    (at line 11)
    Class.forName("com.mysql.jdbc.Driver");
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Unhandled exception type ClassNotFoundException
    when I comment out the Class.forName the hello world rogram runs fine
    when I vi /etc/java java.conf this is the result
    # System-wide Java configuration file -- sh --
    # JPackage Project [www.jpackage.org]
    # Location of jar files on the system
    JAVA_LIBDIR=/usr/share/java
    # Location of arch-specific jar files on the system
    JNI_LIBDIR=/usr/lib/java
    # Root of all JVM installations
    JVM_ROOT=/usr/lib/jvm
    # You can define a system-wide JVM root here if you're not using the default one#JAVA_HOME=$JVM_ROOT/java-gcj
    # Options to pass to the java interpreter
    JAVACMD_OPTS=
    ~
    [root@localhost test]# echo $PATH
    /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
    echo $JAVA_HOME
    it contains nothing
    ls /usr/share java*
    java
    java-1.3.0
    java-1.4.0
    java-1.4.1
    java-1.4.2
    java-1.5.0
    javadoc
    java-ext
    java-utils
    mysql-connector-java-3.1.13-bin.jar is under
    /usr/share/java
    in /etc/profile I have:
    export CLASSPATH=$CLASSPATH:/usr/share/java/mysql-connector-java-3.1.13-bin.jar
    in /root/.bash_profile i have
    CLASSPATH=/usr/share/java/mysql-connector-java-3.1.13-bin.jar:/usr/lib/java-ext/mysql-connector/mysql-connector-java-3.1.13-bin.jar
    export CLASSPATH
    when I echo $PATH i have
    /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

    Thanks duff,
    The driver seems to be found
    when I run
    public class t {
    public static void main (String[] args) {
    try
    System.out.println("Hello, world!\n");
    Class.forName("com.mysql.jdbc.Driver");
    System.out.println("MySQL Driver Found");
    catch (ClassNotFoundException e)
    System.out.println("MySQL Driver NOT Found");
    e.printStackTrace();
    I feel somehow ive been focusing in the wrong side of the problem due to my ignorance in Java. Please help me to understand, the reson for which ithe runtime was telling me that there was an unhandled exception was because it is a requirement to handle all exceptions of this kind? why wouldnt it cmplain if I jst did the hello world without any exception handling, maybe because it is a requirement in the Class.forName...
    the other question is, is the message I was obtaining completely independent of the fact that the class was or was not found?
    Maybe, I should go with these questions to the newbies forum...
    thanks

  • Why is Java startup so slow?

    Does anyone know why Java startup is so slow? Compared to other interpreted languages like Javascript and Perl, they run much faster. And can someone get technical with me? (But without pointing me to the JVM specification, which I don't understand.) It use to take longer for me to load Mozilla0.9 than a Java applet, but now Mozilla1.3 loads faster than a Java applet.

    "Connector" is a rather ill-defined way of describing
    it, which is why I chose the word -- to easily deflect
    further inquiries to quantify. ;>
    In a slightly more specific way, on start-up JVM needs
    to (not necessarily in order, 'cause I don't know the
    exact order) at the very minimum:
    1. Allocate memory.
    2. Query OS for a minimal set of needed facilities.
    3. Allocate memory. Allocate allocated memory
    (internally, for use by itself and the application).
    4. Map the OS facilities to Java facilities. (This is
    what I meant by "connectors").
    5. Allocate memory. Allocate allocated memory.
    6. Set up the internal control -- security managers,
    thread scheduler, gc, classloaders, calling stacks,
    virtual lookup tables, etcetc.
    Some of the above don't apply to applets.
    Thanks for the tip on 1.4.2beta. I'll give it a try. I
    assume you meant startup speed?All this is almost instant you realize. The real time it takes to start your program is that it takes much longer for Java classes to be loaded.
    The startup time is proportional to the number of classes you need to load to get your program running. If you only are writing a simple, console based java program the startup time will be much less then if you load a Swing application. Swing by itself is a huge number of classes, and then you have to load your classes. So it can take awhile.
    All the things you mention, every program has to do and the code that the JVM uses must be written in C or some other systems language.
    One reason at least on my machine that java startup is slow is that I have a slow hard drive. On my home machine, java is much faster around twice as fast to startup, but the processor and ram are not twice as good. I think that it's because the hard drive is faster. Because most of the time it's waiting for data from the disk and the Java enviroment has the disadvantage that it's very large on disk.

  • Installing JAVA API

    Hello MDM Experts,
    We are implementing SAP Netweaver MDM 7.1 For our customer, I have installed MDM On Windows systems and connected to SQL Database. Now MDM Developer team wants JAVA API Needs to be installed and configured.
    I dont see any documentation specific to this installation on portals. Can you please share your experience?
    I have the below understanding
    Since MDM JAVA API Needs to be integrated to J2EE Engine, I will install J2EE Engine and deploy JAVA API Libraries in to it. once that is done Install MDM Connector using JSPM and Install NWDI on Developer machines.
    Am i correct? Can some one please suggest me how  i can achive this? I Really appreciate your help
    Thanks,
    Ravi

    Thats is correct. for more detailed info , please follow the steps
    Deploying the Java API and Connector Using JSPM:
    Use For deployment of the Java API and MDM Connector, use the SAP Java Support Package Manager (JSPM) tool.
    Procedure
    1. Copy the SCA file in the JSPM inbox folder.
    2. Open and logon to the JSPM tool.
    3. Deploy the Java API and Connector or apply the support package as follows:
    Deployment of New Software:
    First Step:Select Package Type
    a. Select New Software Component.
    b. Select No NWDI Control.
    c. Click Next.
    Second Step: Specify Queue
    Select MDM_JAVA_API
    Third Step: Check Queue
    Fourth Step: Deploy Queue
    When the deployment is complete, the deployment status is displayed in the status tab.
    If the deployment was successful, the wizard advances to the Completed step.
    Fifth Step: Completed
    Apply Support Package:
    First Step: Select Package Type
    a. Select Single Support Packages.
    b. Select No NWDI Control.
    c. Click Next.
    Second Step: Specify Queue
    Select MDM_JAVA_API
    Third Step: Check Queue
    Fourth Step: Deploy Queue
    When the deployment is complete, the deployment status is displayed in the status tab.
    If the deployment was successful, the wizard advances to the Completed step.
    Fifth Step: Completed
    4. Exit the JSPM tool.

  • Calendar Built in Syncml support or Free Connector

    Hello,
    Since we are facing a lot of bugs with the Sun Java Com Sync Connector i'am looking for a (better) synchronization tool (too many duplicates events after sync, compatibility problems, etc.)
    It seems only synchronica is providing a JES connector for SyncML synchronization.
    Do you know if there is a Syn4J(funambol) connector or any other "gateway" or connector that works well with JES Calendar ?
    Regards

    Hi,
    Since we are facing a lot of bugs with the Sun Java
    Com Sync Connector i'am looking for a (better)
    synchronization tool (too many duplicates events
    after sync, compatibility problems, etc.) There is a beta version currently being evaluated which hopefully helps with a lot of these issues.
    It seems only synchronica is providing a JES
    connector for SyncML synchronization.
    Do you know if there is a Syn4J(funambol) connector
    or any other "gateway" or connector that works well
    with JES Calendar ? This has been discussed in earlier forum threads already. The other company that provides an over-the-air solution is notifylink:
    http://www.notifycorp.com/imap4_solutions/sun/index.htm
    Regards,
    Shane.

  • Java.sql.SQLException: No suitable driver

    problem with JSP:
    in my web.xml i have:
    <context-param>
    <param-name>javax.servlet.jsp.jstl.sql.dataSource</param-name>
    <param-value>jdbc:mysql://localhost/java?user=test&password=test</param-value>
    </context-param>
    <context-param>
    <param-name>driverClass</param-name>
    <param-value>com.mysql.jdbc.Driver</param-value>
    </context-param>
    yesterday it was working fine, and today after syster reboot i am geting this message:
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    mysql-connector-java-5.0.4-bin.jar is in C:\Program Files\Java\jdk1.5.0_04\jre\lib\ext\ and Classpath and Path are OK.
    any idea how to resolve this?
    ps: i also have a small class that was used to test driver installation and it works just fine

    You have to put the driver in the right place for your Servlet engine. You haven't done that yet. And your outside program does not show you otherwise.

  • What is the difference between driver and connector?

    Hi for me I am not able to distinguish the both. looks same. If same why two terms? if not what is the difference? Thanking you all in advance.

    I am not expert at all, but here is what I found.
    The JDBC (Java Database Connectivity) Connector is a program that enables various databases to be accessed by Java application servers that are run on the Java 2 Platform, Enterprise Edition (J2EE) from Sun Microsystems. The JDBC Connector connects an application server with a JDBC driver. The Connector allows driver vendors to package drivers so that they will be plug-and-play with J2EE applications and enables application server vendors to allow third-party JDBC drivers to be used with their products. From what I understand a driver sits between a specific database and an arbitrary application.
    A connector sits between a driver and an application server. I am not knowledgeable enough to explain more,
    but I am sure the use of the two terms is intentional and not a mistake.
    Edited by: baftos on Feb 9, 2008 9:39 AM

  • Generic LDAP Connector

    Hi,
    do we have in OIM such as a Generic LDAP connector to connect
    LDAPs like OpenLdap?
    Thanks.

    The traditional solution to your problem is to take the "Sun Java System Directory" connector and customize it. All the LDAP based connectors are based on JNDI so they will work fine with any LDAP v3 server.
    I seem to remember that there was some talk of LDAP support in the generic technology connector framework but it doesn't look like the support is there in 9.1.
    Best regards
    /M

  • Configure Java Message Service Resources from java.

    Hi!
    I need to create, edit and delete JMS Resources from java,- but I can't find any documentations about this issue.
    I hope someone can point me to the right direction.
    Regards,
    Ixxi

    Hi!
    I'm attending to use Sun Application Server 8.1.
    I need to be able to configure all the JMS Resources using java - all the JMS commands you can do through the asadmin application.
    To minimize numbers of administrator interfaces to maintain our system, it would be best if we could access the Sun Application Server through java - and not using the asadmin command line / browser interface.
    e.g. command to written in java :
    asadmin> create-connector-connection-pool ...
    Regards,
    Ixxi

Maybe you are looking for

  • IPod not recognized by Computer or iTunes (but it used to be)

    Okay, I have an iPod, I had problems, and I fixed them, but what's making me mad is that my grandpa got one, and he's having the exact same problems and they can't be fixed in the same way. So here's what's happening: iTunes doesn't recognize the iPo

  • Awful Delivery and Set-up and very poorly trained employees

    We purchased a Samsung Range and Refrigerator and a Bosch Dishwasher.  Sales Associate AND Sales order state that appliances would be installed and set up (with an additional charge for dishwasher installation) In fact, I went to the store and talked

  • Can i have both Linux, Windows, and Leopard operating systems on my mac

    Can i use Bootcamp to have a Leopard OS, a Linux OS, and a Windows OS partitioned on my single Macbook?

  • Nokia 9500 connection problems

    Hi, I have a nokia 9500, and I am unable to synchronise my phone and pc via a USB cable. I am using the correct cable, and the latest version of the PC Suite is installed, as well as the cable drives but still, no joy. The pc picks up the phone when

  • 9i in 10g

    I'm attempting to make a 9i database from scratch running within 10g, has anyone ever tried this before. I played with the compatibility mode however the database creation wizard always gives me the error "must be 10.0 or above". Any hints. Thanks in