[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-distro-pkg-dev
Subject:    configure: error: "A rhino jar was not found in /usr/share/java as either rhino.jar or
From:       YuGiOhJCJ Mailing-List <yugiohjcj-mailinglist () laposte ! net>
Date:       2016-04-28 11:52:26
Message-ID: 20160428135226.d4d8aa3d9edbb609b19cb539 () laposte ! net
[Download RAW message or body]

Hello,

I have problem building IcedTea 2.6.4 on Slackware 14.1 with the gcj 5.3.0 and ecj \
                4.9:
---
$ ./configure --with-jdk-home=/usr/lib/jvm
checking for a BSD-compatible install... /bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... yes
checking which branch and release of IcedTea is being built... branch 2.6, release \
2.6.4 for OpenJDK 1.7.0 checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking for gmake... /usr/bin/gmake
checking for gzip... /bin/gzip
checking for ant... /home/yugiohjcj/documents/downloads/software/apache-ant-1.9.4/bin/ant
 checking for gfind... no
checking for find... /usr/bin/find
checking for gpatch... no
checking for patch... /usr/bin/patch
checking for gtar... no
checking for tar... /bin/tar
checking for chmod... /bin/chmod
checking for gsha256sum... no
checking for sha256sum... /bin/sha256sum
checking for wget... /usr/bin/wget
checking for zip... /usr/bin/zip
checking for unzip... /usr/bin/unzip
checking for cpio... /bin/cpio
checking for file... /usr/bin/file
checking for readlink... /bin/readlink
checking for fastjar... /usr/bin/fastjar
checking for gsed... no
checking for sed... /bin/sed
checking for ldd... ldd
checking for gawk... /bin/gawk
checking for hg... /usr/bin/hg
checking for an OpenJDK source directory... /tmp/build/openjdk/icedtea-2.6.4/openjdk
checking for IcedTea Mercurial revision ID... none
checking for JDK Mercurial revision ID... none
checking for HotSpot Mercurial revision ID... none
checking for lsb_release... no
checking whether to use CACAO as VM... no
checking whether to use JamVM as VM... no
checking whether to use the Shark JIT... no
checking if a native HotSpot port is available for this architecture... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether to use the zero-assembler port... no
checking whether byte ordering is bigendian... no
checking which HotSpot build to use... default
checking for linux32... /usr/bin/linux32
checking version of GCC... 5.3.0 (major version 5, minor version 3)
checking for getconf... /usr/bin/getconf
checking the number of online processors... 2
checking if cp supports --reflink... yes
checking if we can hard link rather than copy from \
/tmp/build/openjdk/icedtea-2.6.4... yes checking whether to disable the execution of \
the JTReg tests... no checking whether to disable the execution of the HotSpot JTReg \
tests... no checking whether to disable the execution of the langtools JTReg tests... \
no checking whether to disable the execution of the JDK JTReg tests... no
checking for system library directory... 
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether to enable the PKCS11 crypto provider using NSS... disabled by \
default (edit java.security to enable) checking for NSS... yes
checking whether to enable the Sun elliptic curve crypto provider... no
checking whether to build native code with debugging information... yes
checking whether to build Java bytecode with debugging information... yes
checking where fonts are stored... /usr/share/fonts
checking if /usr/share/fonts is a valid directory... yes
checking for xvfb-run... no
checking whether to build documentation... yes
checking for distribution package version... none
checking build identification... Custom build (Fri Apr 15 17:47:55 CEST 2016)
checking how many parallel build jobs to execute... 2
checking whether to build a bootstrap version first... yes
checking whether to download tarballs... yes
checking for a JDK home directory... /usr/lib/jvm
checking if a java binary was specified... no
checking if /usr/lib/jvm/bin/java is a valid executable file... yes
checking for an ecj JAR file... /usr/share/java/ecj.jar
checking if a javac binary was specified... no
checking if /usr/lib/jvm/bin/javac is a valid executable file... yes
checking if an ecj binary was specified... no
checking if /usr/bin/ecj is a valid executable file... yes
checking whether to compile ecj natively... no
checking if we are using ecj as javac... yes
checking if a javah executable is specified... no
checking if /usr/lib/jvm/bin/javah is a valid executable file... yes
checking if a jar executable is specified... no
checking if /usr/lib/jvm/bin/jar is a valid executable file... yes
checking whether jar supports @<file> argument... yes
checking whether jar supports stdin file arguments... yes
checking whether jar supports -J options at the end... yes
checking if an rmic executable is specified... no
checking if /usr/lib/jvm/bin/rmic is a valid executable file... yes
checking if a native2ascii binary was specified... no
checking if /usr/lib/jvm/bin/native2ascii is a valid executable file... yes
checking if we are using CACAO as the build VM... no
checking for xsltproc... /usr/bin/xsltproc
checking if the VM and compiler work together... yes
checking if /usr/lib/jvm/bin/javah exhibits Classpath bug 39408... no
checking if /usr/lib/jvm/bin/javah exhibits Classpath bug 40188... no
checking if /usr/lib/jvm/bin/javah supports -X options... no
checking if /usr/lib/jvm/bin/javah exhibits Classpath bug 45526... no
checking if java.io.PrintStream is missing the 1.5 constructors (PR40616)... no
checking for a tools.jar... not specified
configure: Using /usr/lib/jvm/lib/tools.jar for tools.jar
checking if java.util.Scanner is missing... no
checking if java.util.Scanner exhibits Classpath bug 40630... no
checking if javax.annotation.Resource is missing... yes
checking if javax.xml.stream.events.Attribute.getDTDType() wrongly returns a QName... \
no checking if javax.management.remote.JMXServiceURL is missing... yes
checking if javax.management.modelmbean.ModelMBeanInfo is missing... yes
checking if java.util.regex.Matcher.quoteReplacement is missing... no
checking if javax.swing.plaf.basic.BasicDirectoryModel.addPropertyChangeListener is \
missing... yes checking if javax.net.ssl.SSLContext.getDefaultSSLParameters is \
missing... yes checking if javax.net.ssl.SSLEngine.setSSLParameters is missing... yes
checking if javax.rmi.ssl.SslRMIServerSocketFactory(javax.net.ssl.SSLContext.class,String[].class,String[].class,Boolean.TYPE) \
is missing... yes checking if com.sun.mirror.type.TypeMirror is missing... yes
checking if com.sun.net.httpserver.Headers is missing... yes
checking if java.text.SimpleDateFormat exhibits Classpath bug 64174... yes
checking whether to enable Java compiler warnings... no
checking if javac lacks support for the diamond operator... no
checking if javac lacks support for underscored literals... no
checking if the VM supports 1.7 bytecode... yes
checking whether to disable the use of bootstrap tools for bootstrapping... no
checking if the VM supports -Xbootclasspath... no
checking whether to run the HotSpot Queens test... yes
checking whether to include Javascript support via Rhino... not found
configure: error: "A rhino jar was not found in /usr/share/java as either rhino.jar \
or js.jar."

In the "config.log" file I can see:
$ cat config.log
[...]
configure:11216: checking if java.util.Scanner is missing
Class found: class java.util.Scanner
configure:11252: result: no
configure:11268: checking if java.util.Scanner exhibits Classpath bug 40630
configure:11308: result: no
configure:11323: checking if javax.annotation.Resource is missing
----------
1. ERROR in /tmp/build/openjdk/icedtea-2.6.4/tmp.13153/Test.java (at line 6)
	System.err.println("Class found: " + javax.annotation.Resource.class);
	                                     ^^^^^^^^^^^^^^^^
javax.annotation cannot be resolved to a type
----------
1 problem (1 error)configure:11359: result: yes
configure:11375: checking if javax.xml.stream.events.Attribute.getDTDType() wrongly \
returns a QName configure:11450: result: no
configure:11464: checking if javax.management.remote.JMXServiceURL is missing
----------
1. ERROR in /tmp/build/openjdk/icedtea-2.6.4/tmp.13153/Test.java (at line 6)
	System.err.println("Class found: " + javax.management.remote.JMXServiceURL.class);
	                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
javax.management.remote.JMXServiceURL cannot be resolved to a type
----------
1 problem (1 error)configure:11500: result: yes
configure:11517: checking if javax.management.modelmbean.ModelMBeanInfo is missing
----------
1. ERROR in /tmp/build/openjdk/icedtea-2.6.4/tmp.13153/Test.java (at line 6)
	System.err.println("Class found: " + \
javax.management.modelmbean.ModelMBeanInfo.class);  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
javax.management.modelmbean cannot be resolved to a type
----------
1 problem (1 error)configure:11553: result: yes
configure:11569: checking if java.util.regex.Matcher.quoteReplacement is missing
Method found: public static java.lang.String \
java.util.regex.Matcher.quoteReplacement(java.lang.String) configure:11619: result: \
no configure:11635: checking if \
                javax.swing.plaf.basic.BasicDirectoryModel.addPropertyChangeListener \
                is missing
----------
1. ERROR in /tmp/build/openjdk/icedtea-2.6.4/tmp.13153/Test.java (at line 22)
	javax.swing.plaf.basic.BasicDirectoryModel model = new \
javax.swing.plaf.basic.BasicDirectoryModel(new javax.swing.JFileChooser()); \
                model.addPropertyChangeListener(model)
	                                                                                     \
^^^^^^^^^^^^^^^^^^^^^^^^^ The method addPropertyChangeListener(BasicDirectoryModel) \
                is undefined for the type BasicDirectoryModel
----------
1 problem (1 error)configure:11685: result: yes
configure:11701: checking if javax.net.ssl.SSLContext.getDefaultSSLParameters is \
                missing
----------
1. ERROR in /tmp/build/openjdk/icedtea-2.6.4/tmp.13153/Test.java (at line 22)
	try { javax.net.ssl.SSLContext.getDefault().getDefaultSSLParameters(); } catch \
(Exception e) {}  ^^^^^^^^^^
The method getDefault() is undefined for the type SSLContext
----------
1 problem (1 error)configure:11751: result: yes
configure:11767: checking if javax.net.ssl.SSLEngine.setSSLParameters is missing
----------
1. ERROR in /tmp/build/openjdk/icedtea-2.6.4/tmp.13153/Test.java (at line 11)
	Method m = cl.getDeclaredMethod("setSSLParameters", \
                javax.net.ssl.SSLParameters.class);
	                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
javax.net.ssl.SSLParameters cannot be resolved to a type
----------
2. ERROR in /tmp/build/openjdk/icedtea-2.6.4/tmp.13153/Test.java (at line 22)
	try { javax.net.ssl.SSLContext.getDefault().createSSLEngine().setSSLParameters(new \
javax.net.ssl.SSLParameters()); }  ^^^^^^^^^^
The method getDefault() is undefined for the type SSLContext
----------
3. ERROR in /tmp/build/openjdk/icedtea-2.6.4/tmp.13153/Test.java (at line 22)
	try { javax.net.ssl.SSLContext.getDefault().createSSLEngine().setSSLParameters(new \
                javax.net.ssl.SSLParameters()); }
	                                                                                   \
^^^^^^^^^^^^^^^^^^^^^^^^^^^ javax.net.ssl.SSLParameters cannot be resolved to a type
----------
3 problems (3 errors)configure:11818: result: yes
configure:11834: checking if \
javax.rmi.ssl.SslRMIServerSocketFactory(javax.net.ssl.SSLContext.class,String[].class,String[].class,Boolean.TYPE) \
                is missing
----------
1. ERROR in /tmp/build/openjdk/icedtea-2.6.4/tmp.13153/Test.java (at line 24)
	super(null,null,null,true
);
	^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The constructor SslRMIServerSocketFactory(null, null, null, boolean) is undefined
----------
1 problem (1 error)configure:11888: result: yes
configure:11906: checking if com.sun.mirror.type.TypeMirror is missing
----------
1. ERROR in /tmp/build/openjdk/icedtea-2.6.4/tmp.13153/Test.java (at line 6)
	System.err.println("Class found: " + com.sun.mirror.type.TypeMirror.class);
	                                     ^^^^^^^^^^^^^^
com.sun.mirror cannot be resolved to a type
----------
1 problem (1 error)configure:11942: result: yes
configure:11960: checking if com.sun.net.httpserver.Headers is missing
----------
1. ERROR in /tmp/build/openjdk/icedtea-2.6.4/tmp.13153/Test.java (at line 6)
	System.err.println("Class found: " + com.sun.net.httpserver.Headers.class);
	                                     ^^^^^^^^^^^
com.sun.net cannot be resolved to a type
----------
1 problem (1 error)configure:11996: result: yes
configure:12013: checking if java.text.SimpleDateFormat exhibits Classpath bug 64174
----------
1. WARNING in /tmp/build/openjdk/icedtea-2.6.4/tmp.13153/Test.java (at line 4)
	import java.util.Calendar;
	       ^^^^^^^^^^^^^^^^^^
The import java.util.Calendar is never used
----------
1 problem (1 warning)Exception in thread "main" java.text.ParseException: invalid \
Date syntax in "2014-12-31-22-00-00"  at java.text.DateFormat.parse(DateFormat.java)
   at Test.main(Test.java:18)
configure:12059: result: yes
configure:12072: checking whether to enable Java compiler warnings
configure:12086: result: no
configure:12100: checking if javac lacks support for the diamond operator
Annotation processing got disabled, since it requires a 1.6 compliant JVM
----------
1. WARNING in /tmp/build/openjdk/icedtea-2.6.4/tmp.13153/Test.java (at line 9)
	Map<String,String> m = new HashMap<>();
	                   ^
The value of the local variable m is not used
----------
1 problem (1 warning)configure:12133: result: no
configure:12146: checking if javac lacks support for underscored literals
Annotation processing got disabled, since it requires a 1.6 compliant JVM
13153 is below Integer.MAX_VALUE
configure:12185: result: no
configure:12197: checking if the VM supports 1.7 bytecode
Annotation processing got disabled, since it requires a 1.6 compliant JVM
configure:12227: result: yes
configure:12243: checking whether to disable the use of bootstrap tools for \
bootstrapping configure:12267: result: no
configure:12280: checking if the VM supports -Xbootclasspath
Exception in thread "main" java.lang.NoClassDefFoundError: Test
   at gnu.java.lang.MainThread.run(MainThread.java:100)
Caused by: java.lang.ClassNotFoundException: Test not found in \
gnu.gcj.runtime.SystemClassLoader{urls=[file:./], \
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}  at \
java.net.URLClassLoader.findClass(URLClassLoader.java)  at \
gnu.gcj.runtime.SystemClassLoader.findClass(natSystemClassLoader.cc:27)  at \
java.lang.ClassLoader.loadClass(ClassLoader.java)  at \
java.lang.ClassLoader.loadClass(ClassLoader.java:387)  at \
gnu.java.lang.MainThread.run(MainThread.java) configure:12317: result: no
configure:12329: checking whether to run the HotSpot Queens test
configure:12349: result: yes
configure:12362: checking whether to include Javascript support via Rhino
configure:12401: result: not found
configure:12403: error: "A rhino jar was not found in /usr/share/java as either \
rhino.jar or js.jar." [...]
---

It seems that some packages/classes are missing in my JDK.

Any idea why?

Thank you.
Best regards.

That's how I built gcj 5.3.0:
$ ../configure --prefix=/usr --enable-languages=c,c++,java --enable-java-home
$ make

That's how I built ecj 4.9:
$ gcj -o ecj ../ecj.jar --main=org.eclipse.jdt.internal.compiler.batch.Main


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic