-   Slackware (
-   -   nixnote need Java but Java is not installed (Slackware 14.0) (

lchxr 10-04-2012 12:09 PM

nixnote need Java but Java is not installed (Slackware 14.0)
I have download nixnote-1.3-2.i386.rpm and use rpm2txz conversion to install. When I run it from command line, I got an error as follow.

$ nixnote
/usr/share/nixnote/ line 118: java: command not found

The line 118 in said

java -Xmx$NN_XMX -Xms$NN_XMS -XX:NewRatio=$NN_NEW_RATIO $NN_GC_OPT $NN_DEBUG -classpath $NN_CLASSPATH cx.fbn.nevernote.NeverNote --name=$NN_NAME --home=$NN_HOME --sync-only=$NN_SYNCONLY
Is Java installed in Slackware 14.0? I have full installation of Slackware 14.0.

I have no knowledge about Java and don't know how I can check if Java is installed.

Any suggestions are welcome.

kikinovak 10-04-2012 12:41 PM

Java is actually quite easy to install under Slackware 14.0.

Check out the java/ directory in extra/. Download it locally on your machine, with all its content.

Then download the Java tarball from the Oracle site. Choose between JRE and JDK according to your needs. Be sure to download the right package for your architecture (32-bit or 64-bit). Put the downloaded jre-*.tar.gz or jdk-*.tar.gz file in your java/ directory.

Make sure java.SlackBuild is executable and run it as root:


# ./java.SlackBuild
The resulting jre-*.txz or jdk-*.txz package can be found in /tmp.

JRE and JDK can't be distributed as is anymore due to some licensing issues.



sycamorex 10-04-2012 12:46 PM

For the future, you can find answers to most of your Slackware-related questions (including java) in the Slackware wiki:)

kikinovak 10-04-2012 04:28 PM

Ooops. Looks like I missed that one.

All times are GMT -5. The time now is 04:33 PM.