Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #92908 > unrolled thread

Working with jython in openSUSE 13.2

Started byCecil Westerhof <Cecil@decebal.nl>
First post2015-06-20 12:58 +0200
Last post2015-06-20 16:41 +0200
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Working with jython in openSUSE 13.2 Cecil Westerhof <Cecil@decebal.nl> - 2015-06-20 12:58 +0200
    Re: Working with jython in openSUSE 13.2 Laura Creighton <lac@openend.se> - 2015-06-20 15:01 +0200
      Re: Working with jython in openSUSE 13.2 Cecil Westerhof <Cecil@decebal.nl> - 2015-06-20 16:41 +0200

#92908 — Working with jython in openSUSE 13.2

FromCecil Westerhof <Cecil@decebal.nl>
Date2015-06-20 12:58 +0200
SubjectWorking with jython in openSUSE 13.2
Message-ID<87lhfer6hy.fsf@Equus.decebal.nl>
I installed Jython in openSUSE 13.2. But when calling jython I get:
    /usr/bin/build-classpath: error: JAVA_LIBDIR must be set
    Error: Could not find or load main class org.python.util.jython

Does anyone have an idea what I need to do to get it working?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

[toc] | [next] | [standalone]


#92909

FromLaura Creighton <lac@openend.se>
Date2015-06-20 15:01 +0200
Message-ID<mailman.658.1434805301.13271.python-list@python.org>
In reply to#92908
In a message of Sat, 20 Jun 2015 12:58:33 +0200, Cecil Westerhof writes:
>I installed Jython in openSUSE 13.2. But when calling jython I get:
>    /usr/bin/build-classpath: error: JAVA_LIBDIR must be set
>    Error: Could not find or load main class org.python.util.jython
>
>Does anyone have an idea what I need to do to get it working?

Go look for something called java.conf

Mine is in /etc/java

It looks like this:

# System-wide Java configuration file -*- sh -*-
#
# JPackage Project <http://www.jpackage.org/>
# Location of jar files on the system
JAVA_LIBDIR=/usr/share/java
# Location of arch-specific jar files on the system
JNI_LIBDIR=/usr/lib/java
# List of known java homes (used for autodetection if none is provided)
JAVA_HOME_LIST=$JAVA_LIBDIR-utils/java_home.list
# Root of all JVM installations
JVM_ROOT=/usr/lib/jvm
# Default jvm
JAVA_HOME=$JVM_ROOT/java
# Options to pass to the java interpreter
JAVACMD_OPTS=

-------

This is the version for Suse, which I think is the one you ought
to have.  But I am not sure if this is where you ought to find it.

Laura

[toc] | [prev] | [next] | [standalone]


#92912

FromCecil Westerhof <Cecil@decebal.nl>
Date2015-06-20 16:41 +0200
Message-ID<87egl6qw6h.fsf@Equus.decebal.nl>
In reply to#92909
On Saturday 20 Jun 2015 15:01 CEST, Laura Creighton wrote:

> In a message of Sat, 20 Jun 2015 12:58:33 +0200, Cecil Westerhof
> writes:
>> I installed Jython in openSUSE 13.2. But when calling jython I get:
>> /usr/bin/build-classpath: error: JAVA_LIBDIR must be set
>> Error: Could not find or load main class org.python.util.jython
>>
>> Does anyone have an idea what I need to do to get it working?
>
> Go look for something called java.conf
>
> Mine is in /etc/java
>
> It looks like this:
>
> # System-wide Java configuration file -*- sh -*- JPackage Project
> #<http://www.jpackage.org/> Location of jar files on the system
> #JAVA_LIBDIR=/usr/share/java Location of arch-specific jar files on
> #the system JNI_LIBDIR=/usr/lib/java List of known java homes (used
> #for autodetection if none is provided)
> #JAVA_HOME_LIST=$JAVA_LIBDIR-utils/java_home.list Root of all JVM
> #installations JVM_ROOT=/usr/lib/jvm Default jvm
> #JAVA_HOME=$JVM_ROOT/java Options to pass to the java interpreter
> #JAVACMD_OPTS=
>
> -------
>
> This is the version for Suse, which I think is the one you ought
> to have.  But I am not sure if this is where you ought to find it.

Thanks. Some things where there, but commented out. And some things
where not there. I changed it and now I can run jython, but it is
version 2.2.1. So probably it is better to download and install the
latest version.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web