|
From: John B. <joh...@ja...> - 2002-04-30 01:28:42
|
I use JBuilder6 by Borland, (www.borland.com) and I am having trouble compiling Jython embeded java applications. I took the C:\JBuilder6\jdk1.3.1\src.jar file, unjarred it (jar -xvf) then dropped the contents of the jython org file into it and rejarred it (jar -cvf) after deleting the orignal src.jar to make sure it created the file. Now if I use JBuilder to explore the jar file (if you type import org. it will show up with a choice of python or apache) but it will not compile, nor will it compile from the command line (I tried to compile your embed example) here are the errors: (and yes, python is under org.python... etc) (javac (jython2-1\Demo\embed\)SimpleEmbedded.java): SimpleEmbedded.java:1: cannot resolve symbol symbol : class PythonInterpreter location: package util import org.python.util.PythonInterpreter SimpleEmbedded.java:2: package org.python.core does not exist import org.python.util.PythonInterpreter; SimpleEmbedded.java:5: cannot resolve symbol symbol : class PyException location: class SimpleEmbedded public static void main(String []args) throws PyException { SimpleEmbedded.java:6: cannot resolve symbol symbol : class PythonInterpreter location: class SimpleEmbedded PythonInterpreter interp = new PythonInterpreter(); SimpleEmbedded.java:6: cannot resolve symbol symbol : class PythonInterpreter location: class SimpleEmbedded PythonInterpreter interp = new PythonInterpreter(); SimpleEmbedded.java:12: cannot resolve symbol symbol : class PyInteger location: class SimpleEmbedded interp.set("a", new PyInteger(42)); SimpleEmbedded.java:15: cannot resolve symbol symbol : class PyObject location: class SimpleEmbedded PyObject x = interp.get("x"); 7 errors I didn't edit the file at all. I think the java compiler jsut isnt recognizing the org.python, so how do I get it to? Thanx for your time... -John P.S. Jython is an exellent idea, today I was pondering writing my own scripting language for the same purpose that jython fills, (mainly to create runtime commands/scripting and easy modular plugins for large apps) and then I happened upon it. Very very very cool. -- === Another FREE service from Jayde Online <http://www.jayde.com> Private, Web-based email accounts at http://www.jaydemail.com Powered by Outblaze |