ok, now that we have real file names here: given the
c:\users\compski\workspace\test\src\test, after you do
from test import greeter, it will try to find the
greeter.class in the each entry of the
pythonpath; that is it tries to find
c:\users\compski\workspace\test\src\test\greeter.java\test\greeter.class, neither of which exists.
instead, in eclipse if i remember correctly you can add a project to the
pythonpath, this could be preferred for testing in the ide - thus just add your
test project as such in the pythonpath. another option is to add the directory from which
test\greeter.class is found; that is in eclipse this should be
c:\users\compski\workspace\test\bin - that is by default the java-natured projects compile files from
src to the (hidden)
bin folder within the project.
finally if the error is about greeterclass not found in
test, do notice that
test is a builtin python module name (though iirc jython does not have a module by that name).
- PyDev: ImportError when trying to call user-defined Java Method using Jython in Eclipse
- Can't hit breakpoints for user generated actions when debugging jython code with PyDev in Eclipse
- Java class methods do not auto complete in Jython using Eclipse Pydev
- Compilation error when trying to build a maven project with JAVA custom annotation which has ENUM variables defined in it
- Syntax error in Eclipse when using static getNames method of JSONObject Java class
- It errors when specifying the user defined java library into RED robot framework eclipse editor
- Why can my Java project call my DLLs successfully in Eclipse when I place them in JAVA_HOME\jre6\bin but failed in using java.library.path?
- when I am trying to send a GET request in java servlet using Tomcat server I am getting error instantiating servlet class
- Getting error in Java Code when trying to load the Firefox using selenium Web Driver
- Using setDate for User defined class.. Java
- Error message failure and crash when using pydev embedded jython interpreter
- ImportError when trying to run a python unittest with pydev
- Getting "CHECKOUT can only be performed on a version resource" when trying to commit using Eclipse subversive plugin
- Java "constant string too long" compile error. Only happens using Ant, not when using Eclipse
- ClassNotFoundException when using User Libraries in Eclipse build path
- How to debug Java code when using ANT script in Eclipse
- Simple program to call R from Java using Eclipse and Rserve
- How to get Eclipse to jump to failed JUnit test when test is not a Java method
- Undefined variable from import when using wxPython in pydev
- How do I configure Eclipse to launch a browser when Run or Debug is selected using Pydev plugin
- Why does eclipse automatically add a java super() method in a constructor when I use the editors code generator?
- Maven: Could Not find Artifact when trying to include a project in another one using dependencies
- Failed to execute maven-compiler-plugin:3.6.1:testCompile when using java 9
- Is it possible to use sysout without class and main method in Eclipse IDE using Java 9?
- How to find Junit tests that are using a given Java method directly or indirectly
- Undefined variable from import when using protocol buffers in PyDev
- Location of Java dump heap file when using jconsole?
- Is it possible to use Groovy to override a method in a Java class, when that Java class is not instantiated in my code?
- Failed to connect to remote VM. Connection refused. when trying to debug remote java application in Flash Builder 4.7
More Query from same tag
- How to make the SearchList work by String in Android?
- Do I have to install Android SDK in order to develop Android apps?
- Eclipse Maven build failing on including xpp3 in com.google.android
- What does the support of JRebel for an app (non-IDE) mean?
- Android unable to start activity, error inflating class?
- Eclipse built & clean always lose R-file
- Eclipse not stopping at java breakpoints during remote debug
- Create an Eclipse plugin with customizable key bindings
- How to fix blurry imageView in Android app?
- Annoying error dialog box when eclipse output-console scrolls. What's causing it?
- Delete untracked files with eGit (Eclipse)
- Where is Java 8 hiding?
- Simple AngularJS $http.get doesn't work with jsp page
- eclipse package with dot not representing directory structure
- How to get the xml line number of an object parsed using eclipse emf modeling
- Type-hinting named array keys in Eclipse for PHP like $_SERVER?
- Java Eclipse make content-assist transparent
- Maven Eclipse plugin and classpath issues in Eclipse
- Can't find the recorded file after I've stopped recording
- Define window title when using TitleAreaDialog
- Eclipse - No JVM was found after reformat
- Lightweight M2M server deployment?
- Eclipse Android Mac 10.4 problem, dyld: Symbol not found: _open$UNIX2003
- AppCompact V7 being added
- Eclipse Code Assist Not Work In Ubuntu 12.04
- Lack of Content assist in Titanium
- Eclipse we-app Error using google cloud
- Export iOS IPA file with eclipse (libGDX/RoboVM)
- Boolean value is set to true from the start
- How to make SWT Ui responsive