Run "ant" through classes

Hello,
I have a project that has a small distribution network and can draw splines about the amount of power the consumers and producers consume and produce.
This works.
Now I want to let a thread "scout" the entire network, searching for producers and starting from the consumers.
Main:public void startAnts() {
        ca0.startAnt(ca0);
        se0.startAnt(se0);
    }Consumer:
public void startAnt(Element e) {
        Ant a = new Ant(e);
        a.start();
    }Ant:
public Ant(Element e) {
        startLocation = e;
        System.out.println("eAnt " + startLocation.toString() + " speaking: ");
        System.out.println("==================================");
        scout(); //this should check if the consumer is connected, see to what it is connected to, "walk" to that connected element, save route in arrayList, ...
}So I just wan't to know how to get to the element that is connected to the consumer (is also an element).
Small network example:
pc1 is connected to a substation1 via cable1,
substation1 is connected to substation5 via cable3,
substation5 has a producer2 connected via cable6
The ant(thread) starts at pc1, looks at connections, looks what's on the other side, goes to substation1.
In substation1 he looks at connections, sees cable3, cable3 connected to substation5, go to substation5.
In substation5 he looks at connections, sees cable6, cable3 connected to producer2, go to producer2.
Save the path.
The choice in picking a connection is picked randomly, so it could be that the thread walks connections twice.
Hope this is a bit clear.
Edited by: Lektroluv on Jan 11, 2010 10:42 AM

paulcw wrote:
Lektroluv wrote:
paulcw wrote:
If you have a producer/consumer pair, a typical way of doing this is to instantiate one, then pass it to the constructor of the other when you instantiate that one.Can you give me a small example?
Producer p = new Producer();
Consumer c = new Consumer(p);
Ant a = new Ant(e);Seems the OP already knows about this concept, so I think there must be more to what he is asking. But beats me what it is.

