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:\EclipseWorkbench\Jython>jythonc -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.JPanel
Main extends java.applet.Applet
Compiling .java to .class...
Compiling with args: ['c:\\Program
Files\\Java\\jdk1.5.0_09\\bin\\javac', '-clas
spath',
'C:\\jython\\jython.jar;;.\\jpywork;;C:\\jython\\T ools\\jythonc;C:\\Ecli
pseWorkbench\\Jython\\.;C:\\jython\\Lib;C:\\jython ',
'.\\jpywork\\jy_leaders.jav
a']1 .\jpywork\jy_leaders.java:3: <identifierexpected
public class jy_leaders extends java.lang.Object {
^
..\jpywork\jy_leaders.java:8: '{' expected
public static class _PyInner extends PyFunctionTable implements
PyRunnable {
^
..\jpywork\jy_leaders.java:419: ')' expected
Py.initProxy(this, "jy_leaders", "MyDrawPanel", args, 2
jython_leaders_sandbox.jpy$packages, jy_leaders.jpy$proxyProperties
, "", new String[] {"jy_leaders"});
^
..\jpywork\jy_leaders.java:548: ')' expected
Py.initProxy(this, "jy_leaders", "Main", args, 2jython_
leaders_sandbox.jpy$packages, jy_leaders.jpy$proxyProperties, "", n
ew String[] {"jy_leaders"});
^
..\jpywork\jy_leaders.java:565: ')' expected
Py.runMain(jy_leaders._PyInner.class, newargs, 2jython_lead
ers_sandbox.jpy$packages, jy_leaders.jpy$mainProperties, "", new St
ring[] {"jy_leaders"});
^
..\jpywork\jy_leaders.java:565: ';' expected
Py.runMain(jy_leaders._PyInner.class, newargs, 2jython_lead
ers_sandbox.jpy$packages, jy_leaders.jpy$mainProperties, "", new St
ring[] {"jy_leaders"});
^
..\jpywork\jy_leaders.java:565: <identifierexpected
Py.runMain(jy_leaders._PyInner.class, newargs, 2jython_lead
ers_sandbox.jpy$packages, jy_leaders.jpy$mainProperties, "", new St
ring[] {"jy_leaders"});
^
..\jpywork\jy_leaders.java:565: '{' expected
Py.runMain(jy_leaders._PyInner.class, newargs, 2jython_lead
ers_sandbox.jpy$packages, jy_leaders.jpy$mainProperties, "", new St
ring[] {"jy_leaders"});
^
..\jpywork\jy_leaders.java:569: '}' expected
^
9 errors
ERROR DURING JAVA COMPILATION... EXITING
Any help would be of great assistance -- thanks in advance. 2 2450
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:\EclipseWorkbench\Jython>jythonc -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.JPanel
Main extends java.applet.Applet
Compiling .java to .class...
Compiling with args: ['c:\\Program
Files\\Java\\jdk1.5.0_09\\bin\\javac', '-clas
spath',
'C:\\jython\\jython.jar;;.\\jpywork;;C:\\jython\\T ools\\jythonc;C:\\Ecli
pseWorkbench\\Jython\\.;C:\\jython\\Lib;C:\\jython ',
'.\\jpywork\\jy_leaders.jav
a']1 .\jpywork\jy_leaders.java:3: <identifierexpected
public class jy_leaders extends java.lang.Object {
^
.\jpywork\jy_leaders.java:8: '{' expected
public static class _PyInner extends PyFunctionTable implements
PyRunnable {
^
.\jpywork\jy_leaders.java:419: ')' expected
Py.initProxy(this, "jy_leaders", "MyDrawPanel", args, 2
jython_leaders_sandbox.jpy$packages, jy_leaders.jpy$proxyProperties
, "", new String[] {"jy_leaders"});
^
.\jpywork\jy_leaders.java:548: ')' expected
Py.initProxy(this, "jy_leaders", "Main", args, 2jython_
leaders_sandbox.jpy$packages, jy_leaders.jpy$proxyProperties, "", n
ew String[] {"jy_leaders"});
^
.\jpywork\jy_leaders.java:565: ')' expected
Py.runMain(jy_leaders._PyInner.class, newargs, 2jython_lead
ers_sandbox.jpy$packages, jy_leaders.jpy$mainProperties, "", new St
ring[] {"jy_leaders"});
^
.\jpywork\jy_leaders.java:565: ';' expected
Py.runMain(jy_leaders._PyInner.class, newargs, 2jython_lead
ers_sandbox.jpy$packages, jy_leaders.jpy$mainProperties, "", new St
ring[] {"jy_leaders"});
^
.\jpywork\jy_leaders.java:565: <identifierexpected
Py.runMain(jy_leaders._PyInner.class, newargs, 2jython_lead
ers_sandbox.jpy$packages, jy_leaders.jpy$mainProperties, "", new St
ring[] {"jy_leaders"});
^
.\jpywork\jy_leaders.java:565: '{' expected
Py.runMain(jy_leaders._PyInner.class, newargs, 2jython_lead
ers_sandbox.jpy$packages, jy_leaders.jpy$mainProperties, "", new St
ring[] {"jy_leaders"});
^
.\jpywork\jy_leaders.java:569: '}' expected
^
9 errors
ERROR DURING JAVA COMPILATION... EXITING
Any help would be of great assistance -- thanks in advance.
Er*********@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 :-) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Alexis Francart |
last post by:
Hello,
I want to use a program called maxq. This program is used for functionnal
and regression test of web application. The language it uses is Jython.
I need to get a part of a web page using...
|
by: rt lange |
last post by:
I'm trying to get SciTE to run and compile my jython scripts.
This is what I have in my python.properties file:
command.name.1.*.py=Go Jython
command.1.*.py=jython $(FileNameExt)...
|
by: angel |
last post by:
A java runtime environment includes jvm and java class (for example
classes.zip in sun jre). Of course jython need jvm,but does it need java
class.
Thanx
|
by: gcash |
last post by:
I just managed to track down and fix a bug in the jython compiler. I don't
know if this is the right place to post it and call attention to it.
I'm writing a motorcycle transmission simulation in...
|
by: Jim Hargrave |
last post by:
I've read that it is possible to compile jython to native code using
GCJ. PyLucene uses this approach, they then use SWIG to create a Python
wrapper around the natively compiled (java) Lucene. Has...
|
by: Mike Wimpe |
last post by:
Other than being used to wrap Java classes, what other real use is
there for Jython being that Python has many other GUI toolkits
available? Also, these toolkits like Tkinter are so much better for...
|
by: Mark Fink |
last post by:
I wrote a Jython class that inherits from a Java class and (thats the
plan) overrides one method. Everything should stay the same.
If I run this nothing happens whereas if I run the Java class it...
|
by: ChrisW |
last post by:
Hi,
I need a relatively technical answer to the above question - I've
looked through the Jython docs / FAQs and Googled it but to no
avail... if anyone can let me know I'd be most grateful,
...
|
by: rajasankar |
last post by:
Hi,
I am using Jython based application and trying to use inspect.py in the python files.
Here is my code
import inspect,os,sys,pprint,imp
def handle_stackframe_without_leak(getframe):
...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |