Slackware :: Set Java Home Path
Apr 24, 2011I installed an editor that works fine for root, but for user produces this error.
Code:
How does one set this thing?
I installed an editor that works fine for root, but for user produces this error.
Code:
How does one set this thing?
I accidentally messed my Java home path with this command:
export JAVA_HOME=
And now I don't know what the real path is.
Java applet not loading image with relative path(e.g. images/1.jpg) but loads image with absolute path(i.e. from /root/user/images/1.jpg) . This is a problem when i want to host the applet on web server
View 2 Replies View RelatedI need to specify a different path to home directories on a particular server than what LDAP contains for the users, besides using a symlink. E.g. "/Users/jdoe" vs "/home/jdoe" I don't want to change the actual LDAP attributes, just want a particular server to point them in the right direction (Ubuntu 10.04).
I'm assuming it's something I could probably set in pam configurations?
Code: ~ $ /usr/java/jre1.6.0_25/bin/java -showversion Error occurred during initialization of VMjava/lang/NoClassDefFoundError: java/lang/Object
That's the error I get. When trying to run a java app with the firefox plugin, the browser simply crashes if it's the 64bit java or tells me it's not installed if it's the 32bit version.
I'm at a loss as to what to do. I think it has something to do with leftover gunk from a previous version I misinstalled(Is that even a word?) Anyway, the only thing that google could come up with was a solution for windows which laid blame on Bill Gates for having a bunch of pf (java prefetch) files stuffed into c:windows for no apparent reason. The solution was to delete them, but I can't seem to find the java prefetch folder in linux. The method I used is downloading the rpm from java.com the rpm2tgz then installpkg then cp libnpjp2.so to firefox plugins folder.
I have installed CentOS 5.5 and included the java development package. When I typed java -version, I got java 1.6.0. The problem is with the javac command, which is not found. I tried the following:
Didn't work!
I'm fighting my way through JAVA. But have hit another wall. Basically I need to to set paths in java so it can set/read files/director for Linux,Mac and windows.
The tutorials I'm using says to do this through the FileSystems class eg
Code:
However this reports it is missing, so a look on line says I need the headers so I set them with
Code:
This gives the following error
This has me totally confused as the tutorial shows this and checking online shows this, do I need to link in libraries or something like that?
I'm using the latest Ubuntu 11.04 and netbeans.
we have installed ubuntuserver10.04 and globus toolkit4.1.2 but when insatll gt4.1.2.using ./configure,we get an error to set java path.the error is JAVA_HOME is not set..to unresolve it we again install the server edition along with all packages.we have set the path for java /usr/bin/java still we get the error.help me out
View 2 Replies View RelatedI have downloaded java and installed it with chmod +x and then ./bin package.
Hereunder is an output from CLI (putty)
I understand that the system knows the java is in a wrong place but if I do java -version it finds it correctly. I don't know and I don't understand how do I need to tell the OS that the java is somewhere else, I just did that with export java home and java path but still dosen't work, it keep tells when I do whereis java "java: /usr/share/java"
Here is another output:
I want to know the procedure to set java path in open suse to get it into working state.
View 2 Replies View RelatedI have a program that has a GUI which I have placed in /usr/local/bin however when I invoke the program I receive the following error:
Unable to find a supported JDK or JRE version. Version 1.3.1 or higher is required. Check your installation and use +javahome to specify the JDK or JRE location
I have since installed Java into the usr/local/ directory however I am now just totally Lost! Additionally, I believe that i have tried to install Java several times with no luck.
Questions:
1) Where should java be installed to have system wide access to all programs?
2) How can I place the Java location in my $PATH? here I am going to need very easy and detailed instructions?
3) Is there a way to ensure that the location where I intall java gets updates?
I recently installed java in ubuntu (ver#java1.6.0.00)with many pains.Now I need a clear class path for this java in ubuntu 9.10.
View 2 Replies View RelatedI'm setting up a RHEL 4 VM and have installed Oracle Java 1.6 from a bin file to /opt. I've added it into the PATH but when I try to run a installer that needs Java to run it says that it can't find a Java installation in my PATH but when I execute a which java I get the following:
Quote:
I am trying to set my java path so that it is in effect for all users including the root user. I set the path correctly in /etc/profile and that works for my personal user, but when i try to run the same commands using sudo, i get messages saying that it can't find the java path.
View 3 Replies View RelatedI have installed jdk1.6_0_0 to kubuntu 8.10. But javac command doesn't work yet.
How do I set path?
Here are the outputs i got from typign some commands
I want to ask how i set Linux class path for mail.jar and mysql-connector.jar. I have set the class path for java with the command.
Code:
when i do java -version it's work fine.
Also if i want to know that what shell i am using how can i find it.Also what is the command for showing class path variables or how can i see my JAVA_HOME class path.Means after setting the class path for above two files how can i see that these files have added.
When i write echo $CLASSPATH or echo $JAVA_HOME it shows nothing no error but again shows the prompt.
One thing more i want to run a java program on Linux it is in a package (named asteriskproject). It consist of 10 java files. I have run this program on windows using netbeans IDE.For this program i need to set my Linux class path for the above mentioned files, and this is my first time that i am running any program on Linux. So i want to ask how can i run my program. Simply put this asteriskproject directory in any folder and run the main file using javac. Is it right way to run the program that consist of package ?
I thought i'd set up the partitions correctly when i installed ubuntu, with a 15 gig "/" partision and a 45 gig "/home" and a 3.8gig "swap"
I was wrong i somehow misplaced the /home partition, and therefore didn't install it
I found this out about 4 days ago as i was running though video tutorial and realized i didnt have it setup correctly afterall
So... i did some research and found this site...[url] and i found something that seemed to work for various people, i deleted the 'now' windows partition and so i had this:
However i unmounted the /home folder following the instructions without realizing that i didnt have permissions to mount the /new home partition as it is not in the extended ubuntu 9.04 linux partition and i have no rights to it
So my question is, how do i fix the path to the /home folder (original) in ubuntu so that i can start over and do this correctly (ie; resize the extended partition and add the /newhoe directory/patition to ubuntu)
I realize that i can use a sudo command before lines to run su commands that are blocked in ubuntu, which is how i screwed up =
I cannot use anything in the menu as all links to programs are dead, i can run the add app, but it cannot install as the install folders are "not there"... i can see them in the terminal so i know my data is there and i can run the live disc to salvage it, but i cannot see it while ubuntu is loaded
Note; i have not restarted the computer and i don't know if this will block ubuntu from restarting either, so i need to fix via terminal, before i can do anything else, like letting the laptop rest.
I installed Ubuntu 10.04 only be dismayed to find ${HOME}/bin FIRST IN THE PATH. I blogged about it at my blog (I sudo an xterm rather than just sudoing to get a different background for the sudo'd xterm): [url]
I agree that some new user should probably not be logging on as root. But if the replacement for 'ls' is in their ${HOME}/bin/ the sudo'd shell inherits the same PATH, umask, and everything else! In general I take a dim view of a sudo only way of doing things. It seems to cause more problems than it solves for disciplined, knowledgeable users. In the case of Ubuntu it caused me to create a /root folder for root to reset the umask back from 077 which is what I use over to 022 which is what root should use. The /root/.profile of course made sure there is no /home/me/bin in the sudo'd PATH. It didn't matter because somebody is not just SETTING the file perms and is instead calculating them based off of modifications to the umask. JUST SET THEM! I ran into a problem with GRUB getting things fouled up because I was having to remove the new kernels and instead of using the command line option (much prefereable) used Synaptic Manager instead: [url]
In fhe case of an infection living in a user's file space you really should want to go in to clean it out as some other user than the user that is infected. Having said that the hackers seem to be going for the whole enchilada right off the bat. A WARNING is in order here. DO NOT USE A ROOT ACCOUNT OR SUDO FOR NORMAL TASKS! But please put ${HOME}/bin last in the PATH or preferably don't even put it in the PATH at all. Let users add it themselves if they want it. Also once hackers figure out that hijacking a sudo tty (from what I just read else-where here I would say several hackers are working on doing that right now - sendmail my ****) is a dandy way of doing things you really will need to provide for ways of cleaning a user infestation out by going at it some other way than through that infected user. A lot of Ubuntu users have only one login account, the one they created when they set the machine up.
Anybody know of a slackware package for the Iced Tea Java thing? I have the rpm (I have fedora anyhow) but I would like a slackpkg to cstick in here.
View 8 Replies View RelatedI've successfully installed Java and Ant using apt-get, however when i tried to echo the env. variable, I doesn't give me anything ?
But, i can see some result here:
Quote:
Is that working configuration or i shall add it into /etc/environment file like the following ?
Quote:
Is it possible to install java in my home directory and that only i can use it ?
Because i dont have root access.
I was installing linux and i got the caution below:
WARNING: pkgtools are unstable with tar > 1.13. You should provide a "tar-1.13" in your $PATH. Cannot install /media/SlackDVD/slackware*/a/*.txz: file not found
I found the following function in /etc/profile file.
[Code]...
1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??
2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH
I am working on getting my software packages installed on my fresh Slackware64-13.0 installation. Some (but definitely not all) of my executables are unable to be run.
I understand what PATH is for. It is for locating files, folders, executables in those directories when running from a Terminal window.
So, for example, I have just installed Cisco VPN Client for Linux, and it is the strangest thing. I should have access to this. I must not be understanding something here. Does anyone have any idea why this is not working for me? I have put in an example of what I am talking about.
I have no idea why this is not working.
has anyone the same problem with bash in -current? Everytime I use the commandline completition with TAB , it adds me a space, so I always need to push the backspace to continue to complete the path.So the whole thng get's a bit unuseable.I'm using bash-4.1.010-486-1 and bash-completition-1.3-noarch
View 4 Replies View RelatedThe value of envar PATH for processes run by the udev system is "/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:.". If peer review (that's you!) agrees it is a poor choice how can I submit an enhancement request? The man pages do not say anything about bug reporting. Here are reasons why it is a bizarre choice:There is no /gnu/bin directory on as-installed Slackware. /usr/local/bin is empty (or very nearly empty?) on as-installed Slackware. Processes running under udev run as root; having "." in PATH is not good practice when running as root. Processes running under udev are likely to be doing "system" work so executables from the sbin directories are likely to be used. For example, udevadm itself is /sbin/udevadm. Presumably this PATH is set by udevd itself; it is not the PATH in effect when udevd is started by rc.M. AFAIK udevd's PATH is not configurable. The workaround is for processes initiated by udev to set a sane PATH for themselves, perhaps "/usr/sbin:/sbin:/usr/bin:/bin". EDIT: seen on Slackware 13.0 32 bit. EDIT2: rc.udev is run from rc.S, not rc.M as stated above
View 7 Replies View RelatedI can't run the "java" command as root, but I can, as a simple user.
View 2 Replies View RelatedI keep reading on the web about how there is now a 64 bit plugin and even saw Eric state in the Slackware 64 thread that there was a plugin for x86_64...
Where does this plugin reside?
I'm seeing a ./lib/amd64/libjavaplugin_jni.so but that gives me nothing with "about:config"
I've got a 64 bit flash plugin.... Just need a java one and I'll be set as far as the web goes..
i have slackware 12.2 on a toshiba laptop and i cannot play flash movies on videos and similar stuff.
it also complains sometimes that i do not have java. but i do have java on my system. i think slackware comes with java included afaik. is there some sort of process or a tutorial i must read to get these things all set up? also, do i still have to install some kind of flash application?
I thought I knew what I was doing, just a minimal install of slackware 13.1 for a game server (minecraft), but it seems I missed java or something - I get the "command not found" error. gcc-java is installed. What package did I miss/what series is it in? Does it have any dependencies?
View 1 Replies View Related