It's the wrong approach (the default environment is handled by "archlinux-java").
archlinux-java is a tool to set a default Java, exactly right! And it's usable only in interactive shells or in environments where one wants one particular version of Java to run all applications. conf.d are usable when running system services that want a specific version of Java to be used without hardcoding full paths. Or just for sourcing from these env vars in scripts.
The only "server-only" versions provided by Oracle are for JRE: JDK is needed on build servers. JRE is not enough.
-- Kind regards Damian Nowak -----Original Message----- From: notify@aur.archlinux.org To: aur-requests@archlinux.org Cc: nimetonmaili@gmail.com, spam@nowaker.net Sent: Sat, 18 Oct 2014 7:44 Subject: [PRQ#1152] Deletion Request for oraclejdk7-64 Det [1] filed a deletion request for oraclejdk7-64 [2]: Duplicate of jdk7, and doesn't follow the Java package guidelines (install directory, $JAVA_HOME, naming, etc.). Meant for "servers", but only distinct difference is not having "libxrender" or "hicolor-icon-theme" as dependencies. The only exclusively server version is for JRE (JDK has it all): http://www.oracle.com/technetwork/java/javase/downloads/server-jre8-download... [1] https://aur.archlinux.org/account/Det/ [2] https://aur.archlinux.org/pkgbase/oraclejdk7-64/