|
From: Samuele P. <pe...@in...> - 2001-02-26 16:02:01
|
Hi.
Please no black magic.
The problem is more likely to be:
> python.jythonc.classpath =
> E:\\Progra~1\\JavaSoft\\JRE\\1.3\\lib\\rt.jar:.
^ under win this should be ;
OTOH I don't see any reason for compiling against the 1.3 runtime
with a 1.1 compiler... I can even guess that this will possibly not work
even with the proposed suggestion. Because the classpath will be used
by compiler code too. The compiler executable is only a launcher for
java code ;)
regards, Samuele Pedroni
>
> Try adding
> import java.lang
> seems like jython cannot find the Object class.
>
> regards,
> Mick
>
> -----Original Message-----
> From: ff...@zk...
> To: jyt...@li...
> Sent: 2/26/01 2:33 AM
> Subject: [Jython-dev] Trouble Compiling to Stand-Alone
>
> I'm brand-smack-dab to Jython. All I'm wanting to do is mock-up
> menubars for a
> UI design. Couldn't locate a freeware GUI designer, so I decided to go
> with
> Jython.
>
> I'd like to be able to have my demo app capable of being run on Windows
> and
> Mac boxen, with a double-click o' the mouse. I believe that should be
> quite
> possible. Failing that, I'll put it up as a web app.
>
> Problem is, I can't get the thing to compile. I've attached the source,
> cut down
> to a minimum.
>
> Help, please! I'm sure I've just overlooked something abysmally
> obvious...
>
> Here's code:
> ===snip here======
> from pawt import swing, awt
> import java
>
> class App:
> def __init__(self):
> self.frame = swing.JFrame(title="Console - Demo Menus")
>
> self.frame.size= awt.Dimension(600,300)
> self.frame.validate()
> self.frame.visible = 1
>
> ####
> app = App()
> ===snip here======
>
> Here's the terminal session, with the errors:
> ===snip here======
> E:\Documents and Settings\David\jython-2.0>jythonc demo.py
> processing demo
>
> Required packages:
> java.awt
>
> Creating adapters:
>
> Creating .java files:
> demo module
>
> Compiling .java to .class...
> Compiling with args: ['E:\\jdk1.1.8\\bin\\javac.exe', '-classpath',
> 'E:\\Progra~
> 1\\JavaSoft\\JRE\\1.3\\lib\\rt.jar:.;E:\\Documents and
> Settings\\David\\jython-2
> .0\\jython.jar;;.\\jpywork;;E:\\Documents and
> Settings\\David\\jython-2.0\\Tools
> \\jythonc;E:\\Documents and Settings\\David\\jython-2.0\\.;E:\\Documents
> and Set
> tings\\David\\jython-2.0\\Lib;E:\\Docume~1\\David\\jython-2.0;E:\\Docume
> nts and
> Settings\\David\\jython-2.0', '.\\jpywork\\demo.java']
> 1 .\jpywork\demo.java:3: Superclass java.lang.Object of class demo not
> found.
> public class demo extends java.lang.Object {
> ^
> .\jpywork\demo.java:7: Superclass java.lang.Object of nested class demo.
> _PyInne
> r not found.
> public static class _PyInner extends PyFunctionTable implements
> PyRunnable {
> ===snip here======
>
>
> Here are the lines I added to my registry file:
> ===snip here======
> python.path = E:\\Docume~1\\David\\jython-2.0
> python.jythonc.compiler = E:\\jdk1.1.8\\bin\\javac.exe
> python.jythonc.classpath =
> E:\\Progra~1\\JavaSoft\\JRE\\1.3\\lib\\rt.jar:.
> ===snip here======
>
>
> And, finally, lines added to my environment:
> ===snip here======
> path=%path%;E:\Documents and Settings\David\jython-2.0\
> ===snip here======
>
>
>
> _______________________________________________
> Jython-dev mailing list
> Jyt...@li...
> http://lists.sourceforge.net/lists/listinfo/jython-dev
>
|