SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just installed slackware 11.0 on my newly revived, otherwise garbage laptop. I chose to install all of the java packages while installing slack, and also in /usr/lib there is a directory by the name jre1.5.0_09 I understand this to be the java runtime environment, which should handle the java command to run a compiled java file, however where is the javac command? Apparently where ever it is, its not in my current $PATH. Do I need to set something up so that I can compile java code? Or do I just need to add pathName not yet in my $PATH?
Its not there.
What you have installed is jre; you need jdk which is the the /extra folder in disk3 I think (remove jre first, run and ldconfig, install jdk and do back the ldconfig and you should be good to go)
Well I guess I will install jdk first off and see if it includes JRE before removing, since there seems to be a discrepancy. Thanks for the help, cheers.
I am having a problem compiling Java programs in Slackware. javac as root will compile the .java file, but the javac command can not be found as a user. I defined the path in /etc/profile. Where else do I need to define the path so that all regular users can find javac? For obvious reasons, I do not want to write all my Java programs as root.
I can't find the .bash_profile. I did an ls -a in the /home/user directory and there is .bash_history, but no .bash_profile. I am using Slackware 11. What am I missing. I changed the permissions on the folder with the javac element in it and now it seems that I can run it but I am getting the following error:
test.java:4: error while writing test: test.class (Permission denied)
public class test
_____^ (Underscores added for formatting only)
1 error
So I think that the original problem was a permissions issue, now I just need to allow permissions to write a class file to user.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.