LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems with java (https://www.linuxquestions.org/questions/linux-newbie-8/problems-with-java-4175608263/)

Sk9ITk5Z 06-20-2017 12:03 PM

Problems with java
 
Hello, I'm new to the forum, I hope to learn a lot from you.

I have a problem with java, download from the official website "jdk-8u131-linux-i586.tar.gz" and the "jdk.tar.gz" from slackbuild.org, I set the package well and installpkg with installpkg but when I open Some application that uses java tells me that it is not installed. When running the "which java" command it says the following: "which: no java in (/ root / anaconda3 / bin: / usr / local / sbin: / usr / local / bin: / sbin: / usr / sbin: / Bin: / usr / bin) "

I have to install the javs in another way? Or how can I solve that problem?

MensaWater 06-20-2017 12:35 PM

Generally tar.gz or .tgz extensions tell you the file is a tar bundle that has been compressed.

You can see what is in the tar bundle with "tar tvf <filename>".

You can extract what is in the bundle with "tar xvf <filename>".

Slackware package management appears to be based on above file naming.

Have a look at this site:
https://www.linux.com/learn/intro-sl...age-management

Having said that however, not all .tar.gz/.tgz packages were created just for Slackware. Many are simply meant to be extracted or extracted, configured and built with make. Usually such packages will have README files in them to tell you what to do after extraction.

Note the i586 in the one package name indicates it is designed to run on 32 bit x86 system (as are i386 & i686). The equivalent 64 bit package would usually include x86_64 rather than one of those. Usually you can run 32 bit apps on your 64 bit system (alongside your 64 bit apps) but if your system is 64 bit you should prefer 64 bit packages to 32 bit unless you have a specific need for 32 bit.

Sk9ITk5Z 06-20-2017 12:53 PM

Quote:

Originally Posted by MensaWater (Post 5724855)
Generally tar.gz or .tgz extensions tell you the file is a tar bundle that has been compressed.

You can see what is in the tar bundle with "tar tvf <filename>".

You can extract what is in the bundle with "tar xvf <filename>".

Slackware package management appears to be based on above file naming.

Have a look at this site:
https://www.linux.com/learn/intro-sl...age-management

Having said that however, not all .tar.gz/.tgz packages were created just for Slackware. Many are simply meant to be extracted or extracted, configured and built with make. Usually such packages will have README files in them to tell you what to do after extraction.

Note the i586 in the one package name indicates it is designed to run on 32 bit x86 system (as are i386 & i686). The equivalent 64 bit package would usually include x86_64 rather than one of those. Usually you can run 32 bit apps on your 64 bit system (alongside your 64 bit apps) but if your system is 64 bit you should prefer 64 bit packages to 32 bit unless you have a specific need for 32 bit.

Thanks for replying I created the .tgz package and installed it with installpkg, I use Slackware 14.2 and it is 32 bits. "Linux darkstar 4.4.14-smp # 2 SMP Fri Jun 24 14:44:24 CDT 2016 i686 AMD C-50 Processor AuthenticAMD GNU / Linux"


All times are GMT -5. The time now is 06:55 AM.