Jython compile errors ...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • donkeyboy

    #1

    Jython compile errors ...

    All,

    I've tried the jythonc compiler to try and create an applet to see how
    it works, but I get a number of Java compile errors that are way above
    my knowledge. Does anyone know what any of the following means? I'm
    using JDK 1.5.0_09, under Win XP SP2.

    Runnnig the file " jython FILENAME" works, so I don't know what's
    happening. Any thoughts?

    C:\EclipseWorkb ench\Jython>jyt honc -d --jar leaders.jar jy_leaders.py
    processing jy_leaders

    Required packages:
    javax.swing
    java.lang
    java.awt
    java.applet
    java.util

    Creating adapters:
    java.awt.event. ActionListener used in jy_leaders

    Creating .java files:
    jy_leaders module
    MyDrawPanel extends javax.swing.JPa nel
    Main extends java.applet.App let

    Compiling .java to .class...
    Compiling with args: ['c:\\Program
    Files\\Java\\jd k1.5.0_09\\bin\ \javac', '-clas
    spath',
    'C:\\jython\\jy thon.jar;;.\\jp ywork;;C:\\jyth on\\Tools\\jyth onc;C:\\Ecli
    pseWorkbench\\J ython\\.;C:\\jy thon\\Lib;C:\\j ython',
    '.\\jpywork\\jy _leaders.jav
    a']1 .\jpywork\jy_le aders.java:3: <identifierexpe cted
    public class jy_leaders extends java.lang.Objec t {
    ^
    ..\jpywork\jy_l eaders.java:8: '{' expected
    public static class _PyInner extends PyFunctionTable implements
    PyRunnable {

    ^
    ..\jpywork\jy_l eaders.java:419 : ')' expected
    Py.initProxy(th is, "jy_leaders ", "MyDrawPane l", args, 2
    jython_leaders_ sandbox.jpy$pac kages, jy_leaders.jpy$ proxyProperties
    , "", new String[] {"jy_leaders"}) ;

    ^
    ..\jpywork\jy_l eaders.java:548 : ')' expected
    Py.initProxy(th is, "jy_leaders ", "Main", args, 2jython_
    leaders_sandbox .jpy$packages, jy_leaders.jpy$ proxyProperties , "", n
    ew String[] {"jy_leaders"}) ;

    ^
    ..\jpywork\jy_l eaders.java:565 : ')' expected
    Py.runMain(jy_l eaders._PyInner .class, newargs, 2jython_lead
    ers_sandbox.jpy $packages, jy_leaders.jpy$ mainProperties, "", new St
    ring[] {"jy_leaders"}) ;
    ^
    ..\jpywork\jy_l eaders.java:565 : ';' expected
    Py.runMain(jy_l eaders._PyInner .class, newargs, 2jython_lead
    ers_sandbox.jpy $packages, jy_leaders.jpy$ mainProperties, "", new St
    ring[] {"jy_leaders"}) ;
    ^
    ..\jpywork\jy_l eaders.java:565 : <identifierexpe cted
    Py.runMain(jy_l eaders._PyInner .class, newargs, 2jython_lead
    ers_sandbox.jpy $packages, jy_leaders.jpy$ mainProperties, "", new St
    ring[] {"jy_leaders"}) ;
    ^
    ..\jpywork\jy_l eaders.java:565 : '{' expected
    Py.runMain(jy_l eaders._PyInner .class, newargs, 2jython_lead
    ers_sandbox.jpy $packages, jy_leaders.jpy$ mainProperties, "", new St
    ring[] {"jy_leaders"}) ;


    ^
    ..\jpywork\jy_l eaders.java:569 : '}' expected
    ^
    9 errors

    ERROR DURING JAVA COMPILATION... EXITING

    Any help would be of great assistance -- thanks in advance.

  • Eric_Dexter@msn.com

    #2
    Re: Jython compile errors ...

    If you are looking for an example of jython there is one in embeded in
    csound blue. available from the csounds.com website I believe. I have
    used it under the new java framework. I am not far enough along to
    know if you are missing brackets {} exc and () and one ; but you can
    try getting the python part to work under python 2.3


    https://sourceforge.net/project/show...roup_id=156455

    donkeyboy wrote:
    All,
    >
    I've tried the jythonc compiler to try and create an applet to see how
    it works, but I get a number of Java compile errors that are way above
    my knowledge. Does anyone know what any of the following means? I'm
    using JDK 1.5.0_09, under Win XP SP2.
    >
    Runnnig the file " jython FILENAME" works, so I don't know what's
    happening. Any thoughts?
    >
    C:\EclipseWorkb ench\Jython>jyt honc -d --jar leaders.jar jy_leaders.py
    processing jy_leaders
    >
    Required packages:
    javax.swing
    java.lang
    java.awt
    java.applet
    java.util
    >
    Creating adapters:
    java.awt.event. ActionListener used in jy_leaders
    >
    Creating .java files:
    jy_leaders module
    MyDrawPanel extends javax.swing.JPa nel
    Main extends java.applet.App let
    >
    Compiling .java to .class...
    Compiling with args: ['c:\\Program
    Files\\Java\\jd k1.5.0_09\\bin\ \javac', '-clas
    spath',
    'C:\\jython\\jy thon.jar;;.\\jp ywork;;C:\\jyth on\\Tools\\jyth onc;C:\\Ecli
    pseWorkbench\\J ython\\.;C:\\jy thon\\Lib;C:\\j ython',
    '.\\jpywork\\jy _leaders.jav
    a']1 .\jpywork\jy_le aders.java:3: <identifierexpe cted
    public class jy_leaders extends java.lang.Objec t {
    ^
    .\jpywork\jy_le aders.java:8: '{' expected
    public static class _PyInner extends PyFunctionTable implements
    PyRunnable {
    >
    ^
    .\jpywork\jy_le aders.java:419: ')' expected
    Py.initProxy(th is, "jy_leaders ", "MyDrawPane l", args, 2
    jython_leaders_ sandbox.jpy$pac kages, jy_leaders.jpy$ proxyProperties
    , "", new String[] {"jy_leaders"}) ;
    >
    ^
    .\jpywork\jy_le aders.java:548: ')' expected
    Py.initProxy(th is, "jy_leaders ", "Main", args, 2jython_
    leaders_sandbox .jpy$packages, jy_leaders.jpy$ proxyProperties , "", n
    ew String[] {"jy_leaders"}) ;
    >
    ^
    .\jpywork\jy_le aders.java:565: ')' expected
    Py.runMain(jy_l eaders._PyInner .class, newargs, 2jython_lead
    ers_sandbox.jpy $packages, jy_leaders.jpy$ mainProperties, "", new St
    ring[] {"jy_leaders"}) ;
    ^
    .\jpywork\jy_le aders.java:565: ';' expected
    Py.runMain(jy_l eaders._PyInner .class, newargs, 2jython_lead
    ers_sandbox.jpy $packages, jy_leaders.jpy$ mainProperties, "", new St
    ring[] {"jy_leaders"}) ;
    ^
    .\jpywork\jy_le aders.java:565: <identifierexpe cted
    Py.runMain(jy_l eaders._PyInner .class, newargs, 2jython_lead
    ers_sandbox.jpy $packages, jy_leaders.jpy$ mainProperties, "", new St
    ring[] {"jy_leaders"}) ;
    ^
    .\jpywork\jy_le aders.java:565: '{' expected
    Py.runMain(jy_l eaders._PyInner .class, newargs, 2jython_lead
    ers_sandbox.jpy $packages, jy_leaders.jpy$ mainProperties, "", new St
    ring[] {"jy_leaders"}) ;
    >
    >
    ^
    .\jpywork\jy_le aders.java:569: '}' expected
    ^
    9 errors
    >
    ERROR DURING JAVA COMPILATION... EXITING
    >
    Any help would be of great assistance -- thanks in advance.

    Comment

    • John Machin

      #3
      Re: Jython compile errors ...


      Eric_Dexter@msn .com wrote:
      If you are looking for an example of jython there is one in embeded in
      csound blue. available from the csounds.com website I believe. I have
      used it under the new java framework. I am not far enough along to
      know if you are missing brackets {} exc and () and one ; but you can
      try getting the python part to work under python 2.3
      >
      >
      https://sourceforge.net/project/show...roup_id=156455
      >
      donkeyboy wrote:
      All,

      I've tried the jythonc compiler to try and create an applet to see how
      it works, but I get a number of Java compile errors that are way above
      my knowledge. Does anyone know what any of the following means? I'm
      using JDK 1.5.0_09, under Win XP SP2.

      Runnnig the file " jython FILENAME" works, so I don't know what's
      happening. Any thoughts?
      [snip]

      I was about to nominate somebody else for the monthly Most Astonishing
      Result of Misreading a Post award, but the above just blew it away :-)

      Comment

      Working...