OS: Ubuntu 18.04.4 LTS
java -version
gives:
openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1)
OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1, mixed mode, sharing)
A program i want to run, it needs rxtx-2.2pre2 version (an earlier librxtx-java version), so i downloaded the rxtx 2.2pre2 (prerelease) from http://rxtx.qbang.org/wiki/index.php/Download and downloaded it in my downloads folder, extracted it there and followed the instructions from http://rxtx.qbang.org/wiki/index.php/Installation_on_Linux , but when i use the command sudo sh ./configure
, at some point it gives me the error:
./configure: line 21838: /usr/java/jre1.8.0_241/bin/javac: No such file or directory /usr/java/jre1.8.0_241 configure: WARNING: using JAVA_HOME environmental variable adjusted java.home is /usr/java/jre1.8.0_241 checking os.name Error: Could not find or load main class conftest
checking os.arch Error: Could not find or load main class conftest
checking java.vendor Error: Could not find or load main class conftest
checking java.version Error: Could not find or load main class conftest
checking os.version 5.3.0-42-generic ./configure: line 21808: cd: /usr/java/jre1.8.0_241/include: No such file or directory ./configure: line 21809: cd: /usr/java/jre1.8.0_241/include: No such file or directory
WARNING: configure is having a hard time determining which directory contains the file jni_md.h. Edit Makefile and fix the variable JAVANATINC to point to the correct directory.
The following options are available: find: '/usr/java/jre1.8.0_241/include': No such file or directory
If there are more than one option available the first was selected.
configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands
soldy@soldy:~/Downloads/rxtx-2.2pre2$
It says /usr/java/jre1.8.0_241/bin/javac: No such file or directory. Indeed, there is no file named "javac" in this directory. the files in this directory are:
ControlPanel javaws jjs orbd policytool rmiregistry tnameserv
java jcontrol keytool pack200 rmid servertool unpack200
Shall i change the code to look for one of the files that really exist in there? and if yes, which one?
javac