JAVA_HOME settings  - problem

Hello,
I am a Fedora user.
I installed apache tomcat to this location in my computer: /usr/local/apache-tomcat-5.5.20
When I want to run the "./startup.sh " command, I receive this error:
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
It is normal.. Then I set the JAVA_HOME as following:
export JAVA_HOME=/usr/java/jdk1.5.0_10
However, I still receivethe same error:
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
I am new in Linux and I could not understand why I receive this error even if I set the JAVA_HOME. Any recommendation would help me a lot!
Thanks & Regards
hs

Hello again,
If I set the JAVA_HOME on the console and run the startup script, tomcat works.
If I set the JAVA_HOME on the console but try to run the startup script on another console it does not work.
Permanent solution: (I am directly writing the instructions that I got from http://ubuntuforums.org/archive/index.php/t-44006.html)
You need to point out where you installed Java SDK. You will have to edit the file '.bashrc'. Backup this file first!
In terminal type:
gedit ~/.bashrc
Add the following lines to the file:
#Stuff we added to make tomcat go
export JAVA_HOME=/usr/lib/j2sdk1.5-sun/
export CLASSPATH=/usr/local/tomcat/common/lib/jsp-api.jar:/usr/local/tomcat/common/lib/servlet-api.jar
This was probably an experience problem. Thank you very much for the answer!
Happy new year! :-)
hs

