You are not logged in.

#1 2015-07-19 19:07:27

anark10n
Member
Registered: 2012-10-13
Posts: 212

javac command not found with jdk + jre installed.

As the title of the thread says, i'm trying to build pyjnius from source, but it keeps returning the error

javac jnius/src/org/jnius/NativeInvocationHandler.java
make: javac: Command not found
Makefile:4: recipe for target 'build_ext' failed
make: *** [build_ext] Error 127

When I change the javac to command to java, it returns the error:

java jnius/src/org/jnius/NativeInvocationHandler.java
Error: Could not find or load main class jnius.src.org.jnius.NativeInvocationHandler.java
Makefile:4: recipe for target 'build_ext' failed
make: *** [build_ext] Error 1

Reinstalling doesn't help. Using Openjre 8 and Openjdk 8.

Offline

#2 2015-07-19 20:21:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: javac command not found with jdk + jre installed.

What's the output of

uname -a
file /usr/bin/javac
pacman -Qo /usr/bin/javac

Have you tried reloging / rebooting after installing java?

Offline

#3 2015-07-20 01:19:24

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: javac command not found with jdk + jre installed.

Have you set your environment properly to be able to use the JDK? as detailed in https://wiki.archlinux.org/index.php/Ja … etween_JVM ? This might be your problem

Offline

Board footer

Powered by FluxBB