OpenSUSE :: Java Real Home Path Lost
Jan 27, 2010I accidentally messed my Java home path with this command:
export JAVA_HOME=
And now I don't know what the real path is.
I accidentally messed my Java home path with this command:
export JAVA_HOME=
And now I don't know what the real path is.
I installed an editor that works fine for root, but for user produces this error.
Code:
How does one set this thing?
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'm running my beloved OpenSuse 11.4 OS with KDE 4. After doing a recent update I lost Java runtime. I have the IceTea add-on installed, but still unable to run java scripts while in Mozilla Firefox 5.0. Prior to the update I was able to run java apps and scripts. I downloaded the lastest JRE 1.6.0_26 and installed it from the terminal emulator using an RPM package. Still unable to run java apps using The official US time (NIST & USNO) and Sun, Moon and Earth Applet as examples.
View 6 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?
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.
I'm using 8.10, but wanted to upgrade firefox to the latest version, so I downloaded the tarball from their website and compiled that. FF 3.6 works fine, but I havn't been able to get my flash or java plugins to work since.
View 5 Replies View RelatedI've tried to google but not much luck. What I would like to do is have anumber of folders on my desktop and their contents, replicated/duplicated into another folder on the same PC in real time. So for example, if I were to change an OpenOffice document in a specific folder on my Desktop it would be replicated/duplicated in real time. If I had three folders on my Desktop A, B and C they would also appear/be backed up (in real time) in a folder called /home/backup. Can this be done?
View 3 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:
I just recently installed a netbook version of lucid. Since it didn't support wifi, I did a wget of the 2.6.35 kernel and since then the netbook has been working great WITH wifi. It has been functioning great so far.Yesterday I went to add a user account for my girlfriend and that's when things went haywire.There were a number of error messages when I tried to log into both her account and mine after creating it:
First error: Could not update ICEauthority file /home/bob/.ICEauthority
Second error: There is a problem with the configuration server. (/usr/lib/libgconf2-4/gconf-sanity-check-2 exited with status 256)
Third error: Nautilus could not create the following required folders: /home/bob/Destop, /home/bob/.nautilus
I have inspected the /home drive and made sure I have permissions for my /home/bob dir, but it doesn't seem to allow me to cd bob. The current permissions for user is drw-rw-r-- and it is owned by bob.
I'm a bit of a Linux newbie so bear with me. I had a problem with Gnome-DO not starting on start-up. Searching this issue suggested that Gnome-DO was trying to start before a service that it needs to start and a script to fix the problem was provided:
Code: !/bin/bash
sleep 10
gnome-do When I try to save this file (using gedit) to any folder in my home directory,
[code]...
Is it possible to install java in my home directory and that only i can use it ?
Because i dont have root access.
I partitioned a 32 gB flash drive to one 8 gig and one 24 gig partition. Both fat32. I wanted to be able to access the 24 gig partition from XP.I installed a persistent 10.04 on the 8 gig partition.All ran well for about 3 weeks. Today during boot up I noticed that it had stalled at "creating live session user". I left it there for several minutes and then powered down to retry.Several attempts to boot left me at the same spot.I looked at the boot up messages and noticed this error... "unable to find persistent home media".I don't have a ton of save info on the live user account but I would like to be able to fix this type of problem.
View 3 Replies View RelatedI installed 10.10nbr on my wife's eee 901. Now she cannot remember her password. I've tried booting to recovery to use the passwd command, but that does not work. I believe I encrypted the home folder when I installed. Normally if I don't encrypt home, then I enable auto-login.
View 4 Replies View RelatedI was happily running Ubuntu Netbook Version 10.04 on my Dell Mini 10v, until I began having trouble booting up. I tried to upgrade to Ubuntu Netbook Version 11.04 to fix the problem. However, now I can not boot up unless it's to a USB drive with Netbook Version 11.04. I'd like to copy my files to an external hard drive so I can copy them to a new Macbook. However, when I boot to the USB and try to view my files in my HOME folder and other folders, they are X-ed out. They say that I don't have permission to view the files since I did not create them. Again, I only want to get the files onto an external hard drive and onto my Macbook. How can I gain access to my files?
View 2 Replies View RelatedLately when i open my computer i encountered failed in loading system. its goes like this. Unexpected error, run fsck manually...log in as root. I have to log in as root and type fsck try to fix bad blocks. the mandriva ask me to reboot so i reboot my computer. after loading system, in log in screen. I click my username then type my password and press enter. There is a message prompt on me. "Your home directory is listed as:'/home/Gonzalo' but it does not appear to exist. Do you want to log in with the / (root) directory? it is unlikely anything will work unless you use a failsafe session.
View 4 Replies View RelatedI used to use Ubuntu 9.10 for a year. I had my home path on different partition (19Gb) than the system partition (12Gb). Before I upgraded, the free space on Home partition (19Gb) was 6.3Gb. I knew that the direct upgrade is not good, so, I format the system partition (12Gb). Then, I install clean version of Ubuntu 10.04 on it. every thing is great. except that, I can not find my files in the old home path. In same time, Ubuntu is telling me that the Home partition (19Gb) (which I have not touch at all) has free space of 6.3Gb and used space of 11.3Gb. It means it can recognize that there is something but it can not open it at all.
system information:
Ubuntu 10.04 (lucid)
Gnome 2.30.2
2.6.32-25-generic
Apparently after an upgrade, I lost access to my encrypted home directory. Looks like upgrade scripts changed the scripts that mounted my encrypted home directory. As I don't have my ecryptfs password handy, is there any way to revert the things back as they were? I have liked Ubuntu all the way but after this upgrade-mess-up, I might change my view.
View 3 Replies View Related