Similar Messages

  • ICal settings problem.

    I have an iCal settings problem. I simply cannot change the format to 12 hours. I have repeatedly set the system to 12 hours and that works fine. I have re launched iCal several times to no avail. Running system 10.6.7 and iCal is 4.0.4. Any ideas? Thanks. Geoff.

    iCal takes its format from System Preferences>Language& Text>Formats.
    Click on the 'Customize' button for 'Time' and set as here:
    Then drag the  'PM' button in the 'Time Elements' section to after the short time - though when I tried this it didn't appear in iCal. You may need to experiment a bit.

  • [Solved]Gnome settings problem

    Hi all.
    I have some strange problems with Gnome 3.2, it is hard to explain but these screenshots should:
    http://bildr.no/image/1012613.jpeg
    http://bildr.no/image/1012614.jpeg
    In the first picture you can see that something that is selected by default is pink, this happens all over Gnome. In the second one you can see that in nautilus when I want to select with the mouse it creates a white block so you can't see behind. I know it is a settings problem because the same doesn't happen on a new account, but the problem is that I have tried to delete .gnome2/ .gconf and .config but once I start to customize again the problem reappers. So I was wondering if there is anything else that I can try to delete without deleting the whole account or if there is some settings that I could to to remove this problem.
    Thanks in advanced
    Mod edit: The included images are too big, see our forum etiquette about this. For  screenshot posting rules you may also look here.
    Last edited by nordmoen (2011-11-01 13:57:18)

    caligo wrote:If you launch a GTK3 app from the terminal, are there any GTK related error messages (e.g. CSS errors)?
    Yes!
    Havn't noticed that before:
    (gnome-system-monitor:3153): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:620:27: Whitespace between 'url' and '(' is deprecated
    (gnome-system-monitor:3153): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:626:27: Whitespace between 'url' and '(' is deprecated
    (gnome-system-monitor:3153): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:632:27: Whitespace between 'url' and '(' is deprecated
    (gnome-system-monitor:3153): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:639:27: Whitespace between 'url' and '(' is deprecated
    (gnome-system-monitor:3153): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:645:27: Whitespace between 'url' and '(' is deprecated
    (gnome-system-monitor:3153): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:651:27: Whitespace between 'url' and '(' is deprecated
    (gnome-system-monitor:3153): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:657:27: Whitespace between 'url' and '(' is deprecated
    (gnome-system-monitor:3153): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:663:27: Whitespace between 'url' and '(' is deprecated
    (gnome-system-monitor:3153): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:669:27: Whitespace between 'url' and '(' is deprecated
    (gnome-system-monitor:3153): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:675:27: Whitespace between 'url' and '(' is deprecated

  • Satellite L40-14F - Display settings problem

    Hi,
    I have Toshiba Satellite L40-14F with Intel GMA X3100 video card.
    I have display settings problem, I can't change screen resolution and color quality when video card drivers are installed, screen resolution is 800 by 600 pixels and color quality is lowest 4 bits, when i uninstall video card drivers can change it. I try to install other drivers, there are the same problem :( Please help me :)
    Regards

    I updated BIOS then install video card drivers and it works :)

  • I downloaded a security update & when i tried to open firefox afterwards ,I couldn't open it. have a DEP settings problem i tried to change my computer's DEP settings but was notified i couldnt for firefox,what should I do?

    I was prompted to downloaded a security update & so I did. when i tried to open firefox afterwards ,I couldn’t open it. My computer told me I had a DEP settings problem.I tried to change my computer's DEP settings but was notified i couldn't for firefox. I tried the uninstall & then install Firefox again route (could not even do it in safe mode since i can't even open firefox)but still had the same problem afterwards. What should I do?

    Do a clean (re)install and delete the Firefox program folder (C:\Program Files\Mozilla Firefox\).
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 10.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible.
    *Do NOT remove personal data when you uninstall the current version or you lose your bookmarks and other data because all profile folders will be removed.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • N73 - Operator Settings Problem

    Hi I've received settings from my operator to setup my phone automatically & they have been received in my txt inbox. When I try to open them I get the message "General: Feature Not Supported". I'm unsure why this is, the phone has the most current firmware on it. It is the standard edition if that changes anything, but I don't think it would. Would be greatful if someone could shed some light on the message I'm getting.

    As i told it might not be the phone " or it might " but i've been reading through the Blyk support forum and they have their share of settings problems. on the other hand i think the N73 is one of the best handsets around so it's not a waste.
    try using Blyk support forum for help:
    http://forum.blyk.co.uk/forums/default.aspx
    and the best way to diagnose the problem is to use another sim card from another company "if you have one", and let them send you the confiquration messages , and try that, if it worked, then it's not hte phone.
    Fear not those who argue but those who dodge

  • Environmental settings problem

    i am trying to run a application on tomcat 5.0
    i have checked all the settings but still it is giving same problem
    i am giving settings which i have done in environmetal settings
    JAVA_HOME c:\j2sdk1.4.2_12
    CATALINA_HOME c:\program files\tomcat 5.0
    PATH c:\j2sdk1.4.2_12\bin
    CLASSPATH c:\j2sdk1.4.2_12\lib
    it is giving following error
    unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath
    perhaps JAVA_HOME does not point to the JDK

    Try this ,please check the installed folder present on that destination
    C:\j2sdk1.4.2_05\bin;
    CLASS PATH
    C:\j2sdk1.4.2_05\bin;C:\j2sdk1.4.2_05\lib
    On PATH
    C:\j2sdk1.4.2_05\bin;C:\j2sdk1.4.2_05\lib
    CATALINA_HOME c:\program files\tomcat 5.0
    check tomcat version also
    Message was edited by:
    loveme

  • JAVA_HOME settings

    hai
    i want to run a war file on tomcat server
    but is giving error:--JAVA_HOME does not point to JDK
    i have done folloing settings in environmental settings of windows xp professional as environmental variables
    JAVA_HOME:C:/ jsdk1.4
    path=c:/jsdk1.4/bin
    classpath= c:/jsdk1.2/lib
    plz help
    urgent
    thanks

    jchobantonov
    thanks for ur help
    but i have checked all the settings but still it is giving same problem
    i am again giving settings which i have done in environmetal settings
    JAVA_HOME c:\j2sdk1.4.2_12
    CATALINA_HOME c:\program files\tomcat 5.0
    PATH c:\j2sdk1.4.2_12\bin
    CLASSPATH c:\j2sdk1.4.2_12\lib
    it is giving following error
    unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath
    perhaps JAVA_HOME does not point to the JDK

  • General Settings Problem.

    Hi Experts !!!
    Whenever i changing settings in General Settings , it is throwing error as
    " CANNOT UPDATE WHILE ANOTHER USER IS CONNECTED TO THE COMPANY. "
    please help
    Regards
    A S V amsi Krishna

    Hi Vamsi..........
    I guess you have not upgraded properly your system.
    I also faced the same properly when I upgraded my system but i needed to reupgrade
    once to avoid such problem......
    Regards,
    Rahul

  • Plug in settings problem

    Hey all
    I have a slight problem...
    I have transferred all my software from my old mac to my new mac, and now i don't seem to have a single plug in setting for any of my logic plug ins... or any other one for that matter!!!
    I do, however, have several folders called plug in settings with subfolders for each instrument (seems like they were from old versions of logic i had previously installed), but nothing inside the folders.
    S0
    1. What's the correct file structure for logic plug in settings in logic pro 7.1?
    2. Can i re-install plug in settings only from my install disc or a user site online?
    Thanks in advance
    David Tobin

    the factory ones will be on the install disc.
    David
    I have managed to find some plug in settings from an old logic 6 install disc.
    However, i upgraded from 6 to 7, and on the upgrade disc i cant see any plug in settings folder. There is the option to reinstall logic, or to install factory sampler instruments and samples, but nothing about the plug in settings - so where can i find the logic 7 plug in settings without reinstalling the whole programme? Where they on a separate install disc that i have forgotten about?
    David

  • BIOS Settings Problem on KT3 Ultra2 MS-6380E with Barton 3000+(FSB333)

    Well, I finally got my Barton 3000+ with 333 MHz FSB and installed it yesterday in my MSI KT3 Ultra2 Mainboard....
    System Before changing anything:
    PSU: DTK  400 W
    +3.3 V / 22 A
    +5 V / 35 A
    +12 V / 15 A
    -5 V / 0.5 A
    -12 V / 0.8 A
    +5 V VSB / 3 A
    So that should make up 400 W as far as I know, my total System drain should be around 300-350 W so even if it would not suffice 400 W it should run the system ?
    Mainboard: KT3 Ultra 2 (BIOS v5.7)
    CPU: AMD XP 2100 FSB 133 MHz
    RAM: 1.536 MB, 3x512 MB Infineon PC3200 (400MHz) CL 3-3-3-8 @400MHz, Cl2.5-3-3-7@333Mhz, 2-2-2-6@266MHz
    VGA: MSI RX-9800 Pro 128 MB
    DVD/CD-R/RW-Combo: Plextor PX-708 (Firmware 1.08)
    CD-R/RW: TEAC CD-W540E (Firmware 1.0K)
    Storage: Western Digital WD800BB (80 GB) (Firmware 17.07W17)
    USB-Storage: Maxtor 4 K080 H4 (80 GB)
    Monitor: Samsung Syncmaster 172T with Driver Version 1.0
    Printer: HP Deskjet 970Cxi with Original HP Driver Version 4.3
    OS: Windows 2000 Professional with Service Pack 4
    BIOS Settings: SDRAM 1T Command: "Disabled" It won't work stable with 3 RAM's in it with that setting, but that I did know before.
    CPU Fast Command: "Ultra"
    System was running stable for nearly 2 years with this Configuration:
    So now it goes:
    First I changed the CPU form my old AMD XP 2100+ to the new Barton 3000 + with its new Arctic Cool Copper Silent 2TC.
    Then I went into BIOS and raised the FSB to 166 MHz, which should be the correct one, or do I have to put 167 MHz in there (since 166.666666 MHz is rounded to 167)?
    Then I exited and watched the restart...but it didn't start-up it only got me 3 long beeps at the HOST.
    After some whining and beating I plugged out anything and cleared CMOS and started the whole thing again:
    System after Clearing CMOS:
    Mainboard: KT3 Ultra 2 (BIOS v5.7)
    CPU: AMD XP 3000+  FSB 100 MHz
    RAM: 1x512 MB Infineon PC3200 CL 2-3-3-7 (BIOS setting CAS Latency by "SPD")
    Storage: Western Digital WD800BB (80 GB) (Firmware 17.07W17)
    Monitor: Samsung Syncmaster 172T with Driver Version 1.0
    OS: Windows 2000 Professional with Service Pack 4
    With all Default settings, the Computer boots up, and is correctly Recognized as a Barton 1300 MHz.
    When increasing FSB to 133 MHz it is correctly displayed as a Barton 2200+
    NOW...
    ...after adding one BIOS setting after another I narrowed the problem down to the "CPU Fast Command (decode)" Function...if set to Ultra it does not boot-up when running 166 MHz FSB, it does not even let me into BIOS. I have to clear CMOS and restart from scratch again...
    Is this normal and expectable with a Barton 3000+ running at the native 166 MHz FSB or not ?
    Since my system before was running on "Ultra" with my old AMD XP 2100+.
    There is only one more thing I noticed, the CPU V-Core is shown to be only 1.616 V (setting on "Auto" but it should be 1.65 V ? Should I increase the V-Core to 1.675 V in order to get closer to 1.65 V or shouldn't I worry about ?
    Thanks for any Input you can give me on the problem.
    Iscaran

    Iscaran, you are indeed correct in the statement which you made
    Quote
    ...after adding one BIOS setting after another I narrowed the problem down to the "CPU Fast Command (decode)" Function...if set to Ultra it does not boot-up when running 166 MHz FSB, it does not even let me into BIOS. I have to clear CMOS and restart from scratch again...
    This setting can be set to fast/ultra on the KT3 Ultra2 when using PC2100 ram running at 266. However, when using PC2700 ram running at 333, this setting MUST be set to normal for the satisfactory operation of the board. I know that you have PC3200 ram actually installed but it is only running at 333.
    Quote
    Is this normal and expectable with a Barton 3000+ running at the native 166 MHz FSB or not ?
    Yes, absolutely normal
    Quote
    There is only one more thing I noticed, the CPU V-Core is shown to be only 1.616 V (setting on "Auto" but it should be 1.65 V ? Should I increase the V-Core to 1.675 V in order to get closer to 1.65 V or shouldn't I worry about ?
    How are you measuring this ie Bios or o/s utility? Not unknown that these are incorrect. However, if you feel unhappy about this, try setting the V-core manually to 1.65v and check what this gives.
    Quote
    So 3.3 V x 22 A gives 72.6 W, that could be really a little cutting the edge. Could that cause the board to not respond when setting the "CPU Fast Command" to "Ultra" ?
    Getting a more powerful psu will not likely cure this well documented problem.
    However, this board mostly draws power from the 3.3 & 5v rails. The 12v is mostly used to power HDD, optical and fans. When you consider that 128Mb of ram draws about 8-10w from the 5v rail and you have a total of 1.5Gb that adds up to 96-120W of juice just for the memory alone. This board will beep at you at o/s level when it's running underpowered but my opinion is the same as osnavi's your 3.3v & 5v rails are too low. Also what is combined 3.3v & 5v wattage. What kind of reading do you get on monitoring utilities.
    By the way I have as you can see from my dets below the same board and cpu as you and when I changed from a XP2000 Palomino with PC2100 ram to XP3000 Barton and PC3200, I changed the 'Fast Command' setting from 'Fast' to 'Normal'
    Hope this helps, enjoy the board

  • System Settings - Problem: New Window occurs

    Hi all,
    can you help me? - If I start "Systemeinstellungen" (System settings?) and change to "Network" a new window occurs with the text: "Ihre Netzwerkeinstellungen wurden von einem anderen Programm geändert" (your network-settings were changed by a different programme). I can choose "OK" and the window disappeares but it will appear immediately again and again...
    What can I do to solve this problem?
    Thanks for your help

    This post by ejp1684 seems to have offer a solution:
    Once in the network prefs and the popup appears, place your mouse over the place where the "Show All" button is (behind the popup). Then, hit Return - which gets rid of the window and immediately the window is gone, click on the 'Show All" button. I then get a window asking me to save etc, the changes. You can click on any of them and you should be back in the prefs window. Then, when you select the Network prefs, you should be able to change things. If this doesn't work, I found that I had to use the mouse button to click on both the "OK" button on the popup, and then quickly switch to the "Show All" button - took me a few times to do it!
    Even if you can't change the settings, at least you won't have to do a hard shutdown.
    http://discussions.apple.com/thread.jspa?messageID=8112368&#8112368

  • Form settings problem

    Hi Experts
    I have a user defined form with 4 folders inside each folder there is a matrix(total 4 matrix). But my problem is that when i select form settings every time first matrix form settings will be displayed. I have to access the form settings of other three matrix also.  Any ideas on how I can do this..please help me
    Thanks in advance
    Arun

    Hi,
    You can display settings for other matrixes. You need to change Form.Settings. Just assign matrix unique id which You want to display in Form settings to form's propoerty MatrixUID.
    You wrote that You have 4 folders with 1 matrix in each folder.
    Folder1 - Matrix1 (UID = M1)
    F2 - Matrix2 (UID = M2)
    F3 - Matrix3 (UID = M3)
    F4 - Matrix4 (UID = M4)
    If You click on any folder You change Form PaneLevel to display relevant matrix. At the same moment change Form.Settings.
    F1
    Form.PaneLevel = 1
    Form.Settings = M1
    F2
    Form.PaneLevel = 2
    Form.Settings = M2
    F3
    Form.PaneLevel = 3
    Form.Settings = M3
    F4
    Form.PaneLevel = 4
    Form.Settings = M4
    Regards
    Szymon Lipnicki

  • Exporting Using Expert Settings Problem

    When I try exporting using expert settings, which is pretty much necessary, any video that I export, in just about any format, but usually .mov or .mp4 looks very strange. Any moving objects appear to be broken up by horizontal lines. I do not know much about these sorts of issues, but I'm guessing it's a problem with the frame rate. I've tried just about every frame rate and nothing seems to work. Thanks for your help!
    P.S. Same thing happens when exporting from iMovie!

    It means the timeline settings. If your project is DV, then it will export a DV quality file. If your settings are Offline RT, it will export an offline RT formatted Quicktime...if they are 8-bit uncompressed, an 8-bit uncompressed QT...etc. And the same frame rate as well, 23.98, 29.97 and so on.
    It basically means that no further compression is occurring.
    Shane

  • Flex Builder 3 under Eclipse - project .settings problem

    I've been experiencing some odd problems with a project using FlexBuilder 3 plug-in with Eclipse.
    The first problem I've noticed is that a file under the .settings dir has a red 'x' beside it. The offending
    file is org.eclipse.jst.common.project.facet.core.prefs. I've left the file as is until I understand how it became corrupt.
    The second problem is that .as and .mxml files are no longer being opened in the Flex Builder editor -
    the are being opened in TextPad, which it the default editor outside of Flex Builder. I've tried all of the available
    editors and none of them work under Flex Builder.
    The third problem is that when I try to create a new Flex Builder project from New->Project-> there is no
    option for a FlexBuilder project.
    The Flex Development perspective is visible in the top right hand corner as usual. When I select Open Perspective
    there is no Flex perspective.
    Should I just reinstall the FlexBuilder plugin?
    Thanks!

    Hi Peter,
    It has not been fully tested yet but a few of us are using
    it. If you see any issues in Eclipse 3.3RC4 with FB3 Plugin, please
    file a bug in our new public bug system:
    http://bugs.adobe.com/flex.
    thanks,
    Sharon

Maybe you are looking for

  • Can I install iPhoto on an external hard drive

    My iMac is fully consumed with photos. I have no memory available. I was wondering if I purchased an external hard drive if I could completely remove iPhoto and all the pictures from my iMac and put the whole program with all the pictures on the driv

  • IPhoto is extremely slow after upgrading to OSX Maveric

    Has anyone noticed that iPhoto is extremely slow after upgrading to OSX Maverick

  • [JS][CS4] Remove all hidden page items?

    Hello, I'm trying to remove all hidden page items regardless of how many sublayers they are burried in. Is this possible? I wrote a snippet here that seems to only partly work. It removes all hidden page items unless two hidden items exist right afte

  • How to eliminate some samples in exs24?

    Consider the exs24 violas (orchestral->strings->viola section). There are two zones (upbow and downbow) which are active when this instrument is chosen (these are the only rows with the "on" box checked), and there are two sets of samples for each zo

  • Access Connections showing wifi connection as greyed out.

    Under the tab called "Connect to Internet", the only radio button that shows ungreyed out is Other Connections. In other words, it doesn't allow me to even choose Wifi connections.  Nevertheless, Windows is connecting me to my wifi network. Is there