Ticket #14306 (new defect)
jython won't build because it wants Java 1.1
| Reported by: | pydave@… | Owned by: | singingwolfboy@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.6.0 |
| Keywords: | Cc: | ||
| Port: | jython |
Description
I tried to install Jython and it fails because it wants Java 1.1, but I use Java 1.5
Jython has only the universal variant, is there a way for me to tell port to build with Java 1.5?
$ which java /usr/bin/java $ which javac /usr/bin/javac $ java -version java version "1.5.0_13" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241) Java HotSpot(TM) Client VM (build 1.5.0_13-121, mixed mode, sharing) $ javac -version javac 1.5.0_13 ...
$ sudo port install jython
...
---> Building jython
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_jython/work/jython-2.1" && ant dist || ant jar " returned error 1
Command output:
init:
[echo] --- Build environment for jython ---
[echo] --- Flags (Note: If the {property name} is displayed,
[echo] --- then the component is not present)
[echo] --- Optional Libraries ---
[echo] java2 coll = true
[echo] servlet = ${servlet.present}
[echo] readline = ${readline.present}
[echo] oracle = ${oracle.present}
[echo] informix = ${informix.present}
[echo] mysql = ${mysql.present}
[echo] postgresql = ${postgresql.present}
[echo] jndi = true
[echo] jdbc = true
[echo] jdbc3.0 = true
prepare:
parser:
compile:
[javac] Compiling 302 source files to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_jython/work/jython-2.1/build
[javac] javac: target release 1.1 conflicts with default source release 1.5
BUILD FAILED
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_jython/work/jython-2.1/build.xml:138: Compile failed; see the compiler error output for details.
I initially tried this in MacPorts 1.520, but then ran selfupdate to 1.600 and had the same result.
I have: iBook G4 1.33 GHz - OSX 10.4.11
Change History
comment:1 in reply to: ↑ description Changed 5 years ago by pydave@…
Note: See
TracTickets for help on using
tickets.


Managed to get Jython running. There are some problems with the packages initial set up (the jython script is wrong). Otherwise you just have to change the jdk to one you actually have. (Although, installing 1.1 might have worked. Regardless, the lowest version I have is 1.3, so nuts to that.)
What I did:
But, Jython can't cache its packages.
So you have to change the cache dir:
Now you should be able to run jython programs like this:
So:
Thanks,
-David