Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 3.9 jrun CLASSPATH #247

Closed
bcomisky opened this issue Aug 23, 2017 · 3 comments
Closed

version 3.9 jrun CLASSPATH #247

bcomisky opened this issue Aug 23, 2017 · 3 comments

Comments

@bcomisky
Copy link
Contributor

After cloning verion 3.9 and building with ./gradlew jar I tried:

$ ./jrun org.jenetics.example.OnesCounting
Error: Could not find or load main class org.jenetics.example.OnesCounting

I had to modify the CLASSPATH in jrun slightly to get it working:

$ git diff
diff --git a/jrun b/jrun
index 22b6cdb..9fd30fa 100755
--- a/jrun
+++ b/jrun
@@ -14,7 +14,7 @@ MODULES=(
 CLASSPATH="."
 for module in ${MODULES[@]}
 do
-       CLASSPATH="${CLASSPATH}:${module}/build/classes/main"
+       CLASSPATH="${CLASSPATH}:${module}/build/classes/java/main"
        CLASSPATH="${CLASSPATH}:${module}/build/resources/main"
        CLASSPATH="${CLASSPATH}:${module}/build/classes/test"
        CLASSPATH="${CLASSPATH}:${module}/build/resources/test"
@jenetics
Copy link
Owner

@bcomisky if you create a pull-request with the fix, you will be credited for it.

@jenetics jenetics added this to the v4.0.0 milestone Aug 23, 2017
@bcomisky
Copy link
Contributor Author

ok, created pull request.

@jenetics
Copy link
Owner

Fix has been merged into r4.0.0 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants