Linking python and Java

Hello there. im in need of a little help.
I about to embark on a project where I have a cad program that has a built in python api, so the user can write a script and automate running a series of simulations in the program. My project is to write an equivalent java api from the python one. So basically i need to make and api for an api and call the python methods from my java api. What is the best way of linking the two languages? I have read a little into the JNI, is this the direction i need to be going in?
Many thanks for any help.

sorry for the rudeness.
this topic has also been posted here http://www.java-forums.org/new-java/12669-python-api.html#post39942
with regards to the jython comment, i should have mentioned the program requires python 2.5.2. Does this mean jython will not be usable?
Thanks

Similar Messages

  • Python vs Java - simple benchmark comparison

    Hi all,
    I recently posted a speed comparison of Python vs Java.
    Following Xentac's suggestion, I imported Psyco to see if I could get any JIT benefits in the Python scripts. I then tried the latested Java JDK6 dev binaries too. This follow-up can be found here.
    Please be aware that I'm totally aware of the vast limitations of micro-benchmarks like these. Still, although they are based on someone else's code, I like them because they represent the typical tasks I often carry out in both my Python and Java programming: IO, lists, hashes, for loops, etc.
    Any comments welcome, especially on how to optimise the Python code. I can already see a couple of ways that ought to improve the Java tests.

    I agree. I honestly am not trying to say that Java is better and Python is rubbish. I love em both. There's not a great deal of difference for the most part.
    I just felt that people assumed that Java was slow because they've heard it's slow, or had prior experience of the old versions.
    I have friend's saying "ugh, Java is sloowwww." And so avoid it. Yet, these same people rave about Perl and Python apps. My point was simply, hate Java for other reasons - not speed!
    You may notice that the Java executable is only 63K. The bulk of Java comes from its extensive class library that ships with the runtime. People think that Java must load up all the classes or something before running, when in fact it only ever loads with it needs. So, whilst the package itself is large, any sure, it does require more memory than other languages, I just don't believe it's as bulky as some assume.
    The motivation for those benchmarks was a comment on Frugalware's IRC channel where someone tried it out, said it was slow, removed it, and preferred the Python/gtk front-end they have instead. Followed with some insightful remark that Java only for web apps! I don't mind others prefering other front-ends. But is Jacman really slow? Please tell me, because it runs like a dream on my system. It would go even quicker if with pacman-optimize.

  • Links for ABAP and JAVA Admin + Troubleshooting

    Hi Gurus,
    Can anyone send me the useful links for Admin + Troubleshooting in SAP BASIS i.e. ABAP and JAVA ?
    Also, which are the Routing Maintenance Tasks in SAP BASIS ?
    Any / All help is most welcome and would be rewarded with suitable points.
    Many Thanks in Advance ,
    Regards,
    - Ishan

    Hello Balaji,
    Yes, you can connect the JAVA user adminsitration with the Single CUA.
    Make use of the JAVA UME feature for this.
    http://help.sap.com/saphelp_nw04/helpdata/en/49/9dd53f779c4e21e10000000a1550b0/content.htm
    Regards,
    Ammey Kesarkar

  • Html and email link in a java application

    Hi all
    How do you put a email or HTML link into a Java application.
    I want to put my web site address and email address into a about dialog.
    I would like to be able to open the default email application and web site from this dialog box.
    Thanks to all
    Craig

    Try just making a label, and formatting it to look like a generic link. Then add a listener that performs the desired action when you click on it. The "desired action" would probably involve starting the user's default browser/mail-program and loading something in it. I have no idea how to do that, but the above should at least get you a "link" that responds when you click it, and that's a start.

  • Link between oracle and java

    Please, can you explain me the link between oracle and java.

    The link b/w oracle and java is through
    driver.
    Driver name :JDBC

  • I know c,c++ and java language ! and i want to contribute for development of mozilla products ! any idea where i can find beginner level projects ?

    I know c,c++ and java language ! and i want to contribute for development of mozilla products ! any idea where i can find beginner level projects ! so that i can hone some real development skills too :)

    You could also try jumping in on some of the Mozilla IRC chat channels as was suggested to someone else in another thread.
    Also you could also try the [/forums/buddies new contributors forum], it does now have an Admin monitoring and replying. (At the time of the quoted post Admins were almost impossible to get hold of for forum matters )
    ''Noah_SUMO [/forums/buddies/710569#post-61671 said]''
    <blockquote>
    Sorry I didn't see this earlier. :)
    I know just the places where I think you'd fit in best. To make sure, just join us in #sumodev and #mozwebqa and #communityit at irc://irc.mozilla.org
    I think your skills in php, javascript, python and server admin-y stuff will come in real handy at these places. :D
    For example, some help is needed here to fix these tests after a new theme was added to wiki.mozilla.org and they are in python. https://github.com/mozilla/wiki-tests - more info in #mozwebqa
    And maybe some help with perl might be needed with firebot, a irc bot written in perl. Channel #firebot for that.
    And #communityit (for server admin stuff) and #sumodev could use some help as well, just pop in and ask. :)
    </blockquote>
    Also see
    * [[Contributor News & Resources#w_communication-channels]]_communication-channels
    ** Mibbit link (this one for #sumo channel ) https://www.mibbit.com/?server=irc.mozilla.org&channel=%23sumo
    P.S. and see
    * https://wiki.mozilla.org/Good_first_bug

  • Java plugin doesn't work, even though it's installed correctly and java programs work.

    As stated. I have a link in ~/.mozilla/plugin that points to test/jre/plugin/i386/ns7/libjavaplugin_oji.so, which is the java 6 update 21 runtime environment.
    Java doesn't show in about:plugins, and java applets don't start (firefox suggests to install missing plugins).
    Java programs using the jre outside the browser work.
    This is on Linux 32-bits, Slackware 13.0, kernel 2.6.34.

    <blockquote>As stated. I have a link in ~/.mozilla/plugin that points to test/jre/plugin/i386/ns7/libjavaplugin_oji.so, which is the java 6 update 21 runtime environment.
    </blockquote>
    Where did you read that?<br />
    See http://kb.mozillazine.org/Java<br />
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html
    <pre><nowiki>ln -s /usr/local/java/jre1.6.0_20/lib/i386/libnpjp2.so libnpjp2.so
    ln -s /usr/lib/jvm/jre/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/libnpjp2.so (java-1_6_0-sun-plugin)
    </nowiki></pre>

  • I have been getting java.lang.ClassNotFoundException: ZeroApplet.class and java.lang.ClassNotFoundException: JavaToJS.class crashes with JRE version 1.6.0_26-b03-384-10M3425 VM executing a Java Applet. Is Apple aware of this problem? No longer supported?

    My web page uses a Java Applet to allow my visitors to replay chess games; the Chess Viewer Deluxe applet was written by Nikolai Pilafov some time ago and has been working properly for some time (until recently). I don't monitor this part of my site regularly so I am not sure when it began to fail. On his web site [http://chesstuff.blogspot.com/2008/11/chess-viewer-deluxe.html] he has a link to check LiveConnect object functionality (which fails for OBJECT tags). His recommendation is to "seek platform specific support which might be available from the JRE developers for your platform".
    I have been getting java.lang.ClassNotFoundException: ZeroApplet.class and java.lang.ClassNotFoundException: JavaToJS.class crashes with JRE version 1.6.0_26-b03-384-10M3425 VM executing a Java Applet. Until I checked the LiveConnect object functionality, I was unable to identify the source of the console error messages. This does seem to be the smoking gun.
    Is Apple aware of this problem? Are these classes no longer supported? Has anyone else had this problem? You can attempt to recreate the problem locally by going to my web page: http://donsmallidge.com/DonSmallidgeChess.html
    Thanks in advance for any help you can provide!
    Abbreviated Java Console output:
    Java Plug-in 1.6.0_26
    Using JRE version 1.6.0_26-b03-384-10M3425 Java HotSpot(TM) 64-Bit Server VM
    load: class ZeroApplet.class not found.
    java.lang.ClassNotFoundException: ZeroApplet.class
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java:807)
        at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2389)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
        at sun.applet.AppletPanel.run(AppletPanel.java:368)
        at java.lang.Thread.run(Thread.java:680)
    load: class JavaToJS.class not found.
    java.lang.ClassNotFoundException: JavaToJS.class
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java:807)
        at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2389)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
        at sun.applet.AppletPanel.run(AppletPanel.java:368)
        at java.lang.Thread.run(Thread.java:680)

    I just went up to check the LiveConnect object functionality page AND IT WORKED THIS TIME! I must confess, this is very mysterious. I will do some more checking and reply here if I can determine why it is working now (and more importantly, why it didn't work before).

  • How to generate all the links of the java api methods

    Hi all,
    I noticed from my docs that the JAVA API methods are not linked. They are just static text. How can i link all the java api methods to a root url examble: java.sun.com/j2se/docs/javax/JFrame#pack()
    java.sun.com/j2se/docs/javax/JFrame#setVisible()
    java.sun.com/j2se/docs/java/sql/ResultSet#executeQuery()
    and so on.
    Thank you in advance.

    It sounds like you'd like to link to our docs on java.sun.com.
    You can do this using -link or -linkoffline
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/javadoc.html#link
    Start by reading the section "Choosing between -linkoffline and -link"
    Basically, try this option first:
    -link http://java.sun.com/j2se/1.4/docs/api
    If this fails (because your shell cannot access java.sun.com),
    then copy package-list from java.sun.com to your current directory,
    then use this option:
    -linkoffline http://java.sun.com/j2se/1.4/docs/api .
    Notice that the second argument is a dot "." to indicate
    that package-list is in the current directory.
    -Doug Kramer
    Javadoc team

  • Sending Data from R/3 to Java and Java to SAP

    Dear All,
    I am working on a scenario in which I have to send data from sap system to Non-SAP system (Java System).
    Now one way is that I made a RFC in my SAP system and Java can call it using JCO adapter. But In this case I am not able to understand how to go another way,means how to capture data or messages from Java.
    Secondly I have searched and found that IDOC can help me lot in this process ,I am new to IDOCS but through R & D , I have made the IDOC and done the following steps:-
    1. Segment Creation (WE31)
    2. IDOC Types          (WE30)
    3. Message Type     (WE81)
    4. Linking Message type and IDOC type (WE82)
    5. Create Distribution Model (BD64)
    Now I am struck on 5th step , I am not able to distribute model when I distribute it I get the following Error
    Target system AII_00_800                  RFC destination for synchronous communication (message type SYNCH)
                                                                 Partner profile LS AII_00_800 SYNCH does not exist
                                                                 Generate partner profile
                                                                  or specify outbound partner profiles for message type SYNCH
    Target system JAVASYS                    RFC destination for synchronous communication (message type SYNCH)
                                                                  Partner profile LS JAVASYS SYNCH does not exist
                                                                 Generate partner profile
                                                                 or specify outbound partner profiles for message type SYNCH
    JAVASYS is the logical system I created using SALE and ALL_00_800 is already there in LS.
    I am not able to understand that my receiver system is NON SAP system so do I have to create logical system for it , and I have IDES system as sender system with only one client 800, what are all the configuration I have to do on SAP side.
    I am also not able to understand where I will write my code to fetch data based on the input provided by NON SAP system as I will have to design IDOC for both Inbound and Outbound processes.
    Kindly help me out, thanks in advance

    Hi Kanagaraja L,
    Thanks for you response.
    No I haven't created Created RFC Destination , this RFC destination will be of my JAVA system ???.
    I have tried creating the partner logical system in WE20 and dine the following steps:
    1. Partner No.   IDES800     Ides 800 System - Sender System
        Partn.Type    LS          Logical system
    2. The tab Post processing : permitted agent is filled with default parameters.
    3. Then in the outbound parameter table control I have pressed the add record button and got a new screen in
        which I have made the following entry :-
      Partner No.           IDES800        Ides 800 System - Sender System
      Partn.Type            LS             Logical system
      Partner Role          LS             Logical system
        Message Type      SYNCH                            ALE:Dummy Message Type for De
        Message code
        Message function
    Under tab Outbound options :
    Receiver Port  = A000000008  (This I have selected from F4 help)
    Basic type = SYNCHRON
    Saved it with the above data.
    Now I am not able to understand how to do the things you have mentioned in 3rd step in your reply.
    What are all the things I have to do kindly tell , as I am very new to Idocs so don't have much knowledge.
    Edited by: Rachit Khanna on Dec 7, 2009 1:49 PM

  • Lion Server Java Control Panel and Java applications empty?

    I have installed FileMaker Server 12 on a Lion Server (10.7.5). The server is pretty clean, only a few users have been set up for CalDAV and CardDAV use in a small company. While installing the FileMaker software shouted for Java, which I installed from Oracle, version 7 update 10 (used the link).
    But Java is not running fine as it seems. When I open System Preferences - Java to open the Java Control Panel, the panel shows up but is completely empty. And so for any Java program I run, all windows will show up empty.
    Any ideas anyone?

    Try clearing the java cache manually.
    /Users/username/Library/Caches/Java/cache/
    if that doesn't work follow this process.
    Uninstall the JRE7
    Restart
    Install Java for OS X 2012-006
    Restart
    Install JRE7
    Restart
    Lastly, if this is a hackintosh you may be fighting a uphill battle. I saw a known issue posted by oracle with some graphics cards that produced this issue on windows.  

  • Abap and java refresh

    Hi friends,
    If anybody knows how to refresh an abap and java systems (not abap+java addin)
    can you please send the docs?
    Thanks.

    Hi,
      Plz check this link for ABAP refresh.
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/fb/35c62bc12711d4b2e80050dadfb92b/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/fb/35c62bc12711d4b2e80050dadfb92b/content.htm</a>
    Regards,
    Subhasha Ranjan

  • PI Pipeline Doubt : Pipeline Steps in ABAP stack and JAVA stack

    Hello
    Can anyone please assist me with which stages steps of the PI Pipeline are executed on the Java or the ABAP stack.
    Receiver Determination
    Interface Determination
    Message Split
    Message Mapping
    Technical routing
    Call Adapter
    Also can anyone please provide links relating to the PI architecture diagram describing it from ABAP and Java Stack Perspective and not from the Components perspective i.e. Integration Repository and Directory.
    Thanks.
    Kiran

    Hi
    Tha ABAP stack consists of the Integration Server which in turn contains your Integration Engine and Business Process Engine.
    The J2EE stack contains the Adapter Engine and your IR and ID run on the J2EE engine.
    Most of XI pipelines happens in the ABAP stack.
    All messsages picked by the Adapter Framework running on the J2EE engine are passed to the Integration Engine, which does the routing. The mapping program again gets executed on the Java stack and the rest of the pipeline servies are executed again on the ABAP stack and so on.
    Message, Java & XSLT (under Imported Archives) mappings are executed at Java stack;
    ABAP & XSLT (in ABAP stack) mappings are executed at ABAP stack.
    PI Architecture  look threads
    Architecture
    /message/5802842#5802842 [original link is broken]

  • Error during VM container communication between ABAB and Java

    Hi All
    Once in a while we get this error while creating shopping cart.
    'Error during VM container communication between ABAB and Java"
    Why ?  only one user has thos problem
    SAP SRM 5 .0
    what could be the reason ?
    It is not happening always.
    any help /reason for this error is appreciated?
    br
    muthu

    Hi,
    Please check the below link :
    /message/6055324#6055324 [original link is broken]
    i hope this will help you..
    With Regards,
      CSK

  • Java Web Start and Java Preferences

    I am having trouble with Java Web Start and Java Preferences. I have tried reinstalling the update with the link http://www.apple.com/downloads/macosx/apple/application_updates/javaformacosx105 update6.html but to no avail. What else can be done ? Moreover the file /System/Library/Frameworks/JavaVM.framework/Versions/A/ seems to be in place, but Java Web Start wont open and Java Preferences can't access cache files. Any ideas about how to resolve this? I have been having issues with Java for a long time and have already done a clean Leopard reinstall and all the Combo updates. Java Web Start and Java Preferences worked correctly for a while after that but seem to have gone haywire again.

    bump

Maybe you are looking for

  • Hard disk failure HP G7000 laptop

    Hi, I'm getting hard disk failure on a HP G7000 laptop. The machine boots fine from DVD drive using a Linux boot disk. Vista installed on machine. No recovery disk was created when machine was first bought and any disks provided with the machine whe

  • Z10 will not charge & with new Battery will not turn on

    I have have had my Z10 about a month now, I am gernerally happy with it as a work phone which is similar to my private Iphone5. Unfortunately the Battry life has been reducing on a weekly basis to around 4 hrs between charges. Now it is dead and will

  • Info required

    Hi, I am intending to buy a new laptop. Can anyone guide me about the minimum config required to run ECC 6.0 successfully.pls mention OS as well. I think Vista does not support and only XP serves. Well, detailed config is appreciated. Thx

  • 1 master 2 detailregions

    I have an idea but I can't figure out the solution to a problem. Let me explain what I'm trying to do and I'll see if anyone has an idea. I'm sure it's something easy that I'm missing. i have two mysql tables I'd like to make datasets out of to displ

  • How I authorize a new PC?

    I have just bought a new PC and have loaded itunes and synced with my ipad.  When I try to play a video on the new PC I get a message that says I need to uathorize the computer in order to download.  How do I do that?