jepp-users Mailing List for Java Embedded Python (Page 4)
Brought to you by:
mrjohnson0
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(7) |
Sep
(4) |
Oct
(3) |
Nov
(4) |
Dec
|
2007 |
Jan
|
Feb
|
Mar
(4) |
Apr
(12) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(17) |
Dec
|
2008 |
Jan
|
Feb
(9) |
Mar
(7) |
Apr
|
May
(7) |
Jun
|
Jul
(8) |
Aug
|
Sep
|
Oct
(3) |
Nov
(5) |
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
(8) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
(3) |
Feb
(2) |
Mar
(2) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
|
Sep
(1) |
Oct
(4) |
Nov
(3) |
Dec
(1) |
2012 |
Jan
|
Feb
(3) |
Mar
(1) |
Apr
|
May
(2) |
Jun
(9) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2013 |
Jan
|
Feb
(3) |
Mar
(2) |
Apr
(4) |
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
(1) |
Dec
(5) |
2014 |
Jan
(5) |
Feb
(1) |
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
(5) |
Aug
(7) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
(1) |
Apr
(2) |
May
(7) |
Jun
(13) |
Jul
(2) |
Aug
(3) |
Sep
(1) |
Oct
|
Nov
|
Dec
(1) |
2016 |
Jan
(2) |
Feb
(2) |
Mar
(1) |
Apr
(5) |
May
(1) |
Jun
(2) |
Jul
(2) |
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Tijs W. <Tij...@be...> - 2013-04-06 05:41:16
|
Hi group, I've succesfully built Jep 3.1 (latest tar) against python 2.7 . I used msvc 2008 sp1. Some build problems like missing .h files (jep.h, invocationhandler.h, util.h), but went smooth overall. We are using it inside an Eclipse plugin on Win7 Pro x64. Works beautifully, no more memleaks which we encountered with jep 2.4 / python 2.5 (not our own build, grabbed it somewhere from the net). We'd like to use Jep on AIX as well. Python 2.7 builds on AIX are problematic and not recommended (you have to customize a lot of code). Many issues for AIX builds have been addressed for Python 3 only. So, does anybody know if Jep is Python 3 compatible? Kind regards, TW Bertus Groothandel & Distributie B.V. Akeleibaan 59 2908KA Capelle aan den IJssel The Netherlands Op al onze transacties zijn onze Algemene Verkoop- en Leveringsvoorwaarden van toepassing. Deze voorwaarden treft u aan op de achterzijde van onze factuur en op onze website www.bertus.com. Andersluidende voorwaarden worden uitdrukkelijk afgewezen. Our General Sales and Delivery Conditions apply to all transactions. Please find these general conditions on the back of our invoice and on our website www.bertus.com. The applicability of any other general conditions is expressly rejected. Registered in Rotterdam No. 24156512 |
From: Jon W. <wr...@es...> - 2013-04-03 05:57:10
|
In the past we used numpy from jepp in the fable project: http://fable.sourceforge.net/ The limitation, as I remember, is that all your modules should link to the same C runtime library. This is no problem for unix platforms, but might lead to issues for windows with the more recent MS compilers and python versions. Seems there is a note about this here, and also an issue about scipy not working: https://github.com/mrj0/jep If you can use openjdk they claim to use the 7.1 SDK: http://hg.openjdk.java.net/jdk7/build/raw-file/tip/README-builds.html#mssdk64 ...which seems to match the standard for python3.3. The free windows compilers used by python.org are detailed here: http://mail.python.org/pipermail/python-dev/2013-March/124658.html Best, Jon On 03/04/2013 00:11, Balázs Várhegyi wrote: > Can somebody confirm that jepp can't handle third-party-libraries? > Has somebody any experience in it? Is there any chance to do it? > I found this link http://weka.wikispaces.com/Using+WEKA+via+Jepp , but I > really need it. > > Thanks in advance! > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > > > > _______________________________________________ > Jepp-users mailing list > Jep...@li... > https://lists.sourceforge.net/lists/listinfo/jepp-users > |
From: Balázs V. <var...@gm...> - 2013-04-02 22:11:19
|
Can somebody confirm that jepp can't handle third-party-libraries? Has somebody any experience in it? Is there any chance to do it? I found this link http://weka.wikispaces.com/Using+WEKA+via+Jepp , but I really need it. Thanks in advance! |
From: Vigneshwaran G. <vig...@gm...> - 2013-04-01 07:23:19
|
Hi All, I have a couple of programs running in Python 2.6 and I need to migrate to Python 2.7 in win 64 Bit OS. I have installed Active Python 2.7 (64 Bit Win). I downloaded the latest Jep 3.1 and created a jar with 64 bit java. When I tried to create the dll, the jep.h was missing. I am not sure how to proceed. Could some one help me to get/build the jep and its dependencies in 64 bit Win OS Thanks in Advance -- Thanks Vignesh |
From: V. B. <var...@gm...> - 2013-03-30 17:01:06
|
Dear Mike Johnson! It's me again. I'd like to use modules in my python code. But I think jep cannot handle properly. For example: >>>from sklearn import linear_model >>>clf = linear_model.LinearRegression() >>>clf.fit ([[0, 0], [1, 1], [2, 2]], [0, 1, 2]) LinearRegression(copy_X=True, fit_intercept=True, normalize=False) >>>clf.coef_ array([ 0.5, 0.5]) Jep seems like run forever after the first line (no error message or exception), but the code works if I run it from the python interpreter 'manually'. It doesn't work neither if I use it in this way: import sklearn clf = sklearn.linear_model.LinearRegression() ...same as above... In this case I get the following error message: "SEVERE: null jep.JepException: jep.JepException: <type 'exceptions.AttributeError'>: 'module' object has no attribute 'linear_model' at jep.Jep.eval(Jep.java:294) at Main.executeScript(Main.java:72) at Main.main(Main.java:36) Caused by: jep.JepException: <type 'exceptions.AttributeError'>: 'module' object has no attribute 'linear_model' at jep.Jep.eval(Native Method) at jep.Jep.eval(Jep.java:278) ... 2 more" My only working version with modules is: import numpy as np beta = np.array([1, 0.1, 10]) So I need a solution in order to - use code: 'module.submodule.subsubmodule' - use import: 'import module.submodule' and use code: 'submodule.subsubmodule' If one of these solutions work, I would be happy. Is it possible? I'm using python 2.7.2 and jep 2.4. I know there's a newer version of jep but for me it was hard to configure 2.4. too, so I wouldn't install a newer if it's unnecessary. (Because it was time consuming for me. I had to compile a totally new python interpreter with ucs4, copy the installed python packages from dist-packages to site-packages, set environment variables and so on.) Yours sincerely, Balazs Varhegyi |
From: Douglas B. <bea...@ie...> - 2013-03-04 22:48:38
|
Evaluating Jep 3.1 for possible use in a Tomcat-based web application, here I'm trying to follow the example notes at http://www.mrj0.com/2012/06/jep_3.1/ with plans on substitute a Microsoft JDBC driver (which you see here is found successfully based on the CLASSPATH environment variable). --- --- --- --- --- --- --- --- --- --- My-iMac:pythonstuff dbeattie$ set | grep LD DYLD_LIBRARY_PATH=/usr/lib LD_LIBRARY_PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ LD_PRELOAD=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib My-iMac:pythonstuff dbeattie$ set | grep CLASS CLASSPATH=/Users/dbeattie/Eclipse/workspace/MyWebapp/WebContent/WEB-INF/lib/sqljdbc4.jar My-iMac:pythonstuff dbeattie$ jep >>> jep.findClass('com.microsoft.sqlserver.jdbc.SQLServerDriver') <PyJobject object at 0x116884ae0> >>> from jep.jdbc import connect init: Bootstrapping class not in Py.BOOTSTRAP_TYPES[class=class org.python.core.PyMethodDescr] init: Bootstrap types weren't encountered in bootstrapping: [class org.python.core.PyBuiltinCallable] Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/jep/console.py", line 46, in prompt ran = jep.eval(line) JavaException: jep.JepException: <class 'jep.JavaException'>: junit/framework/TestCase >>> exit() Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/jep/console.py", line 46, in prompt ran = jep.eval(line) JavaException: jep.JepException: <type 'exceptions.SystemExit'>: None >>> --- --- --- --- --- --- --- --- --- --- Okay, I'm certainly no expert, but it looks like maybe there's a unit test being run in the release version of Jep 3.1, and an exception on exit() -- which I don't see if I exit using Ctrl-D ... and can someone explain why the exception is occurring on the attempt to import from 'jep.jdbc'? -- Douglas Beattie |
From: Mike J. <mi...@pu...> - 2013-02-21 17:14:08
|
Hi, What are the contents of the `jep` script (added by the pip install)? There will be several environment variables defined there to make sure the correct python bin and libraries are loaded. If you're trying to run from Eclipse, you'll need to make sure those same env variables are setup. The message you're getting means that the C jni library is not found by Java, which should be solved by setting the right LD_LIBRARY_PATH. - Mike On Thu, Feb 21, 2013 at 6:30 AM, Várhegyi Balázs <var...@gm...>wrote: > Hello, > > I would like to run python from java, I've found this sample class (last > part of the mail) my main goal it to make this class usable. I use > ubuntu 12.04. I added the jep.jar from "/usr/local/lib/jep" to the > project as an external jar in Eclipse. > But when I run it it fails in this line "Main main = new Main();" with: > > Exception in thread "main" java.lang.UnsatisfiedLinkError: no jep in > java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738) > at java.lang.Runtime.loadLibrary0(Runtime.java:823) > at java.lang.System.loadLibrary(System.java:1028) > at jep.Jep.<clinit>(Jep.java:138) > at Main.<init>(Main.java:16) > at Main.main(Main.java:32) > > maybe I didn't set something properly, I've just installed python2.7.2, > it works. > Then I followed these instructions: > https://github.com/mrj0/jep/blob/master/README.rst > I used this: 'pip install jep' > Furthermore, I downloaded the latest version of jep(3.1.0) from here > https://sourceforge.net/projects/jepp/ too. > > After this I should have set the LD_LIBRARY_PATH, and LD_PRELOAD > according to the jep script (It was told on: > https://github.com/mrj0/jep/blob/master/README.rst). > However, I have two of them (I set the second.): > > the two jep script: > 1, in the usr/local/bin, it says: > LD_LIBRARY_PATH="/usr/local/lib/python2.7/dist-packages/"; export > LD_LIBRARY_PATH > LD_PRELOAD="/usr/lib/libpython2.7.so"; export LD_PRELOAD > 2, in the downloaded_jep_folder/build/scripts-2.7, it says: > LD_LIBRARY_PATH="/usr/local/lib/python2.7/site-packages/"; export > LD_LIBRARY_PATH > LD_PRELOAD="/usr/local/lib/libpython2.7.a"; export LD_PRELOAD > > If i running the test "python setup.py test", I get the following output: > > running test > jep runtests.py > ..........................EEEE. > ................ > ====================================================================== > ERROR: test_batch (tests.test_jdbc.TestJdbc) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "tests/test_jdbc.py", line 16, in setUp > findClass('org.sqlite.JDBC') > JavaException: org/sqlite/JDBC > > ====================================================================== > ERROR: test_datetime (tests.test_jdbc.TestJdbc) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "tests/test_jdbc.py", line 16, in setUp > findClass('org.sqlite.JDBC') > JavaException: org/sqlite/JDBC > > ====================================================================== > ERROR: test_dbapi_primitives (tests.test_jdbc.TestJdbc) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "tests/test_jdbc.py", line 16, in setUp > findClass('org.sqlite.JDBC') > JavaException: org/sqlite/JDBC > > ====================================================================== > ERROR: test_java_sql (tests.test_jdbc.TestJdbc) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "tests/test_jdbc.py", line 16, in setUp > findClass('org.sqlite.JDBC') > JavaException: org/sqlite/JDBC > > ---------------------------------------------------------------------- > Ran 47 tests in 0.049s > > FAILED (errors=4) > > That would be great if someone could help me. > Thanks in advance, > Balazs Varhegyi > > > Sample class: > > import java.util.logging.Level; > > import java.util.logging.Logger; > > import jep.Jep; > > import jep.JepException; > > /** > > * > > * @author sganapat > > */ > > public class Main { > > private Jep objJep; > > > > Main() { > > try { > > objJep = new Jep(); > > } catch (JepException ex) { > > Logger.getLogger(Main.class.getName()).log(Level.SEVERE, > null, ex); > > } > > } > > /** > > * @param args > > * the command line arguments > > */ > > public static void main(String[] args) { > > System.out.println("Hello"); > > > > try { > > Main main = new Main(); > > main.executeCommand(); > > //main.executeScript(); > > } catch (JepException ex) { > > Logger.getLogger(Main.class.getName()).log(Level.SEVERE, > null, ex); > > } > > } > > /** > > * Executes Python Commands > > * > > * @throws JepException > > */ > > private void executeCommand() throws JepException { > > objJep.eval("print 'Hello Java'"); > > } > > } > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > Jepp-users mailing list > Jep...@li... > https://lists.sourceforge.net/lists/listinfo/jepp-users > |
From: V. B. <var...@gm...> - 2013-02-21 17:12:12
|
Hi Mike! I can't put in words how much you helped me! I checked the jep script (added by the pip install) and put those variables LD_LIBRARY_PATH, LD_PRELOAD into Eclipse and it works. It took 5 minutes, however I tried it all day. I would like to use jepp in my MSc thesis and this is only the very starting point, so Thank you very much! - Balazs On 02/21/2013 05:46 PM, Mike Johnson wrote: > Hi, > > What are the contents of the `jep` script (added by the pip install)? > > There will be several environment variables defined there to make sure > the correct python bin and libraries are loaded. If you're trying to > run from Eclipse, you'll need to make sure those same env variables > are setup. The message you're getting means that the C jni library is > not found by Java, which should be solved by setting the right > LD_LIBRARY_PATH. > > - Mike > > On Thu, Feb 21, 2013 at 6:30 AM, Várhegyi Balázs > <var...@gm... <mailto:var...@gm...>> wrote: > > Hello, > > I would like to run python from java, I've found this sample class > (last > part of the mail) my main goal it to make this class usable. I use > ubuntu 12.04. I added the jep.jar from "/usr/local/lib/jep" to the > project as an external jar in Eclipse. > But when I run it it fails in this line "Main main = new Main();" > with: > > Exception in thread "main" java.lang.UnsatisfiedLinkError: no jep in > java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738) > at java.lang.Runtime.loadLibrary0(Runtime.java:823) > at java.lang.System.loadLibrary(System.java:1028) > at jep.Jep.<clinit>(Jep.java:138) > at Main.<init>(Main.java:16) > at Main.main(Main.java:32) > > maybe I didn't set something properly, I've just installed > python2.7.2, > it works. > Then I followed these instructions: > https://github.com/mrj0/jep/blob/master/README.rst > I used this: 'pip install jep' > Furthermore, I downloaded the latest version of jep(3.1.0) from here > https://sourceforge.net/projects/jepp/ too. > > After this I should have set the LD_LIBRARY_PATH, and LD_PRELOAD > according to the jep script (It was told on: > https://github.com/mrj0/jep/blob/master/README.rst). > However, I have two of them (I set the second.): > > the two jep script: > 1, in the usr/local/bin, it says: > LD_LIBRARY_PATH="/usr/local/lib/python2.7/dist-packages/"; export > LD_LIBRARY_PATH > LD_PRELOAD="/usr/lib/libpython2.7.so <http://libpython2.7.so>"; > export LD_PRELOAD > 2, in the downloaded_jep_folder/build/scripts-2.7, it says: > LD_LIBRARY_PATH="/usr/local/lib/python2.7/site-packages/"; export > LD_LIBRARY_PATH > LD_PRELOAD="/usr/local/lib/libpython2.7.a"; export LD_PRELOAD > > If i running the test "python setup.py test", I get the following > output: > > running test > jep runtests.py > ..........................EEEE. > ................ > ====================================================================== > ERROR: test_batch (tests.test_jdbc.TestJdbc) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "tests/test_jdbc.py", line 16, in setUp > findClass('org.sqlite.JDBC') > JavaException: org/sqlite/JDBC > > ====================================================================== > ERROR: test_datetime (tests.test_jdbc.TestJdbc) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "tests/test_jdbc.py", line 16, in setUp > findClass('org.sqlite.JDBC') > JavaException: org/sqlite/JDBC > > ====================================================================== > ERROR: test_dbapi_primitives (tests.test_jdbc.TestJdbc) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "tests/test_jdbc.py", line 16, in setUp > findClass('org.sqlite.JDBC') > JavaException: org/sqlite/JDBC > > ====================================================================== > ERROR: test_java_sql (tests.test_jdbc.TestJdbc) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "tests/test_jdbc.py", line 16, in setUp > findClass('org.sqlite.JDBC') > JavaException: org/sqlite/JDBC > > ---------------------------------------------------------------------- > Ran 47 tests in 0.049s > > FAILED (errors=4) > > That would be great if someone could help me. > Thanks in advance, > Balazs Varhegyi > > > Sample class: > > import java.util.logging.Level; > > import java.util.logging.Logger; > > import jep.Jep; > > import jep.JepException; > > /** > > * > > * @author sganapat > > */ > > public class Main { > > private Jep objJep; > > > > Main() { > > try { > > objJep = new Jep(); > > } catch (JepException ex) { > > Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); > > } > > } > > /** > > * @param args > > * the command line arguments > > */ > > public static void main(String[] args) { > > System.out.println("Hello"); > > > > try { > > Main main = new Main(); > > main.executeCommand(); > > //main.executeScript(); > > } catch (JepException ex) { > > Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); > > } > > } > > /** > > * Executes Python Commands > > * > > * @throws JepException > > */ > > private void executeCommand() throws JepException { > > objJep.eval("print 'Hello Java'"); > > } > > } > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > Jepp-users mailing list > Jep...@li... > <mailto:Jep...@li...> > https://lists.sourceforge.net/lists/listinfo/jepp-users > > |
From: V. B. <var...@gm...> - 2013-02-21 14:30:26
|
Hello, I would like to run python from java, I've found this sample class (last part of the mail) my main goal it to make this class usable. I use ubuntu 12.04. I added the jep.jar from "/usr/local/lib/jep" to the project as an external jar in Eclipse. But when I run it it fails in this line "Main main = new Main();" with: Exception in thread "main" java.lang.UnsatisfiedLinkError: no jep in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1028) at jep.Jep.<clinit>(Jep.java:138) at Main.<init>(Main.java:16) at Main.main(Main.java:32) maybe I didn't set something properly, I've just installed python2.7.2, it works. Then I followed these instructions: https://github.com/mrj0/jep/blob/master/README.rst I used this: 'pip install jep' Furthermore, I downloaded the latest version of jep(3.1.0) from here https://sourceforge.net/projects/jepp/ too. After this I should have set the LD_LIBRARY_PATH, and LD_PRELOAD according to the jep script (It was told on: https://github.com/mrj0/jep/blob/master/README.rst). However, I have two of them (I set the second.): the two jep script: 1, in the usr/local/bin, it says: LD_LIBRARY_PATH="/usr/local/lib/python2.7/dist-packages/"; export LD_LIBRARY_PATH LD_PRELOAD="/usr/lib/libpython2.7.so"; export LD_PRELOAD 2, in the downloaded_jep_folder/build/scripts-2.7, it says: LD_LIBRARY_PATH="/usr/local/lib/python2.7/site-packages/"; export LD_LIBRARY_PATH LD_PRELOAD="/usr/local/lib/libpython2.7.a"; export LD_PRELOAD If i running the test "python setup.py test", I get the following output: running test jep runtests.py ..........................EEEE. ................ ====================================================================== ERROR: test_batch (tests.test_jdbc.TestJdbc) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_jdbc.py", line 16, in setUp findClass('org.sqlite.JDBC') JavaException: org/sqlite/JDBC ====================================================================== ERROR: test_datetime (tests.test_jdbc.TestJdbc) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_jdbc.py", line 16, in setUp findClass('org.sqlite.JDBC') JavaException: org/sqlite/JDBC ====================================================================== ERROR: test_dbapi_primitives (tests.test_jdbc.TestJdbc) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_jdbc.py", line 16, in setUp findClass('org.sqlite.JDBC') JavaException: org/sqlite/JDBC ====================================================================== ERROR: test_java_sql (tests.test_jdbc.TestJdbc) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_jdbc.py", line 16, in setUp findClass('org.sqlite.JDBC') JavaException: org/sqlite/JDBC ---------------------------------------------------------------------- Ran 47 tests in 0.049s FAILED (errors=4) That would be great if someone could help me. Thanks in advance, Balazs Varhegyi Sample class: import java.util.logging.Level; import java.util.logging.Logger; import jep.Jep; import jep.JepException; /** * * @author sganapat */ public class Main { private Jep objJep; Main() { try { objJep = new Jep(); } catch (JepException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); } } /** * @param args * the command line arguments */ public static void main(String[] args) { System.out.println("Hello"); try { Main main = new Main(); main.executeCommand(); //main.executeScript(); } catch (JepException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); } } /** * Executes Python Commands * * @throws JepException */ private void executeCommand() throws JepException { objJep.eval("print 'Hello Java'"); } } |
From: James M. <jam...@gm...> - 2012-11-26 16:55:27
|
In java, I would like to create an object which has the __getitem__ defined so that in python I can interact with this class with the [] notation. Similar to the following... public class Asdf { public Object __getitem__(Object arg) { return "5"; } public Object __getitem__(int arg) { return "4"; } } Then in python file, I can do... fromJava = Asdf() print fromJava.__getitem__(4) print fromJava[4] the call to __getitem__ works, but the call to [4] does not. I imagine I just have the signature wrong, but I am unsure where to look to get the correct signature. Does anyone know the answer, or have a better place I can look to find it? Thanks, James Mahler |
From: Mike J. <mi...@pu...> - 2012-07-16 23:30:35
|
Hi, I'm not sure -ldl is required. Try editing the build to remove that dependency and see if it compiles. Mike On Jul 15, 2012, at 10:18 PM, Prasanth Narra wrote: > Hi Mike, > > Did you get any chance to look at this? > > Thanks, > Prasanth Narra > > On Tue, Jun 26, 2012 at 6:06 PM, Prasanth Narra <nar...@gm...> wrote: > Hi Mike, > > I was able to generate import library 'libjvm.a' & i've placed it in mingw\lib folder. > And now linker is not giving any problem w.r.t jvm, but its unable to link dl, wht exactly does dl mean? > > gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 -DVERSION="3.0. > 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include -Ic:\Python2 > 6\include -Ic:\Python26\PC -c src\jep\python\jep_object.c -o build\temp.win32-2. > 6\Release\src\jep\python\jep_object.o > writing build\temp.win32-2.6\Release\src\jep\jep.def > gcc.exe -mno-cygwin -shared -s build\temp.win32-2.6\Release\src\jep\invocationha > ndler.o build\temp.win32-2.6\Release\src\jep\jep.o build\temp.win32-2.6\Release\ > src\jep\pyembed.o build\temp.win32-2.6\Release\src\jep\pyjarray.o build\temp.win > 32-2.6\Release\src\jep\pyjclass.o build\temp.win32-2.6\Release\src\jep\pyjfield. > o build\temp.win32-2.6\Release\src\jep\pyjmethod.o build\temp.win32-2.6\Release\ > src\jep\pyjobject.o build\temp.win32-2.6\Release\src\jep\util.o build\temp.win32 > -2.6\Release\src\jep\python\jep_object.o build\temp.win32-2.6\Release\src\jep\je > p.def -Lc:\Python26\libs -Lc:\Python26\PCbuild -ljvm -lpython26 -ldl -lpython26 > -lmsvcr90 -o build\lib.win32-2.6\jep.pyd > c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin > > d -ldl > collect2: ld returned 1 exit status > > error: command 'gcc' failed with exit status 1 > > > Thanks, > Prasanth Narra > > > On Tue, Jun 26, 2012 at 1:55 AM, Mike Johnson <mi...@pu...> wrote: > > I'm sure there's a way but it would require a Windows expert, which is definitely not me. > > The problem is you have to use the same MSVCRT runtime library as Java or bad things happen when memory is shared between two runtimes. > > But on x64 Windows, they are distributing Java with some version of the dll that I can't find a tool to link to. There doesn't seem to be any VS version that links it. The closest I could find were some people trying to build using some Windows Driver Kit compiler, because it linked using the right MSVCRT.dll. > > I had been compiling with an old copy of Visual Studio 6 that I had. For a long time this was the only way I had to build for Windows. It was given to me when I was in high school (it's old!). I don't even have disks anymore, just an iso image on an old backup drive. But it doesn't work on x64, of course, because there's no x64 MSVC 6. > > Using MSVC is probably a dead end unless somebody knows more than me. Mingw is probably the best hope because it has switches to control the runtime linking. The second best hope is Microsoft rethinks their policy and adds a runtime version selector in the IDE (ha). > > This is how things are on Windows and why I keep encouraging people to use Jep on Linux -- it's so much easier: > > $ pip install jep > > On Jun 24, 2012, at 10:49 PM, Prasanth Narra wrote: > >> Hi Mike, >> >> Any other way that i can build the jep.dll & jep.jar (for 64 bit JRE & WIN7 OS-64 bit)? Can i use MSVC? >> >> Thanks, >> Prasanth Narra >> >> On Sat, Jun 23, 2012 at 4:24 AM, Mike Johnson <mi...@pu...> wrote: >> Hi, >> >> Sorry, I am not really familiar with that tool. I've just used it once or twich, but I can't tell you much about it. >> >> On Jun 21, 2012, at 11:42 PM, Prasanth Narra wrote: >> >>> Hi Mike, >>> >>> I've run pexports (for jvm.dll) & was able to generate jvm.def >>> But when i use dlltool to generate import library (dlltool -D jvm.dll -d jvm.def -l jvm.a), it creates jvm.a with 0kb (nothing in it). >>> >>> Can you help me with this. >>> >>> Thanks, >>> Prasanth Narra >>> >>> On Tue, Jun 19, 2012 at 12:38 PM, Mike Johnson <mi...@pu...> wrote: >>> Hi, >>> >>> You'll need to see the mingw faq: http://www.mingw.org/wiki/FAQ in the section called "How do I create Python extensions?" >>> >>> Run pexports and dlltool to create the files you'll need to link with on both the python dll and java. That should solve your link problem. >>> >>> Mike >>> >>> >>> >>> On Jun 18, 2012, at 11:27 PM, Prasanth Narra wrote: >>> >>>> Hi Mike, >>>> >>>> I've changed src/jep/winconfig.h by commenting the following: >>>> >>>> //#define USE_DEALLOC 1 >>>> //#define USE_MAPPED_EXCEPTIONS 1 >>>> //#define VERSION "2.5" >>>> >>>> & when i try building, i get the following error: >>>> >>>> gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 -DVERSION="3.0. >>>> 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include -Ic:\Python2 >>>> 6\include -Ic:\Python26\PC -c src\jep\python\jep_object.c -o build\temp.win32-2. >>>> 6\Release\src\jep\python\jep_object.o >>>> writing build\temp.win32-2.6\Release\src\jep\jep.def >>>> gcc.exe -mno-cygwin -shared -s build\temp.win32-2.6\Release\src\jep\invocationha >>>> ndler.o build\temp.win32-2.6\Release\src\jep\jep.o build\temp.win32-2.6\Release\ >>>> src\jep\pyembed.o build\temp.win32-2.6\Release\src\jep\pyjarray.o build\temp.win >>>> 32-2.6\Release\src\jep\pyjclass.o build\temp.win32-2.6\Release\src\jep\pyjfield. >>>> o build\temp.win32-2.6\Release\src\jep\pyjmethod.o build\temp.win32-2.6\Release\ >>>> src\jep\pyjobject.o build\temp.win32-2.6\Release\src\jep\util.o build\temp.win32 >>>> -2.6\Release\src\jep\python\jep_object.o build\temp.win32-2.6\Release\src\jep\je >>>> p.def -Lc:\Python26\libs -Lc:\Python26\PCbuild -ljvm -lpython26 -ldl -lpython26 >>>> -lmsvcr90 -o build\lib.win32-2.6\jep.pyd >>>> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin >>>> d -ljvm >>>> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin >>>> d -ldl >>>> collect2: ld returned 1 exit status >>>> error: command 'gcc' failed with exit status 1 >>>> >>>> I guess there is some problem with linker. >>>> So is there anything which i'm still missing? >>>> >>>> Thanks, >>>> Prasanth Narra >>>> >>>> On Sat, Jun 9, 2012 at 9:39 AM, Mike Johnson <mi...@pu...> wrote: >>>> Hi, >>>> >>>> I haven't had much luck running Jep recently on Windows due to compiler incompatibilities (difficulty building with the correct MSVCRT). Maybe Mingw will be better. >>>> >>>> It looks like you'll need to change src/jep/winconfig.h. Remove lines 18-25. This file hasn't been updated since the switch to using distutils to build. That should be it. >>>> >>>> Please let me know if you are successful. I'd love to see a good Windows build again, and there has been a lot of interest from others as well. >>>> >>>> Thanks, >>>> Mike >>>> >>>> >>>> On Jun 7, 2012, at 1:07 AM, Prasanth Narra wrote: >>>> >>>>> Hi Mike, >>>>> >>>>> I've downloaded JEP 3.0.0 source. When i try building it with MinGW / JDK 1.6 (64 bit) / Python 2.6, i get the following error. >>>>> >>>>> In file included from src\jep\pyjfield.c:35:0: >>>>> src\jep\/winconfig.h:25:0: warning: "VERSION" redefined >>>>> <command-line>:0:0: note: this is the location of the previous definition >>>>> gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 -DVERSION="3.0. >>>>> 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include -Ic:\Python2 >>>>> 6\include -Ic:\Python26\PC -c src\jep\pyjmethod.c -o build\temp.win32-2.6\Releas >>>>> e\src\jep\pyjmethod.o >>>>> In file included from src\jep\pyjmethod.c:30:0: >>>>> src\jep\/winconfig.h:25:0: warning: "VERSION" redefined >>>>> <command-line>:0:0: note: this is the location of the previous definition >>>>> src\jep\pyjmethod.c: In function 'pyjmethod_init': >>>>> src\jep\pyjmethod.c:278:8: error: 'methodGetExceptions' undeclared (first use in >>>>> this function) >>>>> src\jep\pyjmethod.c:278:8: note: each undeclared identifier is reported only onc >>>>> e for each function it appears in >>>>> src\jep\pyjmethod.c:287:5: error: 'exceptions' undeclared (first use in this fun >>>>> ction) >>>>> error: command 'gcc' failed with exit status 1 >>>>> >>>>> C:\MinGW\bin> >>>>> >>>>> Build command used: python setup.py install build --compiler=mingw32 >>>>> >>>>> Can you please help me with this, also let me know if i need anything else for building JEP.jar (64-bit JRE compatable) & JEP.dll (64-bit) >>>>> >>>>> Thanks, >>>>> Prasanth Narra >>>>> >>>>> On Mon, May 28, 2012 at 4:39 PM, Mike Johnson <mi...@pu...> wrote: >>>>> Hi Prasanth, >>>>> >>>>> Make sure you recompile Jep with the 64 bit JDK as your JAVA_HOME, or >>>>> they can't work together... >>>>> >>>>> Thanks, >>>>> Mike >>>>> >>>>> >>>>> On Mon, May 28, 2012 at 10:12 AM, Prasanth Narra <nar...@gm...> wrote: >>>>> > Hi, >>>>> > >>>>> > When i try running my java class with JRE 1.6 (64 bit) with JEP 2.4, i get >>>>> > an java.lang.UnsatisfiedLinkError (which says unable to load/find dependent >>>>> > libraries). >>>>> > >>>>> > But everything is fine with 32 bit JRE. But now that i have to upgrade to 64 >>>>> > bit, i can't use 32- bit JRE. >>>>> > >>>>> > -- >>>>> > Thanks, >>>>> > Prasanth Narra >>>>> > >>>>> > >>>>> > ------------------------------------------------------------------------------ >>>>> > Live Security Virtual Conference >>>>> > Exclusive live event will cover all the ways today's security and >>>>> > threat landscape has changed and how IT managers can respond. Discussions >>>>> > will include endpoint security, mobile security and the latest in malware >>>>> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>>> > _______________________________________________ >>>>> > Jepp-users mailing list >>>>> > Jep...@li... >>>>> > https://lists.sourceforge.net/lists/listinfo/jepp-users >>>>> > >>>>> >>>>> >>>>> >>>>> -- >>>>> Thanks, >>>>> Prasanth Narra >>>>> >>>> >>>> >>>> >>>> >>>> -- >>>> Thanks, >>>> Prasanth Narra >>>> >>> >>> >>> >>> >>> -- >>> Thanks, >>> Prasanth Narra >>> >> >> >> >> >> -- >> Thanks, >> Prasanth Narra >> > > > > > -- > Thanks, > Prasanth Narra > > > > > -- > Thanks, > Prasanth Narra > |
From: Prasanth N. <nar...@gm...> - 2012-07-16 05:18:55
|
Hi Mike, Did you get any chance to look at this? Thanks, Prasanth Narra On Tue, Jun 26, 2012 at 6:06 PM, Prasanth Narra <nar...@gm...> wrote: > Hi Mike, > > I was able to generate import library 'libjvm.a' & i've placed it in > mingw\lib folder. > And now linker is not giving any problem w.r.t jvm, but its unable to link > dl, wht exactly does dl mean? > > * > gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 > -DVERSION="3.0. > 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include > -Ic:\Python2 > 6\include -Ic:\Python26\PC -c src\jep\python\jep_object.c -o > build\temp.win32-2. > 6\Release\src\jep\python\jep_object.o > writing build\temp.win32-2.6\Release\src\jep\jep.def > gcc.exe -mno-cygwin -shared -s > build\temp.win32-2.6\Release\src\jep\invocationha > ndler.o build\temp.win32-2.6\Release\src\jep\jep.o > build\temp.win32-2.6\Release\ > src\jep\pyembed.o build\temp.win32-2.6\Release\src\jep\pyjarray.o > build\temp.win > 32-2.6\Release\src\jep\pyjclass.o > build\temp.win32-2.6\Release\src\jep\pyjfield. > o build\temp.win32-2.6\Release\src\jep\pyjmethod.o > build\temp.win32-2.6\Release\ > src\jep\pyjobject.o build\temp.win32-2.6\Release\src\jep\util.o > build\temp.win32 > -2.6\Release\src\jep\python\jep_object.o > build\temp.win32-2.6\Release\src\jep\je > p.def -Lc:\Python26\libs -Lc:\Python26\PCbuild -ljvm -lpython26 -ldl > -lpython26 > -lmsvcr90 -o build\lib.win32-2.6\jep.pyd > c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: > cannot fin > > d -ldl > collect2: ld returned 1 exit status > > error: command 'gcc' failed with exit status 1 > * > > Thanks, > Prasanth Narra > > > On Tue, Jun 26, 2012 at 1:55 AM, Mike Johnson <mi...@pu...>wrote: > >> >> I'm sure there's a way but it would require a Windows expert, which is >> definitely not me. >> >> The problem is you have to use the same MSVCRT runtime library as Java or >> bad things happen when memory is shared between two runtimes. >> >> But on x64 Windows, they are distributing Java with some version of the >> dll that I can't find a tool to link to. There doesn't seem to be any VS >> version that links it. The closest I could find were some people trying to >> build using some Windows Driver Kit compiler, because it linked using the >> right MSVCRT.dll. >> >> I had been compiling with an old copy of Visual Studio 6 that I had. For >> a long time this was the only way I had to build for Windows. It was given >> to me when I was in high school (it's old!). I don't even have disks >> anymore, just an iso image on an old backup drive. But it doesn't work on >> x64, of course, because there's no x64 MSVC 6. >> >> Using MSVC is probably a dead end unless somebody knows more than me. >> Mingw is probably the best hope because it has switches to control the >> runtime linking. The second best hope is Microsoft rethinks their policy >> and adds a runtime version selector in the IDE (ha). >> >> This is how things are on Windows and why I keep encouraging people to >> use Jep on Linux -- it's *so much easier:* >> >> $ pip install jep >> >> On Jun 24, 2012, at 10:49 PM, Prasanth Narra wrote: >> >> Hi Mike, >> >> Any other way that i can build the jep.dll & jep.jar (for 64 bit JRE & >> WIN7 OS-64 bit)? Can i use MSVC? >> >> Thanks, >> Prasanth Narra >> >> On Sat, Jun 23, 2012 at 4:24 AM, Mike Johnson <mi...@pu...>wrote: >> >>> Hi, >>> >>> Sorry, I am not really familiar with that tool. I've just used it once >>> or twich, but I can't tell you much about it. >>> >>> On Jun 21, 2012, at 11:42 PM, Prasanth Narra wrote: >>> >>> Hi Mike, >>> >>> I've run pexports (for jvm.dll) & was able to generate jvm.def >>> But when i use dlltool to generate import library (dlltool -D jvm.dll -d >>> jvm.def -l jvm.a), it creates jvm.a with 0kb (nothing in it). >>> >>> Can you help me with this. >>> >>> Thanks, >>> Prasanth Narra >>> >>> On Tue, Jun 19, 2012 at 12:38 PM, Mike Johnson <mi...@pu...>wrote: >>> >>>> Hi, >>>> >>>> You'll need to see the mingw faq:* *http://www.mingw.org/wiki/FAQ in >>>> the section called "How do I create Python extensions?" >>>> >>>> Run pexports and dlltool to create the files you'll need to link with >>>> on both the python dll and java. That should solve your link problem. >>>> >>>> Mike >>>> >>>> >>>> >>>> On Jun 18, 2012, at 11:27 PM, Prasanth Narra wrote: >>>> >>>> Hi Mike, >>>> >>>> I've changed src/jep/winconfig.h by commenting the following: >>>> >>>> *//#define USE_DEALLOC 1 >>>> //#define USE_MAPPED_EXCEPTIONS 1 >>>> //#define VERSION "2.5"* >>>> >>>> & when i try building, i get the following error: >>>> >>>> *gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 >>>> -DVERSION="3.0. >>>> 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include >>>> -Ic:\Python2 >>>> 6\include -Ic:\Python26\PC -c src\jep\python\jep_object.c -o >>>> build\temp.win32-2. >>>> 6\Release\src\jep\python\jep_object.o >>>> writing build\temp.win32-2.6\Release\src\jep\jep.def >>>> gcc.exe -mno-cygwin -shared -s >>>> build\temp.win32-2.6\Release\src\jep\invocationha >>>> ndler.o build\temp.win32-2.6\Release\src\jep\jep.o >>>> build\temp.win32-2.6\Release\ >>>> src\jep\pyembed.o build\temp.win32-2.6\Release\src\jep\pyjarray.o >>>> build\temp.win >>>> 32-2.6\Release\src\jep\pyjclass.o >>>> build\temp.win32-2.6\Release\src\jep\pyjfield. >>>> o build\temp.win32-2.6\Release\src\jep\pyjmethod.o >>>> build\temp.win32-2.6\Release\ >>>> src\jep\pyjobject.o build\temp.win32-2.6\Release\src\jep\util.o >>>> build\temp.win32 >>>> -2.6\Release\src\jep\python\jep_object.o >>>> build\temp.win32-2.6\Release\src\jep\je >>>> p.def -Lc:\Python26\libs -Lc:\Python26\PCbuild -ljvm -lpython26 -ldl >>>> -lpython26 >>>> -lmsvcr90 -o build\lib.win32-2.6\jep.pyd >>>> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: >>>> cannot fin >>>> d -ljvm >>>> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: >>>> cannot fin >>>> d -ldl >>>> collect2: ld returned 1 exit status >>>> error: command 'gcc' failed with exit status 1* >>>> >>>> I guess there is some problem with linker. >>>> So is there anything which i'm still missing? >>>> >>>> Thanks, >>>> Prasanth Narra >>>> >>>> On Sat, Jun 9, 2012 at 9:39 AM, Mike Johnson <mi...@pu...>wrote: >>>> >>>>> Hi, >>>>> >>>>> I haven't had much luck running Jep recently on Windows due to >>>>> compiler incompatibilities (difficulty building with the correct MSVCRT). >>>>> Maybe Mingw will be better. >>>>> >>>>> It looks like you'll need to change src/jep/winconfig.h. Remove lines >>>>> 18-25. This file hasn't been updated since the switch to using distutils to >>>>> build. That should be it. >>>>> >>>>> Please let me know if you are successful. I'd love to see a good >>>>> Windows build again, and there has been a lot of interest from others as >>>>> well. >>>>> >>>>> Thanks, >>>>> Mike >>>>> >>>>> >>>>> On Jun 7, 2012, at 1:07 AM, Prasanth Narra wrote: >>>>> >>>>> Hi Mike, >>>>> >>>>> I've downloaded JEP 3.0.0 source. When i try building it with MinGW / >>>>> JDK 1.6 (64 bit) / Python 2.6, i get the following error. >>>>> >>>>> *In file included from src\jep\pyjfield.c:35:0: >>>>> src\jep\/winconfig.h:25:0: warning: "VERSION" redefined >>>>> <command-line>:0:0: note: this is the location of the previous >>>>> definition >>>>> gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 >>>>> -DVERSION="3.0. >>>>> 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include >>>>> -Ic:\Python2 >>>>> 6\include -Ic:\Python26\PC -c src\jep\pyjmethod.c -o >>>>> build\temp.win32-2.6\Releas >>>>> e\src\jep\pyjmethod.o >>>>> In file included from src\jep\pyjmethod.c:30:0: >>>>> src\jep\/winconfig.h:25:0: warning: "VERSION" redefined >>>>> <command-line>:0:0: note: this is the location of the previous >>>>> definition >>>>> src\jep\pyjmethod.c: In function 'pyjmethod_init': >>>>> src\jep\pyjmethod.c:278:8: error: 'methodGetExceptions' undeclared >>>>> (first use in >>>>> this function) >>>>> src\jep\pyjmethod.c:278:8: note: each undeclared identifier is >>>>> reported only onc >>>>> e for each function it appears in >>>>> src\jep\pyjmethod.c:287:5: error: 'exceptions' undeclared (first use >>>>> in this fun >>>>> ction) >>>>> error: command 'gcc' failed with exit status 1 >>>>> >>>>> C:\MinGW\bin>* >>>>> >>>>> Build command used: *python setup.py install build --compiler=mingw32 >>>>> >>>>> *Can you please help me with this, also let me know if i need >>>>> anything else for building JEP.jar (64-bit JRE compatable) & JEP.dll >>>>> (64-bit) >>>>> >>>>> Thanks, >>>>> Prasanth Narra >>>>> >>>>> On Mon, May 28, 2012 at 4:39 PM, Mike Johnson <mi...@pu...>wrote: >>>>> >>>>>> Hi Prasanth, >>>>>> >>>>>> Make sure you recompile Jep with the 64 bit JDK as your JAVA_HOME, or >>>>>> they can't work together... >>>>>> >>>>>> Thanks, >>>>>> Mike >>>>>> >>>>>> >>>>>> On Mon, May 28, 2012 at 10:12 AM, Prasanth Narra <nar...@gm...> >>>>>> wrote: >>>>>> > Hi, >>>>>> > >>>>>> > When i try running my java class with JRE 1.6 (64 bit) with JEP >>>>>> 2.4, i get >>>>>> > an java.lang.UnsatisfiedLinkError (which says unable to load/find >>>>>> dependent >>>>>> > libraries). >>>>>> > >>>>>> > But everything is fine with 32 bit JRE. But now that i have to >>>>>> upgrade to 64 >>>>>> > bit, i can't use 32- bit JRE. >>>>>> > >>>>>> > -- >>>>>> > Thanks, >>>>>> > Prasanth Narra >>>>>> > >>>>>> > >>>>>> > >>>>>> ------------------------------------------------------------------------------ >>>>>> > Live Security Virtual Conference >>>>>> > Exclusive live event will cover all the ways today's security and >>>>>> > threat landscape has changed and how IT managers can respond. >>>>>> Discussions >>>>>> > will include endpoint security, mobile security and the latest in >>>>>> malware >>>>>> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>>>> > _______________________________________________ >>>>>> > Jepp-users mailing list >>>>>> > Jep...@li... >>>>>> > https://lists.sourceforge.net/lists/listinfo/jepp-users >>>>>> > >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Thanks, >>>>> *Prasanth Narra* >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Thanks, >>>> *Prasanth Narra* >>>> >>>> >>>> >>> >>> >>> -- >>> Thanks, >>> *Prasanth Narra* >>> >>> >>> >> >> >> -- >> Thanks, >> *Prasanth Narra* >> >> >> > > > -- > Thanks, > *Prasanth Narra* > > -- Thanks, *Prasanth Narra* |
From: Prasanth N. <nar...@gm...> - 2012-06-26 12:36:37
|
Hi Mike, I was able to generate import library 'libjvm.a' & i've placed it in mingw\lib folder. And now linker is not giving any problem w.r.t jvm, but its unable to link dl, wht exactly does dl mean? *gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 -DVERSION="3.0. 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include -Ic:\Python2 6\include -Ic:\Python26\PC -c src\jep\python\jep_object.c -o build\temp.win32-2. 6\Release\src\jep\python\jep_object.o writing build\temp.win32-2.6\Release\src\jep\jep.def gcc.exe -mno-cygwin -shared -s build\temp.win32-2.6\Release\src\jep\invocationha ndler.o build\temp.win32-2.6\Release\src\jep\jep.o build\temp.win32-2.6\Release\ src\jep\pyembed.o build\temp.win32-2.6\Release\src\jep\pyjarray.o build\temp.win 32-2.6\Release\src\jep\pyjclass.o build\temp.win32-2.6\Release\src\jep\pyjfield. o build\temp.win32-2.6\Release\src\jep\pyjmethod.o build\temp.win32-2.6\Release\ src\jep\pyjobject.o build\temp.win32-2.6\Release\src\jep\util.o build\temp.win32 -2.6\Release\src\jep\python\jep_object.o build\temp.win32-2.6\Release\src\jep\je p.def -Lc:\Python26\libs -Lc:\Python26\PCbuild -ljvm -lpython26 -ldl -lpython26 -lmsvcr90 -o build\lib.win32-2.6\jep.pyd c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin d -ldl collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1* Thanks, Prasanth Narra On Tue, Jun 26, 2012 at 1:55 AM, Mike Johnson <mi...@pu...> wrote: > > I'm sure there's a way but it would require a Windows expert, which is > definitely not me. > > The problem is you have to use the same MSVCRT runtime library as Java or > bad things happen when memory is shared between two runtimes. > > But on x64 Windows, they are distributing Java with some version of the > dll that I can't find a tool to link to. There doesn't seem to be any VS > version that links it. The closest I could find were some people trying to > build using some Windows Driver Kit compiler, because it linked using the > right MSVCRT.dll. > > I had been compiling with an old copy of Visual Studio 6 that I had. For a > long time this was the only way I had to build for Windows. It was given to > me when I was in high school (it's old!). I don't even have disks anymore, > just an iso image on an old backup drive. But it doesn't work on x64, of > course, because there's no x64 MSVC 6. > > Using MSVC is probably a dead end unless somebody knows more than me. > Mingw is probably the best hope because it has switches to control the > runtime linking. The second best hope is Microsoft rethinks their policy > and adds a runtime version selector in the IDE (ha). > > This is how things are on Windows and why I keep encouraging people to use > Jep on Linux -- it's *so much easier:* > > $ pip install jep > > On Jun 24, 2012, at 10:49 PM, Prasanth Narra wrote: > > Hi Mike, > > Any other way that i can build the jep.dll & jep.jar (for 64 bit JRE & > WIN7 OS-64 bit)? Can i use MSVC? > > Thanks, > Prasanth Narra > > On Sat, Jun 23, 2012 at 4:24 AM, Mike Johnson <mi...@pu...>wrote: > >> Hi, >> >> Sorry, I am not really familiar with that tool. I've just used it once or >> twich, but I can't tell you much about it. >> >> On Jun 21, 2012, at 11:42 PM, Prasanth Narra wrote: >> >> Hi Mike, >> >> I've run pexports (for jvm.dll) & was able to generate jvm.def >> But when i use dlltool to generate import library (dlltool -D jvm.dll -d >> jvm.def -l jvm.a), it creates jvm.a with 0kb (nothing in it). >> >> Can you help me with this. >> >> Thanks, >> Prasanth Narra >> >> On Tue, Jun 19, 2012 at 12:38 PM, Mike Johnson <mi...@pu...>wrote: >> >>> Hi, >>> >>> You'll need to see the mingw faq:* *http://www.mingw.org/wiki/FAQ in >>> the section called "How do I create Python extensions?" >>> >>> Run pexports and dlltool to create the files you'll need to link with on >>> both the python dll and java. That should solve your link problem. >>> >>> Mike >>> >>> >>> >>> On Jun 18, 2012, at 11:27 PM, Prasanth Narra wrote: >>> >>> Hi Mike, >>> >>> I've changed src/jep/winconfig.h by commenting the following: >>> >>> *//#define USE_DEALLOC 1 >>> //#define USE_MAPPED_EXCEPTIONS 1 >>> //#define VERSION "2.5"* >>> >>> & when i try building, i get the following error: >>> >>> *gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 >>> -DVERSION="3.0. >>> 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include >>> -Ic:\Python2 >>> 6\include -Ic:\Python26\PC -c src\jep\python\jep_object.c -o >>> build\temp.win32-2. >>> 6\Release\src\jep\python\jep_object.o >>> writing build\temp.win32-2.6\Release\src\jep\jep.def >>> gcc.exe -mno-cygwin -shared -s >>> build\temp.win32-2.6\Release\src\jep\invocationha >>> ndler.o build\temp.win32-2.6\Release\src\jep\jep.o >>> build\temp.win32-2.6\Release\ >>> src\jep\pyembed.o build\temp.win32-2.6\Release\src\jep\pyjarray.o >>> build\temp.win >>> 32-2.6\Release\src\jep\pyjclass.o >>> build\temp.win32-2.6\Release\src\jep\pyjfield. >>> o build\temp.win32-2.6\Release\src\jep\pyjmethod.o >>> build\temp.win32-2.6\Release\ >>> src\jep\pyjobject.o build\temp.win32-2.6\Release\src\jep\util.o >>> build\temp.win32 >>> -2.6\Release\src\jep\python\jep_object.o >>> build\temp.win32-2.6\Release\src\jep\je >>> p.def -Lc:\Python26\libs -Lc:\Python26\PCbuild -ljvm -lpython26 -ldl >>> -lpython26 >>> -lmsvcr90 -o build\lib.win32-2.6\jep.pyd >>> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: >>> cannot fin >>> d -ljvm >>> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: >>> cannot fin >>> d -ldl >>> collect2: ld returned 1 exit status >>> error: command 'gcc' failed with exit status 1* >>> >>> I guess there is some problem with linker. >>> So is there anything which i'm still missing? >>> >>> Thanks, >>> Prasanth Narra >>> >>> On Sat, Jun 9, 2012 at 9:39 AM, Mike Johnson <mi...@pu...>wrote: >>> >>>> Hi, >>>> >>>> I haven't had much luck running Jep recently on Windows due to compiler >>>> incompatibilities (difficulty building with the correct MSVCRT). Maybe >>>> Mingw will be better. >>>> >>>> It looks like you'll need to change src/jep/winconfig.h. Remove lines >>>> 18-25. This file hasn't been updated since the switch to using distutils to >>>> build. That should be it. >>>> >>>> Please let me know if you are successful. I'd love to see a good >>>> Windows build again, and there has been a lot of interest from others as >>>> well. >>>> >>>> Thanks, >>>> Mike >>>> >>>> >>>> On Jun 7, 2012, at 1:07 AM, Prasanth Narra wrote: >>>> >>>> Hi Mike, >>>> >>>> I've downloaded JEP 3.0.0 source. When i try building it with MinGW / >>>> JDK 1.6 (64 bit) / Python 2.6, i get the following error. >>>> >>>> *In file included from src\jep\pyjfield.c:35:0: >>>> src\jep\/winconfig.h:25:0: warning: "VERSION" redefined >>>> <command-line>:0:0: note: this is the location of the previous >>>> definition >>>> gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 >>>> -DVERSION="3.0. >>>> 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include >>>> -Ic:\Python2 >>>> 6\include -Ic:\Python26\PC -c src\jep\pyjmethod.c -o >>>> build\temp.win32-2.6\Releas >>>> e\src\jep\pyjmethod.o >>>> In file included from src\jep\pyjmethod.c:30:0: >>>> src\jep\/winconfig.h:25:0: warning: "VERSION" redefined >>>> <command-line>:0:0: note: this is the location of the previous >>>> definition >>>> src\jep\pyjmethod.c: In function 'pyjmethod_init': >>>> src\jep\pyjmethod.c:278:8: error: 'methodGetExceptions' undeclared >>>> (first use in >>>> this function) >>>> src\jep\pyjmethod.c:278:8: note: each undeclared identifier is reported >>>> only onc >>>> e for each function it appears in >>>> src\jep\pyjmethod.c:287:5: error: 'exceptions' undeclared (first use in >>>> this fun >>>> ction) >>>> error: command 'gcc' failed with exit status 1 >>>> >>>> C:\MinGW\bin>* >>>> >>>> Build command used: *python setup.py install build --compiler=mingw32 >>>> >>>> *Can you please help me with this, also let me know if i need anything >>>> else for building JEP.jar (64-bit JRE compatable) & JEP.dll (64-bit) >>>> >>>> Thanks, >>>> Prasanth Narra >>>> >>>> On Mon, May 28, 2012 at 4:39 PM, Mike Johnson <mi...@pu...>wrote: >>>> >>>>> Hi Prasanth, >>>>> >>>>> Make sure you recompile Jep with the 64 bit JDK as your JAVA_HOME, or >>>>> they can't work together... >>>>> >>>>> Thanks, >>>>> Mike >>>>> >>>>> >>>>> On Mon, May 28, 2012 at 10:12 AM, Prasanth Narra <nar...@gm...> >>>>> wrote: >>>>> > Hi, >>>>> > >>>>> > When i try running my java class with JRE 1.6 (64 bit) with JEP 2.4, >>>>> i get >>>>> > an java.lang.UnsatisfiedLinkError (which says unable to load/find >>>>> dependent >>>>> > libraries). >>>>> > >>>>> > But everything is fine with 32 bit JRE. But now that i have to >>>>> upgrade to 64 >>>>> > bit, i can't use 32- bit JRE. >>>>> > >>>>> > -- >>>>> > Thanks, >>>>> > Prasanth Narra >>>>> > >>>>> > >>>>> > >>>>> ------------------------------------------------------------------------------ >>>>> > Live Security Virtual Conference >>>>> > Exclusive live event will cover all the ways today's security and >>>>> > threat landscape has changed and how IT managers can respond. >>>>> Discussions >>>>> > will include endpoint security, mobile security and the latest in >>>>> malware >>>>> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>>> > _______________________________________________ >>>>> > Jepp-users mailing list >>>>> > Jep...@li... >>>>> > https://lists.sourceforge.net/lists/listinfo/jepp-users >>>>> > >>>>> >>>> >>>> >>>> >>>> -- >>>> Thanks, >>>> *Prasanth Narra* >>>> >>>> >>>> >>> >>> >>> -- >>> Thanks, >>> *Prasanth Narra* >>> >>> >>> >> >> >> -- >> Thanks, >> *Prasanth Narra* >> >> >> > > > -- > Thanks, > *Prasanth Narra* > > > -- Thanks, *Prasanth Narra* |
From: Mike J. <mi...@pu...> - 2012-06-25 20:26:00
|
I'm sure there's a way but it would require a Windows expert, which is definitely not me. The problem is you have to use the same MSVCRT runtime library as Java or bad things happen when memory is shared between two runtimes. But on x64 Windows, they are distributing Java with some version of the dll that I can't find a tool to link to. There doesn't seem to be any VS version that links it. The closest I could find were some people trying to build using some Windows Driver Kit compiler, because it linked using the right MSVCRT.dll. I had been compiling with an old copy of Visual Studio 6 that I had. For a long time this was the only way I had to build for Windows. It was given to me when I was in high school (it's old!). I don't even have disks anymore, just an iso image on an old backup drive. But it doesn't work on x64, of course, because there's no x64 MSVC 6. Using MSVC is probably a dead end unless somebody knows more than me. Mingw is probably the best hope because it has switches to control the runtime linking. The second best hope is Microsoft rethinks their policy and adds a runtime version selector in the IDE (ha). This is how things are on Windows and why I keep encouraging people to use Jep on Linux -- it's so much easier: $ pip install jep On Jun 24, 2012, at 10:49 PM, Prasanth Narra wrote: > Hi Mike, > > Any other way that i can build the jep.dll & jep.jar (for 64 bit JRE & WIN7 OS-64 bit)? Can i use MSVC? > > Thanks, > Prasanth Narra > > On Sat, Jun 23, 2012 at 4:24 AM, Mike Johnson <mi...@pu...> wrote: > Hi, > > Sorry, I am not really familiar with that tool. I've just used it once or twich, but I can't tell you much about it. > > On Jun 21, 2012, at 11:42 PM, Prasanth Narra wrote: > >> Hi Mike, >> >> I've run pexports (for jvm.dll) & was able to generate jvm.def >> But when i use dlltool to generate import library (dlltool -D jvm.dll -d jvm.def -l jvm.a), it creates jvm.a with 0kb (nothing in it). >> >> Can you help me with this. >> >> Thanks, >> Prasanth Narra >> >> On Tue, Jun 19, 2012 at 12:38 PM, Mike Johnson <mi...@pu...> wrote: >> Hi, >> >> You'll need to see the mingw faq: http://www.mingw.org/wiki/FAQ in the section called "How do I create Python extensions?" >> >> Run pexports and dlltool to create the files you'll need to link with on both the python dll and java. That should solve your link problem. >> >> Mike >> >> >> >> On Jun 18, 2012, at 11:27 PM, Prasanth Narra wrote: >> >>> Hi Mike, >>> >>> I've changed src/jep/winconfig.h by commenting the following: >>> >>> //#define USE_DEALLOC 1 >>> //#define USE_MAPPED_EXCEPTIONS 1 >>> //#define VERSION "2.5" >>> >>> & when i try building, i get the following error: >>> >>> gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 -DVERSION="3.0. >>> 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include -Ic:\Python2 >>> 6\include -Ic:\Python26\PC -c src\jep\python\jep_object.c -o build\temp.win32-2. >>> 6\Release\src\jep\python\jep_object.o >>> writing build\temp.win32-2.6\Release\src\jep\jep.def >>> gcc.exe -mno-cygwin -shared -s build\temp.win32-2.6\Release\src\jep\invocationha >>> ndler.o build\temp.win32-2.6\Release\src\jep\jep.o build\temp.win32-2.6\Release\ >>> src\jep\pyembed.o build\temp.win32-2.6\Release\src\jep\pyjarray.o build\temp.win >>> 32-2.6\Release\src\jep\pyjclass.o build\temp.win32-2.6\Release\src\jep\pyjfield. >>> o build\temp.win32-2.6\Release\src\jep\pyjmethod.o build\temp.win32-2.6\Release\ >>> src\jep\pyjobject.o build\temp.win32-2.6\Release\src\jep\util.o build\temp.win32 >>> -2.6\Release\src\jep\python\jep_object.o build\temp.win32-2.6\Release\src\jep\je >>> p.def -Lc:\Python26\libs -Lc:\Python26\PCbuild -ljvm -lpython26 -ldl -lpython26 >>> -lmsvcr90 -o build\lib.win32-2.6\jep.pyd >>> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin >>> d -ljvm >>> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin >>> d -ldl >>> collect2: ld returned 1 exit status >>> error: command 'gcc' failed with exit status 1 >>> >>> I guess there is some problem with linker. >>> So is there anything which i'm still missing? >>> >>> Thanks, >>> Prasanth Narra >>> >>> On Sat, Jun 9, 2012 at 9:39 AM, Mike Johnson <mi...@pu...> wrote: >>> Hi, >>> >>> I haven't had much luck running Jep recently on Windows due to compiler incompatibilities (difficulty building with the correct MSVCRT). Maybe Mingw will be better. >>> >>> It looks like you'll need to change src/jep/winconfig.h. Remove lines 18-25. This file hasn't been updated since the switch to using distutils to build. That should be it. >>> >>> Please let me know if you are successful. I'd love to see a good Windows build again, and there has been a lot of interest from others as well. >>> >>> Thanks, >>> Mike >>> >>> >>> On Jun 7, 2012, at 1:07 AM, Prasanth Narra wrote: >>> >>>> Hi Mike, >>>> >>>> I've downloaded JEP 3.0.0 source. When i try building it with MinGW / JDK 1.6 (64 bit) / Python 2.6, i get the following error. >>>> >>>> In file included from src\jep\pyjfield.c:35:0: >>>> src\jep\/winconfig.h:25:0: warning: "VERSION" redefined >>>> <command-line>:0:0: note: this is the location of the previous definition >>>> gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 -DVERSION="3.0. >>>> 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include -Ic:\Python2 >>>> 6\include -Ic:\Python26\PC -c src\jep\pyjmethod.c -o build\temp.win32-2.6\Releas >>>> e\src\jep\pyjmethod.o >>>> In file included from src\jep\pyjmethod.c:30:0: >>>> src\jep\/winconfig.h:25:0: warning: "VERSION" redefined >>>> <command-line>:0:0: note: this is the location of the previous definition >>>> src\jep\pyjmethod.c: In function 'pyjmethod_init': >>>> src\jep\pyjmethod.c:278:8: error: 'methodGetExceptions' undeclared (first use in >>>> this function) >>>> src\jep\pyjmethod.c:278:8: note: each undeclared identifier is reported only onc >>>> e for each function it appears in >>>> src\jep\pyjmethod.c:287:5: error: 'exceptions' undeclared (first use in this fun >>>> ction) >>>> error: command 'gcc' failed with exit status 1 >>>> >>>> C:\MinGW\bin> >>>> >>>> Build command used: python setup.py install build --compiler=mingw32 >>>> >>>> Can you please help me with this, also let me know if i need anything else for building JEP.jar (64-bit JRE compatable) & JEP.dll (64-bit) >>>> >>>> Thanks, >>>> Prasanth Narra >>>> >>>> On Mon, May 28, 2012 at 4:39 PM, Mike Johnson <mi...@pu...> wrote: >>>> Hi Prasanth, >>>> >>>> Make sure you recompile Jep with the 64 bit JDK as your JAVA_HOME, or >>>> they can't work together... >>>> >>>> Thanks, >>>> Mike >>>> >>>> >>>> On Mon, May 28, 2012 at 10:12 AM, Prasanth Narra <nar...@gm...> wrote: >>>> > Hi, >>>> > >>>> > When i try running my java class with JRE 1.6 (64 bit) with JEP 2.4, i get >>>> > an java.lang.UnsatisfiedLinkError (which says unable to load/find dependent >>>> > libraries). >>>> > >>>> > But everything is fine with 32 bit JRE. But now that i have to upgrade to 64 >>>> > bit, i can't use 32- bit JRE. >>>> > >>>> > -- >>>> > Thanks, >>>> > Prasanth Narra >>>> > >>>> > >>>> > ------------------------------------------------------------------------------ >>>> > Live Security Virtual Conference >>>> > Exclusive live event will cover all the ways today's security and >>>> > threat landscape has changed and how IT managers can respond. Discussions >>>> > will include endpoint security, mobile security and the latest in malware >>>> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > _______________________________________________ >>>> > Jepp-users mailing list >>>> > Jep...@li... >>>> > https://lists.sourceforge.net/lists/listinfo/jepp-users >>>> > >>>> >>>> >>>> >>>> -- >>>> Thanks, >>>> Prasanth Narra >>>> >>> >>> >>> >>> >>> -- >>> Thanks, >>> Prasanth Narra >>> >> >> >> >> >> -- >> Thanks, >> Prasanth Narra >> > > > > > -- > Thanks, > Prasanth Narra > |
From: Prasanth N. <nar...@gm...> - 2012-06-25 05:49:18
|
Hi Mike, Any other way that i can build the jep.dll & jep.jar (for 64 bit JRE & WIN7 OS-64 bit)? Can i use MSVC? Thanks, Prasanth Narra On Sat, Jun 23, 2012 at 4:24 AM, Mike Johnson <mi...@pu...> wrote: > Hi, > > Sorry, I am not really familiar with that tool. I've just used it once or > twich, but I can't tell you much about it. > > On Jun 21, 2012, at 11:42 PM, Prasanth Narra wrote: > > Hi Mike, > > I've run pexports (for jvm.dll) & was able to generate jvm.def > But when i use dlltool to generate import library (dlltool -D jvm.dll -d > jvm.def -l jvm.a), it creates jvm.a with 0kb (nothing in it). > > Can you help me with this. > > Thanks, > Prasanth Narra > > On Tue, Jun 19, 2012 at 12:38 PM, Mike Johnson <mi...@pu...>wrote: > >> Hi, >> >> You'll need to see the mingw faq:* *http://www.mingw.org/wiki/FAQ in the >> section called "How do I create Python extensions?" >> >> Run pexports and dlltool to create the files you'll need to link with on >> both the python dll and java. That should solve your link problem. >> >> Mike >> >> >> >> On Jun 18, 2012, at 11:27 PM, Prasanth Narra wrote: >> >> Hi Mike, >> >> I've changed src/jep/winconfig.h by commenting the following: >> >> *//#define USE_DEALLOC 1 >> //#define USE_MAPPED_EXCEPTIONS 1 >> //#define VERSION "2.5"* >> >> & when i try building, i get the following error: >> >> *gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 >> -DVERSION="3.0. >> 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include >> -Ic:\Python2 >> 6\include -Ic:\Python26\PC -c src\jep\python\jep_object.c -o >> build\temp.win32-2. >> 6\Release\src\jep\python\jep_object.o >> writing build\temp.win32-2.6\Release\src\jep\jep.def >> gcc.exe -mno-cygwin -shared -s >> build\temp.win32-2.6\Release\src\jep\invocationha >> ndler.o build\temp.win32-2.6\Release\src\jep\jep.o >> build\temp.win32-2.6\Release\ >> src\jep\pyembed.o build\temp.win32-2.6\Release\src\jep\pyjarray.o >> build\temp.win >> 32-2.6\Release\src\jep\pyjclass.o >> build\temp.win32-2.6\Release\src\jep\pyjfield. >> o build\temp.win32-2.6\Release\src\jep\pyjmethod.o >> build\temp.win32-2.6\Release\ >> src\jep\pyjobject.o build\temp.win32-2.6\Release\src\jep\util.o >> build\temp.win32 >> -2.6\Release\src\jep\python\jep_object.o >> build\temp.win32-2.6\Release\src\jep\je >> p.def -Lc:\Python26\libs -Lc:\Python26\PCbuild -ljvm -lpython26 -ldl >> -lpython26 >> -lmsvcr90 -o build\lib.win32-2.6\jep.pyd >> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: >> cannot fin >> d -ljvm >> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: >> cannot fin >> d -ldl >> collect2: ld returned 1 exit status >> error: command 'gcc' failed with exit status 1* >> >> I guess there is some problem with linker. >> So is there anything which i'm still missing? >> >> Thanks, >> Prasanth Narra >> >> On Sat, Jun 9, 2012 at 9:39 AM, Mike Johnson <mi...@pu...>wrote: >> >>> Hi, >>> >>> I haven't had much luck running Jep recently on Windows due to compiler >>> incompatibilities (difficulty building with the correct MSVCRT). Maybe >>> Mingw will be better. >>> >>> It looks like you'll need to change src/jep/winconfig.h. Remove lines >>> 18-25. This file hasn't been updated since the switch to using distutils to >>> build. That should be it. >>> >>> Please let me know if you are successful. I'd love to see a good >>> Windows build again, and there has been a lot of interest from others as >>> well. >>> >>> Thanks, >>> Mike >>> >>> >>> On Jun 7, 2012, at 1:07 AM, Prasanth Narra wrote: >>> >>> Hi Mike, >>> >>> I've downloaded JEP 3.0.0 source. When i try building it with MinGW / >>> JDK 1.6 (64 bit) / Python 2.6, i get the following error. >>> >>> *In file included from src\jep\pyjfield.c:35:0: >>> src\jep\/winconfig.h:25:0: warning: "VERSION" redefined >>> <command-line>:0:0: note: this is the location of the previous definition >>> gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 >>> -DVERSION="3.0. >>> 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include >>> -Ic:\Python2 >>> 6\include -Ic:\Python26\PC -c src\jep\pyjmethod.c -o >>> build\temp.win32-2.6\Releas >>> e\src\jep\pyjmethod.o >>> In file included from src\jep\pyjmethod.c:30:0: >>> src\jep\/winconfig.h:25:0: warning: "VERSION" redefined >>> <command-line>:0:0: note: this is the location of the previous definition >>> src\jep\pyjmethod.c: In function 'pyjmethod_init': >>> src\jep\pyjmethod.c:278:8: error: 'methodGetExceptions' undeclared >>> (first use in >>> this function) >>> src\jep\pyjmethod.c:278:8: note: each undeclared identifier is reported >>> only onc >>> e for each function it appears in >>> src\jep\pyjmethod.c:287:5: error: 'exceptions' undeclared (first use in >>> this fun >>> ction) >>> error: command 'gcc' failed with exit status 1 >>> >>> C:\MinGW\bin>* >>> >>> Build command used: *python setup.py install build --compiler=mingw32 >>> >>> *Can you please help me with this, also let me know if i need anything >>> else for building JEP.jar (64-bit JRE compatable) & JEP.dll (64-bit) >>> >>> Thanks, >>> Prasanth Narra >>> >>> On Mon, May 28, 2012 at 4:39 PM, Mike Johnson <mi...@pu...>wrote: >>> >>>> Hi Prasanth, >>>> >>>> Make sure you recompile Jep with the 64 bit JDK as your JAVA_HOME, or >>>> they can't work together... >>>> >>>> Thanks, >>>> Mike >>>> >>>> >>>> On Mon, May 28, 2012 at 10:12 AM, Prasanth Narra <nar...@gm...> >>>> wrote: >>>> > Hi, >>>> > >>>> > When i try running my java class with JRE 1.6 (64 bit) with JEP 2.4, >>>> i get >>>> > an java.lang.UnsatisfiedLinkError (which says unable to load/find >>>> dependent >>>> > libraries). >>>> > >>>> > But everything is fine with 32 bit JRE. But now that i have to >>>> upgrade to 64 >>>> > bit, i can't use 32- bit JRE. >>>> > >>>> > -- >>>> > Thanks, >>>> > Prasanth Narra >>>> > >>>> > >>>> > >>>> ------------------------------------------------------------------------------ >>>> > Live Security Virtual Conference >>>> > Exclusive live event will cover all the ways today's security and >>>> > threat landscape has changed and how IT managers can respond. >>>> Discussions >>>> > will include endpoint security, mobile security and the latest in >>>> malware >>>> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> > _______________________________________________ >>>> > Jepp-users mailing list >>>> > Jep...@li... >>>> > https://lists.sourceforge.net/lists/listinfo/jepp-users >>>> > >>>> >>> >>> >>> >>> -- >>> Thanks, >>> *Prasanth Narra* >>> >>> >>> >> >> >> -- >> Thanks, >> *Prasanth Narra* >> >> >> > > > -- > Thanks, > *Prasanth Narra* > > > -- Thanks, *Prasanth Narra* |
From: Mike J. <mi...@pu...> - 2012-06-22 22:54:38
|
Hi, Sorry, I am not really familiar with that tool. I've just used it once or twich, but I can't tell you much about it. On Jun 21, 2012, at 11:42 PM, Prasanth Narra wrote: > Hi Mike, > > I've run pexports (for jvm.dll) & was able to generate jvm.def > But when i use dlltool to generate import library (dlltool -D jvm.dll -d jvm.def -l jvm.a), it creates jvm.a with 0kb (nothing in it). > > Can you help me with this. > > Thanks, > Prasanth Narra > > On Tue, Jun 19, 2012 at 12:38 PM, Mike Johnson <mi...@pu...> wrote: > Hi, > > You'll need to see the mingw faq: http://www.mingw.org/wiki/FAQ in the section called "How do I create Python extensions?" > > Run pexports and dlltool to create the files you'll need to link with on both the python dll and java. That should solve your link problem. > > Mike > > > > On Jun 18, 2012, at 11:27 PM, Prasanth Narra wrote: > >> Hi Mike, >> >> I've changed src/jep/winconfig.h by commenting the following: >> >> //#define USE_DEALLOC 1 >> //#define USE_MAPPED_EXCEPTIONS 1 >> //#define VERSION "2.5" >> >> & when i try building, i get the following error: >> >> gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 -DVERSION="3.0. >> 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include -Ic:\Python2 >> 6\include -Ic:\Python26\PC -c src\jep\python\jep_object.c -o build\temp.win32-2. >> 6\Release\src\jep\python\jep_object.o >> writing build\temp.win32-2.6\Release\src\jep\jep.def >> gcc.exe -mno-cygwin -shared -s build\temp.win32-2.6\Release\src\jep\invocationha >> ndler.o build\temp.win32-2.6\Release\src\jep\jep.o build\temp.win32-2.6\Release\ >> src\jep\pyembed.o build\temp.win32-2.6\Release\src\jep\pyjarray.o build\temp.win >> 32-2.6\Release\src\jep\pyjclass.o build\temp.win32-2.6\Release\src\jep\pyjfield. >> o build\temp.win32-2.6\Release\src\jep\pyjmethod.o build\temp.win32-2.6\Release\ >> src\jep\pyjobject.o build\temp.win32-2.6\Release\src\jep\util.o build\temp.win32 >> -2.6\Release\src\jep\python\jep_object.o build\temp.win32-2.6\Release\src\jep\je >> p.def -Lc:\Python26\libs -Lc:\Python26\PCbuild -ljvm -lpython26 -ldl -lpython26 >> -lmsvcr90 -o build\lib.win32-2.6\jep.pyd >> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin >> d -ljvm >> c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin >> d -ldl >> collect2: ld returned 1 exit status >> error: command 'gcc' failed with exit status 1 >> >> I guess there is some problem with linker. >> So is there anything which i'm still missing? >> >> Thanks, >> Prasanth Narra >> >> On Sat, Jun 9, 2012 at 9:39 AM, Mike Johnson <mi...@pu...> wrote: >> Hi, >> >> I haven't had much luck running Jep recently on Windows due to compiler incompatibilities (difficulty building with the correct MSVCRT). Maybe Mingw will be better. >> >> It looks like you'll need to change src/jep/winconfig.h. Remove lines 18-25. This file hasn't been updated since the switch to using distutils to build. That should be it. >> >> Please let me know if you are successful. I'd love to see a good Windows build again, and there has been a lot of interest from others as well. >> >> Thanks, >> Mike >> >> >> On Jun 7, 2012, at 1:07 AM, Prasanth Narra wrote: >> >>> Hi Mike, >>> >>> I've downloaded JEP 3.0.0 source. When i try building it with MinGW / JDK 1.6 (64 bit) / Python 2.6, i get the following error. >>> >>> In file included from src\jep\pyjfield.c:35:0: >>> src\jep\/winconfig.h:25:0: warning: "VERSION" redefined >>> <command-line>:0:0: note: this is the location of the previous definition >>> gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 -DVERSION="3.0. >>> 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include -Ic:\Python2 >>> 6\include -Ic:\Python26\PC -c src\jep\pyjmethod.c -o build\temp.win32-2.6\Releas >>> e\src\jep\pyjmethod.o >>> In file included from src\jep\pyjmethod.c:30:0: >>> src\jep\/winconfig.h:25:0: warning: "VERSION" redefined >>> <command-line>:0:0: note: this is the location of the previous definition >>> src\jep\pyjmethod.c: In function 'pyjmethod_init': >>> src\jep\pyjmethod.c:278:8: error: 'methodGetExceptions' undeclared (first use in >>> this function) >>> src\jep\pyjmethod.c:278:8: note: each undeclared identifier is reported only onc >>> e for each function it appears in >>> src\jep\pyjmethod.c:287:5: error: 'exceptions' undeclared (first use in this fun >>> ction) >>> error: command 'gcc' failed with exit status 1 >>> >>> C:\MinGW\bin> >>> >>> Build command used: python setup.py install build --compiler=mingw32 >>> >>> Can you please help me with this, also let me know if i need anything else for building JEP.jar (64-bit JRE compatable) & JEP.dll (64-bit) >>> >>> Thanks, >>> Prasanth Narra >>> >>> On Mon, May 28, 2012 at 4:39 PM, Mike Johnson <mi...@pu...> wrote: >>> Hi Prasanth, >>> >>> Make sure you recompile Jep with the 64 bit JDK as your JAVA_HOME, or >>> they can't work together... >>> >>> Thanks, >>> Mike >>> >>> >>> On Mon, May 28, 2012 at 10:12 AM, Prasanth Narra <nar...@gm...> wrote: >>> > Hi, >>> > >>> > When i try running my java class with JRE 1.6 (64 bit) with JEP 2.4, i get >>> > an java.lang.UnsatisfiedLinkError (which says unable to load/find dependent >>> > libraries). >>> > >>> > But everything is fine with 32 bit JRE. But now that i have to upgrade to 64 >>> > bit, i can't use 32- bit JRE. >>> > >>> > -- >>> > Thanks, >>> > Prasanth Narra >>> > >>> > >>> > ------------------------------------------------------------------------------ >>> > Live Security Virtual Conference >>> > Exclusive live event will cover all the ways today's security and >>> > threat landscape has changed and how IT managers can respond. Discussions >>> > will include endpoint security, mobile security and the latest in malware >>> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > _______________________________________________ >>> > Jepp-users mailing list >>> > Jep...@li... >>> > https://lists.sourceforge.net/lists/listinfo/jepp-users >>> > >>> >>> >>> >>> -- >>> Thanks, >>> Prasanth Narra >>> >> >> >> >> >> -- >> Thanks, >> Prasanth Narra >> > > > > > -- > Thanks, > Prasanth Narra > |
From: Prasanth N. <nar...@gm...> - 2012-06-22 06:42:16
|
Hi Mike, I've run pexports (for jvm.dll) & was able to generate jvm.def But when i use dlltool to generate import library (dlltool -D jvm.dll -d jvm.def -l jvm.a), it creates jvm.a with 0kb (nothing in it). Can you help me with this. Thanks, Prasanth Narra On Tue, Jun 19, 2012 at 12:38 PM, Mike Johnson <mi...@pu...>wrote: > Hi, > > You'll need to see the mingw faq:* *http://www.mingw.org/wiki/FAQ in the > section called "How do I create Python extensions?" > > Run pexports and dlltool to create the files you'll need to link with on > both the python dll and java. That should solve your link problem. > > Mike > > > > On Jun 18, 2012, at 11:27 PM, Prasanth Narra wrote: > > Hi Mike, > > I've changed src/jep/winconfig.h by commenting the following: > > *//#define USE_DEALLOC 1 > //#define USE_MAPPED_EXCEPTIONS 1 > //#define VERSION "2.5"* > > & when i try building, i get the following error: > > *gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 > -DVERSION="3.0. > 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include > -Ic:\Python2 > 6\include -Ic:\Python26\PC -c src\jep\python\jep_object.c -o > build\temp.win32-2. > 6\Release\src\jep\python\jep_object.o > writing build\temp.win32-2.6\Release\src\jep\jep.def > gcc.exe -mno-cygwin -shared -s > build\temp.win32-2.6\Release\src\jep\invocationha > ndler.o build\temp.win32-2.6\Release\src\jep\jep.o > build\temp.win32-2.6\Release\ > src\jep\pyembed.o build\temp.win32-2.6\Release\src\jep\pyjarray.o > build\temp.win > 32-2.6\Release\src\jep\pyjclass.o > build\temp.win32-2.6\Release\src\jep\pyjfield. > o build\temp.win32-2.6\Release\src\jep\pyjmethod.o > build\temp.win32-2.6\Release\ > src\jep\pyjobject.o build\temp.win32-2.6\Release\src\jep\util.o > build\temp.win32 > -2.6\Release\src\jep\python\jep_object.o > build\temp.win32-2.6\Release\src\jep\je > p.def -Lc:\Python26\libs -Lc:\Python26\PCbuild -ljvm -lpython26 -ldl > -lpython26 > -lmsvcr90 -o build\lib.win32-2.6\jep.pyd > c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: > cannot fin > d -ljvm > c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: > cannot fin > d -ldl > collect2: ld returned 1 exit status > error: command 'gcc' failed with exit status 1* > > I guess there is some problem with linker. > So is there anything which i'm still missing? > > Thanks, > Prasanth Narra > > On Sat, Jun 9, 2012 at 9:39 AM, Mike Johnson <mi...@pu...>wrote: > >> Hi, >> >> I haven't had much luck running Jep recently on Windows due to compiler >> incompatibilities (difficulty building with the correct MSVCRT). Maybe >> Mingw will be better. >> >> It looks like you'll need to change src/jep/winconfig.h. Remove lines >> 18-25. This file hasn't been updated since the switch to using distutils to >> build. That should be it. >> >> Please let me know if you are successful. I'd love to see a good Windows >> build again, and there has been a lot of interest from others as well. >> >> Thanks, >> Mike >> >> >> On Jun 7, 2012, at 1:07 AM, Prasanth Narra wrote: >> >> Hi Mike, >> >> I've downloaded JEP 3.0.0 source. When i try building it with MinGW / JDK >> 1.6 (64 bit) / Python 2.6, i get the following error. >> >> *In file included from src\jep\pyjfield.c:35:0: >> src\jep\/winconfig.h:25:0: warning: "VERSION" redefined >> <command-line>:0:0: note: this is the location of the previous definition >> gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 >> -DVERSION="3.0. >> 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include >> -Ic:\Python2 >> 6\include -Ic:\Python26\PC -c src\jep\pyjmethod.c -o >> build\temp.win32-2.6\Releas >> e\src\jep\pyjmethod.o >> In file included from src\jep\pyjmethod.c:30:0: >> src\jep\/winconfig.h:25:0: warning: "VERSION" redefined >> <command-line>:0:0: note: this is the location of the previous definition >> src\jep\pyjmethod.c: In function 'pyjmethod_init': >> src\jep\pyjmethod.c:278:8: error: 'methodGetExceptions' undeclared (first >> use in >> this function) >> src\jep\pyjmethod.c:278:8: note: each undeclared identifier is reported >> only onc >> e for each function it appears in >> src\jep\pyjmethod.c:287:5: error: 'exceptions' undeclared (first use in >> this fun >> ction) >> error: command 'gcc' failed with exit status 1 >> >> C:\MinGW\bin>* >> >> Build command used: *python setup.py install build --compiler=mingw32 >> >> *Can you please help me with this, also let me know if i need anything >> else for building JEP.jar (64-bit JRE compatable) & JEP.dll (64-bit) >> >> Thanks, >> Prasanth Narra >> >> On Mon, May 28, 2012 at 4:39 PM, Mike Johnson <mi...@pu...>wrote: >> >>> Hi Prasanth, >>> >>> Make sure you recompile Jep with the 64 bit JDK as your JAVA_HOME, or >>> they can't work together... >>> >>> Thanks, >>> Mike >>> >>> >>> On Mon, May 28, 2012 at 10:12 AM, Prasanth Narra <nar...@gm...> >>> wrote: >>> > Hi, >>> > >>> > When i try running my java class with JRE 1.6 (64 bit) with JEP 2.4, i >>> get >>> > an java.lang.UnsatisfiedLinkError (which says unable to load/find >>> dependent >>> > libraries). >>> > >>> > But everything is fine with 32 bit JRE. But now that i have to upgrade >>> to 64 >>> > bit, i can't use 32- bit JRE. >>> > >>> > -- >>> > Thanks, >>> > Prasanth Narra >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > Live Security Virtual Conference >>> > Exclusive live event will cover all the ways today's security and >>> > threat landscape has changed and how IT managers can respond. >>> Discussions >>> > will include endpoint security, mobile security and the latest in >>> malware >>> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> > _______________________________________________ >>> > Jepp-users mailing list >>> > Jep...@li... >>> > https://lists.sourceforge.net/lists/listinfo/jepp-users >>> > >>> >> >> >> >> -- >> Thanks, >> *Prasanth Narra* >> >> >> > > > -- > Thanks, > *Prasanth Narra* > > > -- Thanks, *Prasanth Narra* |
From: Mike J. <mi...@pu...> - 2012-06-19 07:34:38
|
Hi, You'll need to see the mingw faq: http://www.mingw.org/wiki/FAQ in the section called "How do I create Python extensions?" Run pexports and dlltool to create the files you'll need to link with on both the python dll and java. That should solve your link problem. Mike On Jun 18, 2012, at 11:27 PM, Prasanth Narra wrote: > Hi Mike, > > I've changed src/jep/winconfig.h by commenting the following: > > //#define USE_DEALLOC 1 > //#define USE_MAPPED_EXCEPTIONS 1 > //#define VERSION "2.5" > > & when i try building, i get the following error: > > gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 -DVERSION="3.0. > 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include -Ic:\Python2 > 6\include -Ic:\Python26\PC -c src\jep\python\jep_object.c -o build\temp.win32-2. > 6\Release\src\jep\python\jep_object.o > writing build\temp.win32-2.6\Release\src\jep\jep.def > gcc.exe -mno-cygwin -shared -s build\temp.win32-2.6\Release\src\jep\invocationha > ndler.o build\temp.win32-2.6\Release\src\jep\jep.o build\temp.win32-2.6\Release\ > src\jep\pyembed.o build\temp.win32-2.6\Release\src\jep\pyjarray.o build\temp.win > 32-2.6\Release\src\jep\pyjclass.o build\temp.win32-2.6\Release\src\jep\pyjfield. > o build\temp.win32-2.6\Release\src\jep\pyjmethod.o build\temp.win32-2.6\Release\ > src\jep\pyjobject.o build\temp.win32-2.6\Release\src\jep\util.o build\temp.win32 > -2.6\Release\src\jep\python\jep_object.o build\temp.win32-2.6\Release\src\jep\je > p.def -Lc:\Python26\libs -Lc:\Python26\PCbuild -ljvm -lpython26 -ldl -lpython26 > -lmsvcr90 -o build\lib.win32-2.6\jep.pyd > c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin > d -ljvm > c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin > d -ldl > collect2: ld returned 1 exit status > error: command 'gcc' failed with exit status 1 > > I guess there is some problem with linker. > So is there anything which i'm still missing? > > Thanks, > Prasanth Narra > > On Sat, Jun 9, 2012 at 9:39 AM, Mike Johnson <mi...@pu...> wrote: > Hi, > > I haven't had much luck running Jep recently on Windows due to compiler incompatibilities (difficulty building with the correct MSVCRT). Maybe Mingw will be better. > > It looks like you'll need to change src/jep/winconfig.h. Remove lines 18-25. This file hasn't been updated since the switch to using distutils to build. That should be it. > > Please let me know if you are successful. I'd love to see a good Windows build again, and there has been a lot of interest from others as well. > > Thanks, > Mike > > > On Jun 7, 2012, at 1:07 AM, Prasanth Narra wrote: > >> Hi Mike, >> >> I've downloaded JEP 3.0.0 source. When i try building it with MinGW / JDK 1.6 (64 bit) / Python 2.6, i get the following error. >> >> In file included from src\jep\pyjfield.c:35:0: >> src\jep\/winconfig.h:25:0: warning: "VERSION" redefined >> <command-line>:0:0: note: this is the location of the previous definition >> gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 -DVERSION="3.0. >> 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include -Ic:\Python2 >> 6\include -Ic:\Python26\PC -c src\jep\pyjmethod.c -o build\temp.win32-2.6\Releas >> e\src\jep\pyjmethod.o >> In file included from src\jep\pyjmethod.c:30:0: >> src\jep\/winconfig.h:25:0: warning: "VERSION" redefined >> <command-line>:0:0: note: this is the location of the previous definition >> src\jep\pyjmethod.c: In function 'pyjmethod_init': >> src\jep\pyjmethod.c:278:8: error: 'methodGetExceptions' undeclared (first use in >> this function) >> src\jep\pyjmethod.c:278:8: note: each undeclared identifier is reported only onc >> e for each function it appears in >> src\jep\pyjmethod.c:287:5: error: 'exceptions' undeclared (first use in this fun >> ction) >> error: command 'gcc' failed with exit status 1 >> >> C:\MinGW\bin> >> >> Build command used: python setup.py install build --compiler=mingw32 >> >> Can you please help me with this, also let me know if i need anything else for building JEP.jar (64-bit JRE compatable) & JEP.dll (64-bit) >> >> Thanks, >> Prasanth Narra >> >> On Mon, May 28, 2012 at 4:39 PM, Mike Johnson <mi...@pu...> wrote: >> Hi Prasanth, >> >> Make sure you recompile Jep with the 64 bit JDK as your JAVA_HOME, or >> they can't work together... >> >> Thanks, >> Mike >> >> >> On Mon, May 28, 2012 at 10:12 AM, Prasanth Narra <nar...@gm...> wrote: >> > Hi, >> > >> > When i try running my java class with JRE 1.6 (64 bit) with JEP 2.4, i get >> > an java.lang.UnsatisfiedLinkError (which says unable to load/find dependent >> > libraries). >> > >> > But everything is fine with 32 bit JRE. But now that i have to upgrade to 64 >> > bit, i can't use 32- bit JRE. >> > >> > -- >> > Thanks, >> > Prasanth Narra >> > >> > >> > ------------------------------------------------------------------------------ >> > Live Security Virtual Conference >> > Exclusive live event will cover all the ways today's security and >> > threat landscape has changed and how IT managers can respond. Discussions >> > will include endpoint security, mobile security and the latest in malware >> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > _______________________________________________ >> > Jepp-users mailing list >> > Jep...@li... >> > https://lists.sourceforge.net/lists/listinfo/jepp-users >> > >> >> >> >> -- >> Thanks, >> Prasanth Narra >> > > > > > -- > Thanks, > Prasanth Narra > |
From: Prasanth N. <nar...@gm...> - 2012-06-19 06:27:40
|
Hi Mike, I've changed src/jep/winconfig.h by commenting the following: *//#define USE_DEALLOC 1 //#define USE_MAPPED_EXCEPTIONS 1 //#define VERSION "2.5"* & when i try building, i get the following error: *gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 -DVERSION="3.0. 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include -Ic:\Python2 6\include -Ic:\Python26\PC -c src\jep\python\jep_object.c -o build\temp.win32-2. 6\Release\src\jep\python\jep_object.o writing build\temp.win32-2.6\Release\src\jep\jep.def gcc.exe -mno-cygwin -shared -s build\temp.win32-2.6\Release\src\jep\invocationha ndler.o build\temp.win32-2.6\Release\src\jep\jep.o build\temp.win32-2.6\Release\ src\jep\pyembed.o build\temp.win32-2.6\Release\src\jep\pyjarray.o build\temp.win 32-2.6\Release\src\jep\pyjclass.o build\temp.win32-2.6\Release\src\jep\pyjfield. o build\temp.win32-2.6\Release\src\jep\pyjmethod.o build\temp.win32-2.6\Release\ src\jep\pyjobject.o build\temp.win32-2.6\Release\src\jep\util.o build\temp.win32 -2.6\Release\src\jep\python\jep_object.o build\temp.win32-2.6\Release\src\jep\je p.def -Lc:\Python26\libs -Lc:\Python26\PCbuild -ljvm -lpython26 -ldl -lpython26 -lmsvcr90 -o build\lib.win32-2.6\jep.pyd c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin d -ljvm c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot fin d -ldl collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1* I guess there is some problem with linker. So is there anything which i'm still missing? Thanks, Prasanth Narra On Sat, Jun 9, 2012 at 9:39 AM, Mike Johnson <mi...@pu...> wrote: > Hi, > > I haven't had much luck running Jep recently on Windows due to compiler > incompatibilities (difficulty building with the correct MSVCRT). Maybe > Mingw will be better. > > It looks like you'll need to change src/jep/winconfig.h. Remove lines > 18-25. This file hasn't been updated since the switch to using distutils to > build. That should be it. > > Please let me know if you are successful. I'd love to see a good Windows > build again, and there has been a lot of interest from others as well. > > Thanks, > Mike > > > On Jun 7, 2012, at 1:07 AM, Prasanth Narra wrote: > > Hi Mike, > > I've downloaded JEP 3.0.0 source. When i try building it with MinGW / JDK > 1.6 (64 bit) / Python 2.6, i get the following error. > > *In file included from src\jep\pyjfield.c:35:0: > src\jep\/winconfig.h:25:0: warning: "VERSION" redefined > <command-line>:0:0: note: this is the location of the previous definition > gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 > -DVERSION="3.0. > 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include > -Ic:\Python2 > 6\include -Ic:\Python26\PC -c src\jep\pyjmethod.c -o > build\temp.win32-2.6\Releas > e\src\jep\pyjmethod.o > In file included from src\jep\pyjmethod.c:30:0: > src\jep\/winconfig.h:25:0: warning: "VERSION" redefined > <command-line>:0:0: note: this is the location of the previous definition > src\jep\pyjmethod.c: In function 'pyjmethod_init': > src\jep\pyjmethod.c:278:8: error: 'methodGetExceptions' undeclared (first > use in > this function) > src\jep\pyjmethod.c:278:8: note: each undeclared identifier is reported > only onc > e for each function it appears in > src\jep\pyjmethod.c:287:5: error: 'exceptions' undeclared (first use in > this fun > ction) > error: command 'gcc' failed with exit status 1 > > C:\MinGW\bin>* > > Build command used: *python setup.py install build --compiler=mingw32 > > *Can you please help me with this, also let me know if i need anything > else for building JEP.jar (64-bit JRE compatable) & JEP.dll (64-bit) > > Thanks, > Prasanth Narra > > On Mon, May 28, 2012 at 4:39 PM, Mike Johnson <mi...@pu...>wrote: > >> Hi Prasanth, >> >> Make sure you recompile Jep with the 64 bit JDK as your JAVA_HOME, or >> they can't work together... >> >> Thanks, >> Mike >> >> >> On Mon, May 28, 2012 at 10:12 AM, Prasanth Narra <nar...@gm...> >> wrote: >> > Hi, >> > >> > When i try running my java class with JRE 1.6 (64 bit) with JEP 2.4, i >> get >> > an java.lang.UnsatisfiedLinkError (which says unable to load/find >> dependent >> > libraries). >> > >> > But everything is fine with 32 bit JRE. But now that i have to upgrade >> to 64 >> > bit, i can't use 32- bit JRE. >> > >> > -- >> > Thanks, >> > Prasanth Narra >> > >> > >> > >> ------------------------------------------------------------------------------ >> > Live Security Virtual Conference >> > Exclusive live event will cover all the ways today's security and >> > threat landscape has changed and how IT managers can respond. >> Discussions >> > will include endpoint security, mobile security and the latest in >> malware >> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > _______________________________________________ >> > Jepp-users mailing list >> > Jep...@li... >> > https://lists.sourceforge.net/lists/listinfo/jepp-users >> > >> > > > > -- > Thanks, > *Prasanth Narra* > > > -- Thanks, *Prasanth Narra* |
From: Mike J. <mi...@pu...> - 2012-06-09 04:39:23
|
Hi, I haven't had much luck running Jep recently on Windows due to compiler incompatibilities (difficulty building with the correct MSVCRT). Maybe Mingw will be better. It looks like you'll need to change src/jep/winconfig.h. Remove lines 18-25. This file hasn't been updated since the switch to using distutils to build. That should be it. Please let me know if you are successful. I'd love to see a good Windows build again, and there has been a lot of interest from others as well. Thanks, Mike On Jun 7, 2012, at 1:07 AM, Prasanth Narra wrote: > Hi Mike, > > I've downloaded JEP 3.0.0 source. When i try building it with MinGW / JDK 1.6 (64 bit) / Python 2.6, i get the following error. > > In file included from src\jep\pyjfield.c:35:0: > src\jep\/winconfig.h:25:0: warning: "VERSION" redefined > <command-line>:0:0: note: this is the location of the previous definition > gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 -DVERSION="3.0. > 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include -Ic:\Python2 > 6\include -Ic:\Python26\PC -c src\jep\pyjmethod.c -o build\temp.win32-2.6\Releas > e\src\jep\pyjmethod.o > In file included from src\jep\pyjmethod.c:30:0: > src\jep\/winconfig.h:25:0: warning: "VERSION" redefined > <command-line>:0:0: note: this is the location of the previous definition > src\jep\pyjmethod.c: In function 'pyjmethod_init': > src\jep\pyjmethod.c:278:8: error: 'methodGetExceptions' undeclared (first use in > this function) > src\jep\pyjmethod.c:278:8: note: each undeclared identifier is reported only onc > e for each function it appears in > src\jep\pyjmethod.c:287:5: error: 'exceptions' undeclared (first use in this fun > ction) > error: command 'gcc' failed with exit status 1 > > C:\MinGW\bin> > > Build command used: python setup.py install build --compiler=mingw32 > > Can you please help me with this, also let me know if i need anything else for building JEP.jar (64-bit JRE compatable) & JEP.dll (64-bit) > > Thanks, > Prasanth Narra > > On Mon, May 28, 2012 at 4:39 PM, Mike Johnson <mi...@pu...> wrote: > Hi Prasanth, > > Make sure you recompile Jep with the 64 bit JDK as your JAVA_HOME, or > they can't work together... > > Thanks, > Mike > > > On Mon, May 28, 2012 at 10:12 AM, Prasanth Narra <nar...@gm...> wrote: > > Hi, > > > > When i try running my java class with JRE 1.6 (64 bit) with JEP 2.4, i get > > an java.lang.UnsatisfiedLinkError (which says unable to load/find dependent > > libraries). > > > > But everything is fine with 32 bit JRE. But now that i have to upgrade to 64 > > bit, i can't use 32- bit JRE. > > > > -- > > Thanks, > > Prasanth Narra > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Jepp-users mailing list > > Jep...@li... > > https://lists.sourceforge.net/lists/listinfo/jepp-users > > > > > > -- > Thanks, > Prasanth Narra > |
From: Prasanth N. <nar...@gm...> - 2012-06-07 08:07:41
|
Hi Mike, I've downloaded JEP 3.0.0 source. When i try building it with MinGW / JDK 1.6 (64 bit) / Python 2.6, i get the following error. *In file included from src\jep\pyjfield.c:35:0: src\jep\/winconfig.h:25:0: warning: "VERSION" redefined <command-line>:0:0: note: this is the location of the previous definition gcc.exe -mno-cygwin -mdll -O -Wall -DPACKAGE=jep -DUSE_DEALLOC=1 -DVERSION="3.0. 0" -IC:\Progra~1\Java\jdk1.6.0_32\include -Isrc/jep -Ibuild/include -Ic:\Python2 6\include -Ic:\Python26\PC -c src\jep\pyjmethod.c -o build\temp.win32-2.6\Releas e\src\jep\pyjmethod.o In file included from src\jep\pyjmethod.c:30:0: src\jep\/winconfig.h:25:0: warning: "VERSION" redefined <command-line>:0:0: note: this is the location of the previous definition src\jep\pyjmethod.c: In function 'pyjmethod_init': src\jep\pyjmethod.c:278:8: error: 'methodGetExceptions' undeclared (first use in this function) src\jep\pyjmethod.c:278:8: note: each undeclared identifier is reported only onc e for each function it appears in src\jep\pyjmethod.c:287:5: error: 'exceptions' undeclared (first use in this fun ction) error: command 'gcc' failed with exit status 1 C:\MinGW\bin>* Build command used: *python setup.py install build --compiler=mingw32 *Can you please help me with this, also let me know if i need anything else for building JEP.jar (64-bit JRE compatable) & JEP.dll (64-bit) Thanks, Prasanth Narra On Mon, May 28, 2012 at 4:39 PM, Mike Johnson <mi...@pu...> wrote: > Hi Prasanth, > > Make sure you recompile Jep with the 64 bit JDK as your JAVA_HOME, or > they can't work together... > > Thanks, > Mike > > > On Mon, May 28, 2012 at 10:12 AM, Prasanth Narra <nar...@gm...> > wrote: > > Hi, > > > > When i try running my java class with JRE 1.6 (64 bit) with JEP 2.4, i > get > > an java.lang.UnsatisfiedLinkError (which says unable to load/find > dependent > > libraries). > > > > But everything is fine with 32 bit JRE. But now that i have to upgrade > to 64 > > bit, i can't use 32- bit JRE. > > > > -- > > Thanks, > > Prasanth Narra > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Jepp-users mailing list > > Jep...@li... > > https://lists.sourceforge.net/lists/listinfo/jepp-users > > > -- Thanks, *Prasanth Narra* |
From: Mike J. <mi...@pu...> - 2012-05-28 11:35:07
|
Hi Prasanth, Make sure you recompile Jep with the 64 bit JDK as your JAVA_HOME, or they can't work together... Thanks, Mike On Mon, May 28, 2012 at 10:12 AM, Prasanth Narra <nar...@gm...> wrote: > Hi, > > When i try running my java class with JRE 1.6 (64 bit) with JEP 2.4, i get > an java.lang.UnsatisfiedLinkError (which says unable to load/find dependent > libraries). > > But everything is fine with 32 bit JRE. But now that i have to upgrade to 64 > bit, i can't use 32- bit JRE. > > -- > Thanks, > Prasanth Narra > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Jepp-users mailing list > Jep...@li... > https://lists.sourceforge.net/lists/listinfo/jepp-users > |
From: Prasanth N. <nar...@gm...> - 2012-05-28 08:12:21
|
Hi, When i try running my java class with JRE 1.6 (64 bit) with JEP 2.4, i get an java.lang.UnsatisfiedLinkError (which says unable to load/find dependent libraries). But everything is fine with 32 bit JRE. But now that i have to upgrade to 64 bit, i can't use 32- bit JRE. -- Thanks, *Prasanth Narra* |
From: Mike J. <mi...@pu...> - 2012-03-06 07:18:00
|
Hi, I think you need to call ``boolArray.commit()`` in Python. It's a performance enhancement in JNI… Thanks, Mike On Feb 28, 2012, at 5:18 AM, Marcin Zajączkowski wrote: > Hello > > Playing with Jepp I've got following situation. > > Java: > boolean boolArray[] = new boolean[] {false, true, false}; > jep.set("boolArray", boolArray); > > jep.runScript(SCRIPT_PATH + SCRIPT2); > > assertThat(boolArray[0]).isEqualTo(true); > > Python: > boolArray[0] = 1 > #following line is required to see changes in Java code > #print Arrays.toString(boolArray) > > I wonder is it normal? > > Regards > Marcin > > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Jepp-users mailing list > Jep...@li... > https://lists.sourceforge.net/lists/listinfo/jepp-users |
From: Marcin Z. <ms...@wp...> - 2012-02-28 13:19:07
|
Hello Playing with Jepp I've got following situation. Java: boolean boolArray[] = new boolean[] {false, true, false}; jep.set("boolArray", boolArray); jep.runScript(SCRIPT_PATH + SCRIPT2); assertThat(boolArray[0]).isEqualTo(true); Python: boolArray[0] = 1 #following line is required to see changes in Java code #print Arrays.toString(boolArray) I wonder is it normal? Regards Marcin |