Similar Messages

  • Can we run a java class in a external server through abap program?

    Dear Experts,
    Can we run a java class in an external server ( other than application server and client system )?
    I have tried running it in the client system through a program and it works.
    But i have the requirement of running it in another system. Can it be done?

    Hi,
    If this is the case I think you can call this web service from SAP and triger the execution of the application on the "external server".
    SAP is behaving as a client in this case.
    Another alternative:
    "have tried running it in the client system through a program and it works." please elaborate.
    Regards.

  • Oracle 10g (10.1.3.1.0) ant-oracle-classes.jar

    Hi,
    I dint find Ant Task for stopping/starting/restarting the Oracle Application Server, but the http://download-uk.oracle.com/docs/cd/B31017_01/web.1013/b28951/anttasks.htm#BEIHFIIC specifies that you can do so with the Ant Tasks. I went through "ant-lib.xml" present in the ant-oracle-classes.jar, even it does not have these tasks.
    Is it by any chance that Oracle shipped a wrong library of "ant-oracle-classes.jar" in Oracle 10g (10.1.3.1.0) is with that of Oracle 10g Release 3 (10.1.3), since this Release 3 does not support the stopping and starting of the server with the Ant tasks.
    If any one has any idea, please let me know.
    Whom should I report/ask?
    Can anyone give some pointers for the same. I would be very very thankful.
    Rgds,
    Prashanth Babu.

    Thanks a lot Mike.
    But then, the problems donot stop there.
    I went though the decompiled code of JSR88StartServer.java and JSR88ShutdownServer.java and found that doStartServer() of JSR88StartServer and doShutdownServer() of JSR88ShutdownServer, both call only one method ie deploymentManager.shutdown(), which is present in J2EEDeploymentManager class.
    Ideally, JSR88StartServer should start the server by invoking deploymentManager.restart(). But then, looks like there is a problem here too, since both these methods simply call shutdown only.
    And also, whenever I tried restarting the App Server from EnterpriseManager Console, it never restarts. It simply stops and does not do anything apart from that.
    Iam in a project where our applications have to be up and running on OAS 10g through automation of deployment ie either thru Ant Tasks or the J2EE Deployment API provided by Oracle. But, both the ways, it looks like there are one-too-many hurdles.
    Any inputs to the same would be of great help.
    I would just like to know, if any one has done the above. Please let me know.
    Rgds,
    Prashanth Babu.

  • Running Ant

    Have tried setting up and running ant with the J2EE tutorial and another java jackage on both NT 4.0 and Win2000Pro with no results. Set the env variables as per instructions (as user or admin) and get "The system cannot find the path specified " as the first return. I've run it in every directory conceivable including C:\ant\bin with the same results. I've been through the jakarta site, the ant manual and these forums. I can only conclude that there is some basic windows thing I'm missing. Also get a second return on Win2000Pro of "Exception in thread main java.lang.NoClassDefFound: org/apache/tools/ant/Main"
    What fives?
    Jim Jones

    Hi,
    Firstly there are issues with installing ant in a directory tree with spaces in it (ie under "Program Files"). So your d:\java\ant is a good idea.
    You have 2 errors which indicate different things:
    1. "The system cannot find the path specified "
    I think this is one of the vague windows error messages which means it can't find something. I'm about 99% sure that java has not started if you are getting this message, so the problem is in the ant.bat script (or your path settings). Run ant from the ant/bin directory, check that java is in the path, and then comment out the first line of the ant batch file "@echo off". Removing this line will let you see where in the ant.bat the problem is occuring.
    2. "Exception in thread main java.lang.NoClassDefFound: org/apache/tools/ant/Main" means it can't find the Main.class which lives in the ant.jar file that comes with ant. The ant batch file expects to find the jars file in "ANT_HOME%\lib". You can see if it will find with with the command:
    dir "%ANT_HOME%\lib"
    Make sure that your ant home points to the appropriate directory.
    Also check that your ant.jar actually contains files including Main.class.
    Lots of luck.
    Daniel.

  • URGENT PLEASE:How can I run a a class file on the Apache server?

    Hi Guys and Gurus,
    I am seeking some favor all of experienced gurus, i.e.
    How can I run a a class file on the Apache server? Can I run through an Applet?
    How can I set Environment variables in Windows2000 Professional Environment?
    Actually, I want to extract some records from a MySQL Database running on Apache Server. I wrote a program just to select the columns and show them. It is now a Class file, Now how can I run this class file from the Server???
    The code is here
    import java.sql.*;
    public class RecordShow {
    public static void main(String args[]) {
    String url = "jdbc:mysql://localhost/myhost";
    Connection con;
    String query = "select mytable.column," +
    "from mytable " +
    "where mytable.column = 1";
    Statement stmt;
    try {
    Class.forName("com.mysql.jdbc.Driver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    con = DriverManager.getConnection(url,
    "myuser", "mypassword");
    stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery(query);
    ResultSetMetaData rsmd = rs.getMetaData();
    int numberOfColumns = rsmd.getColumnCount();
    int rowCount = 1;
    while (rs.next()) {
    System.out.println("Row " + rowCount + ": ");
    for (int i = 1; i <= numberOfColumns; i++) {
    System.out.print(" Column " + i + ": ");
    System.out.println(rs.getString(i));
    System.out.println("");
    rowCount++;
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.print("SQLException: ");
    System.err.println(ex.getMessage());
    Please advise... THANKS
    VJ

    Ehm, I wasn't referring to you at all... read up,
    there's a comment by jschell saying that CGI might be
    easier/better for his purposes.
    Yep.
    I know PHP/Perl/whatever might be easier for some
    purposes, but only if you happen to know them and want
    to/are able to use them. Ok. But you aren't the one asking the question are you. And the person who asked the question seems to have absolutely no familiarity with Apache or applets.
    So whatever they do they are going to have to learn a lot.
    And that does indeed suggest that in all likelyhood they have not investigated the alternatives.
    And for the vast majority of internet applications, especially with smaller projects (obvious this person is not working with a large team), using perl, or something besides java, is going to be the best business solution. It is simpler, and more secure (probably due to the fact that it is simpler.)
    Since this is a Java forum, I
    answer under the assumption that people have made a
    choice one way or another to use a Java solution to
    their problem, so I try to solve it in Java first, and
    only when that fails (very seldom) do I turn to other
    solutions.You approach problems by arbritrarily deciding to try to solve it in java first and only if you fail do you then look to other solutions?
    My first step is to try to figure out which of the various avenues is going to cost less. (And a secondary, but non-trivial concern, is then to convince the customer that just because they have heard of a buzz word like 'enterprise bean' that it doesn't mean that is a cost effective solution.) We must come from different worlds.

  • How to run Ant from command line in Tarantella env?

    I am getting Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.tools.ant.launch.Launcher error message when I run Ant from tarantella command line. Is this Ant version issue? I can only find Ant with version 1.4.2. Where can I find the correct Ant version (1.6.5) and what class path do I need to specify if I want to run Ant from command line. This works if I run Ant inside of Jdeveloper 11g.
    thanks

    Hi
    What is the correct Java version? What are the steps to rectify the problem?

  • Javaee5 Tutorial first step error(can not run ant)

    Hi all,
    I have just installed Sun Java System Application Server enterprise Edition in my computer.
    My system is getoo .
    I copy the javaee5Tutorial to the directory of Sun Java System Application Server enterprise Edition
    Here is the error:
    in the bookstore1 directory: run ant
    Buildfile: build.xml
    BUILD FAILED
    /opt/SUNWappserver/javaeetutorial5/examples/web/bookstore1/build.xml:23: The following error occurred while executing this line:
    /opt/SUNWappserver/javaeetutorial5/examples/bp-project/main.xml:20: Class org.apache.tools.ant.taskdefs.ConditionTask doesn't support the "else" attribute.
    Total time: 1 second
    regards!
    aries211

    Hi all ....
    it's me again.....I just try a couple of minutes ago to run ANT for the bookstore1 of the Example Servlets of the Java EE 5 Tutorial and still getting this frustated error:
    C:\javaeetutorial5\examples\web\bookstore1>ant
    Buildfile: build.xml
    -pre-init:
    init:
    default-ear:
    build-common:
    -pre-init:
    init:
    default-ear:
    -pre-compile:
    bpp-actual-compilation:
    [echo] Compiling bookstore
    [javac] Compiling 11 source files to C:\javaeetutorial5\examples\web\booksto
    re\build\classes
    [javac] javac: invalid target release: 1.5
    [javac] Usage: javac <options> <source files>
    [javac] where possible options include:
    [javac] -g Generate all debugging info
    [javac] -g:none Generate no debugging info
    [javac] -g:{lines,vars,source} Generate only some debugging info
    [javac] -nowarn Generate no warnings
    [javac] -verbose Output messages about what the compiler
    is doing
    [javac] -deprecation Output source locations where deprecated
    APIs are used
    [javac] -classpath <path> Specify where to find user class files
    [javac] -sourcepath <path> Specify where to find input source files
    [javac] -bootclasspath <path> Override location of bootstrap class fil
    es
    [javac] -extdirs <dirs> Override location of installed extension
    s
    [javac] -d <directory> Specify where to place generated class f
    iles
    [javac] -encoding <encoding> Specify character encoding used by sourc
    e files
    [javac] -source <release> Provide source compatibility with specif
    ied release
    [javac] -target <release> Generate class files for specific VM ver
    sion
    [javac] -help Print a synopsis of standard options
    [subant] Failure for target 'default' of: C:\javaeetutorial5\examples\web\boo
    kstore\build.xml
    [subant] The following error occurred while executing this line:
    [subant] C:\javaeetutorial5\examples\bp-project\command-line-ant-tasks.xml:89
    : Compile failed; see the compiler error output for details.
    copy-common-jars:
    [mkdir] Created dir: C:\javaeetutorial5\examples\web\bookstore1\build\web\WE
    B-INF\lib
    BUILD FAILED
    C:\javaeetutorial5\examples\web\bookstore1\build.xml:36: Warning: Could not find
    file C:\javaeetutorial5\examples\web\bookstore\dist\bookstore.jar to copy.
    Total time: 1 second
    C:\javaeetutorial5\examples\web\bookstore1>
    Here it is the build.properties file
    # uncomment the property javaee.home, and add the path
    # to your GlassFish Java EE 5 SDK installation
    javaee.home=c:/Sun/AppServer
    javaee.tutorial.home=c:/javaeetutorial5
    # machine name (or the IP address) where the applications will be deployed.
    javaee.server.name=localhost
    # port number where the app-server is accessed by the users
    javaee.server.port=8080
    # port number where the admin server of the app-server is available
    javaee.adminserver.port=4848
    # Uncomment the property j2ee.server.username,
    # and replace the administrator username of the app-server
    javaee.server.username=admin
    # Uncomment the property j2ee.server.passwordfile,
    # and replace the following line to point to a file that
    # contains the admin password for your app-server.
    # The file should contain the password in the following line:
    # AS_ADMIN_PASSWORD=adminadmin
    # Notice that the password is adminadmin since this is
    # the default password used by the glassfish app-server installation.
    javaee.server.passwordfile=${javaee.tutorial.home}/examples/common/admin-password.txt
    appserver.instance=server
    # Uncomment and set this property to the location of the browser you
    # choose to launch when an application is deployed.
    # On Windows and Mac OS X the default browser is used.
    #default.browser=/Applications/Firefox.app/Contents/MacOS/firefox-bin
    # Database vendor property for db tasks
    db.vendor=javadb
    This is in my SYSTEM VARIABLE:
    CLASSPATH= c:\sun\appserver\lib;C:\Program Files\IBM\WebSphere MQ\Java\lib\providerutil.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mqjms.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\ldap.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jta.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jndi.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jms.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\connector.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\fscontext.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mq.jar;c:\j2sdk1.4.2_07;C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip\
    javaee.home = C:\\Sun\\AppServer
    JAVA_HOME = c:\j2sdk1.4.2_07
    Thank you in advanced....

  • How to read success/failure message while running sqlldr through php?

    Hi All,
    currently i am running sqlldr through PHP . i want to read both success and failure message from sqlldr.
    sometimes it fails to load data, but it shows record inserted
    is there ant way to figure it out succ or failure?

    With SQL Loader you can get errors at several levels.
    At the command line level by reading $? after it runs since it sets $ERROR_LEVEL correctly.
    It also creates many types of log files which can then be parsed that include but are not limited to:
    The [control file name].log and the [control file name].bad file which are created wherever you would like them to be created and named any way you would like them. The [control file name].bad file contains all records that were considered unacceptable by SQLLDR and therefor simply testing for that files existence will start you down the road to programatically dealing with errors.
    Yes I know the documentation for SQLLDR is worse then stereo instructions that started out in Japanese, then were translated to Greek then to Korean then finally into English but there are some pretty good examples out there.

  • Cannot get my iphone5 to synch with my new computer. i am running itunes through a virtual box, Every time I try a box appeares telling me to enter security code- ? anyone know how to solve this ?

    Cant get my iphone 5 to sync with my computer (new operating system). Am running XP through a virtual box. When I try to sync the phone it keeps asking for auto lock code, there is no box to type it into and I can find nothing on the phone itself to solve the problem.
    This makes it impossibble to sync with my itunes account. Anyone out there able to help ?

    Have you tried contactint the app's developer?

  • I am having a problem w/ my itunes working correctly due to accidentally running Itunes through my troubleshooting, running programs made for previous versions of windows!! How do I turn it off?!??

    I am having a problem w/ my Itunes working correctly, after accidentally running Itunes through my  troubleshooter  to, Run Programs Made For PreviousVersions of Windows. It keeps popping up that the Compatibility  Version is on, to make sure it's off before opening my Itunes Account. I've looked everywhere, Please, Please, How Do I Make This Right??!??

    It sounds like either your hard drive or the SATA cable that connects it to the motherboard are failing. This could be heat related in your case, which is why you see it after it runs awhile. You can take it to the Genius Bar for a free evaluation. If you decide to test it yourself, I usually suggest moving the hard drive to an external enclosure. If it works there for awhile, the cable is probably the issue.
    http://www.amazon.com/Sabrent-2-5-Inch-Aluminum-Enclosure-EC-TB4P/dp/B005EIGUD4/ ref=sr_1_3?ie=UTF8&qid=1397647657&sr=8-3&keywords=2.5+enclosure
    http://www.ifixit.com/Device/MacBook_Pro_13%22_Unibody_Mid_2009

  • How can I run a a class file on the Apache server?

    Hi Guys and Gurus,
    I am seeking some favor all of experienced gurus, i.e.
    How can I run a a class file on the Apache server?
    Actually, I want to extract some records from a MySQL Database running on Apache Server. I wrote a program just to select the columns and show them. It is now a Class file, Now how can I run this class file from the Server???
    Please advise...
    VJ

    cross posted
    http://forum.java.sun.com/thread.jsp?thread=299137&forum=31&message=1184025

  • ERROR WHILE RUNNING REPORT THROUGH FORMS.....!

    hi all,
    ive designed one form in Forms 9i...I'm tryin to run report through a Push button .....report is running well in paper layout through report builder 9i...The problem I'm facing is dat when i pressed button it is giving me error initially as FRM-41214 cannot run report and after that FRM-40735 When button pressed unhandled exception ora-06502.....What could go wrong??... Ive started OC4J instance ....created report object in object nevigator as well and defined basic properties for diff.parameters HTMLCSS,CACHE..etc.,mentioned report path in complete i.e.c:\reports\genbill.rdf ...Can anybody help me out ??? Thnx.!
    -----------------------CODE ON BUTTON----------------------------------
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    repid := FIND_REPORT_OBJECT('REPORT5');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('<HOSTNAME>:8889/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=myrepserver','_blank');
    ELSE
    message('Error when running report');
    END IF;
    PAUSE;
    END;

    When a report terminates with an error, REPORT_OBJECT_STATUS returns the value "TERMINATED_WITH_ERROR", which is 21 bytes of data, but rep_status is defined as 20 bytes. The 6502 error is due to the data not fitting the variable.
    I recommend wrapping the REPORT_OBJECT_STATUS function with a SUBSTR that limits the data returned to 20 bytes, which will ensure the results fit.
    For example:
    rep_status := SUBSTR(REPORT_OBJECT_STATUS(v_rep), 1, 20);

  • How can I compile and run other java classes from within an application?

    Hello there everyone! I really hope that someone can help me. I am writing a program that must be able to compile and run other java classes that are in different files, much like development environments like Kawa or Forte allow you to do.
    There has to be a way of doing this ( I hope!! ), but i can't seem to find it!!
    I have tried using this command to compile:
    Runtime.getRuntime().exec ("c:\\programs\\javac className.java");
    ...and this one to run:
    Runtime.getRuntime().exec ("c:\\programs\\java className");
    ...but neither works!!! I can compile and run classes that are in the same file as my application, but I can't get it to work at all for files in different directories or files.
    PLEASE, PLEASE, PLEASE help me - i've run out of ideas, and i need this to be working in 3 days!!!
    Thank you very much for any help anyone can give me, I really appreciate it!! Thanks again!!
    Adrian ( ...in distress!! )

    public class JavaCompiler{
       public static void main(String[] args)throws Exception{ //sorry bout the laziness
          if(args == null || args.length != 1){
             System.out.println("Usage: java JavaCompiler MyClass.java");
             System.exit(0);
          String className = args[0];
          Runtime rt = Runtime.getRuntime();
          Process p = rt.exec("javac " + className); //consider setting cpath for this
          p.waitFor();
          //now try to run after it is done.
          p = rt.exec("java " + className.substring(0, (className.length() - ".java".length()));
          p.waitFor();
          //do some other stuff
    }This should get you going. You may consider looking into the System.getProperty() method in order to determine the type of OS it is running on in order to findo out what command to run. I know that the sun tool listed above is nice, but by my understanding the sun tools provided are not guaranteed to stay the same. I'm no expert on this matter, but that is one of the reasons there is no API documentation for those tools. Also, I don't believe those tools come packaged with the JRE. (Of course if you are making an IDE it will be expected that the user has an sdk installed. Good luck with figuring this thing out.

  • Running a Java Class in Workshop

    I'm trying to run a Java class with a public static void main method in Workshop. As instructed I opened the properties for the Java project, under the debbuger tab, checked Build before debugging. Then under "Create new process settings", in the Main Class box put the class with the main method with proper package structure. Clicked Ok. When I click the start button, the project builds, the process starts, the last message in the Output box is "Process Started" but then nothing happens. No System.out.println statements show. If I set breakpoints it never gets there. No values ever get set or changed in the Locals box. What am I missing?

    Thanks your response. I'm on sp3.
    The application is "Factory".
    The Java Project in "Factory".
    In the Java project there is a folder "pac", in that folder there is a class with a main method called "ProviderClient"
    In the "Factory" Java project properties/debugger window, Build before debugging is checked, also Create new process. Main class: pac.ProviderClient
    Home directory: C:/bea/user_projects/MyApps/Factory/Factory/
    (It was put there autopmatically when I clicked Browse as you said).
    When I run I get:
    Trying to create process and attach to 3640...
    Starting process in C:\bea\user_projects\MyApps\Factory\Factory
    C:\bea\jdk142_04\bin\javaw.exe -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=3640,suspend=y,server=y -classpath "C:\bea\user_projects\MyApps\Factory\APP-INF\lib\Factory.jar;C:\bea\user_projects\MyApps\Factory\EJBs.jar;C:\bea\jdk142_04\jre\lib\rt.jar;C:\bea\jdk142_04\jre\lib\jsse.jar;C:\bea\jdk142_04\jre\lib\jce.jar;C:\bea\jdk142_04\lib\tools.jar;C:\bea\weblogic81\server\lib\knex.jar;C:\bea\weblogic81\common\lib\log4j.jar;C:\bea\weblogic81\server\lib\debugging.jar;C:\bea\weblogic81\javelin\lib\javelin.jar;C:\bea\weblogic81\server\lib\wlw-lang.jar;C:\bea\weblogic81\server\lib\weblogic.jar;C:\bea\weblogic81\common\eval\pointbase\lib\pbserver44.jar;C:\bea\weblogic81\common\eval\pointbase\lib\pbclient44.jar;C:\bea\weblogic81\server\lib\webservices.jar;C:\bea\weblogic81\server\lib\webserviceclient.jar;C:\bea\weblogic81\server\lib\webserviceclient+ssl.jar;C:\bea\weblogic81\server\lib\wli.jar;C:\bea\weblogic81\server\lib\xbean.jar;C:\bea\weblogic81\server\lib\wlxbean.jar;C:\bea\weblogic81\server\lib\xqrl.jar;C:\bea\weblogic81\server\lib\netui\netui-compiler.jar" pac.ProviderClient
    Process started
    After a long time I get "Could not attach to debuggee process.
    Debugging Finished"
    What am I doing wrong?

  • Run a java class in Oracle db to connect to Sybase

    Hi All, I'm looking for a way to connect to Sybase database at no-license-cost (meaning Oracle Gateway or similar 3rd party products), first coming idea was JDBC, I know I can run a java class in Oracle, the simple idea is to write a java class which connects to Sybase via JDBC thin driver and return the resultset of given query in a java class, the resultset will be presented in Oracle Apex framework.  Does anyone know if this can be done or not, and how?  Any howto articles are welcomed.
    Henry

    Henry:
    To connect to Sysbase or MsSQL Server you could use jTDS open source driver.
    http://sourceforge.net/projects/jtds/
    upload above driver (jar file) using loadjava, and grants the port connection using dbms_java.grant_permission procedure.
    Because jTDS is pure java driver (mode 4) is possible to use directly inside the RDBMS.
    Best regards, Marcelo.
    PD: Latest jtds driver is compiled against 1.6 sources, but oldest version will work with 1.5 for 11g.

Maybe you are looking for

  • Definition could not be found

    I am getting a couple of error when I try to use a component as a itemrender for my tile list. Both of these mxml files are in the same folder. I am getting the following errors. 1120 Access of undefinded property PropertyThumb 1172 Definition Proper

  • My iPad froze, then my passcode was not working.

    I was using my iPad mini wifi 32GB, everything was going fine as i was looking through my pictures and videos with family.  Then, out of nowhere, the iPad went dark and I couldn't restart it.  I set it down and after about 30 minutes and then tried a

  • Inputting multiple languages in the command prompt

    I'm trying to write a program that requires input in Japanese and English. I really would like to make it as simple as possible and use a command line interface. Currently I'm working on an English version of Windows XP with Japanese support enabled.

  • [svn:fx-trunk] 11642: Simple fix for non-integer translations by first multiplying to twips before casting to int .

    Revision: 11642 Author:   [email protected] Date:     2009-11-10 19:40:31 -0800 (Tue, 10 Nov 2009) Log Message: Simple fix for non-integer translations by first multiplying to twips before casting to int. QE notes: Please test non-integer translation

  • Yet another error 8 problem, please help!

    I've read a lot of the archives on this topic, but still can't figure it out. I got an iMac and my father got one too. He has adelphia with ip phone system, and his machine is hard wired to the network. I have comcast with wireless Belkin N router an