Cannot run java (Linux)

I just downloaded and installed java JDK 1_5_0_05 (rpm file) for my machine (PC with Linus ES 3.0). When I try to run javac on the command line, I get the following error:
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.
What am I missing?
Thanks
plaval
email: [email protected]

(PC with Linus ES 3.0).First, I don't know that Linus would like that there are multiple versions of him. Perhaps you meant something like RedHat Linux Enterprise Server 3.0.
Anyhow, I'm guessing that there was already a Java install on your machine, though probabaly not one from Sun. If you're familiar with RPM's then I would start by doing an "rpm -qa | grep -i java" to see what other Java installs may be on the machine. Multiple versions can reside on a single machine but you need to make sure that your PATH environment variable is set to "your" JVM's bin directory and that your JAVA_HOME is set to the base of your JVM.
Let us know what other issues you have.
Need Java help? Want to help people who do? Sit down with a cup of Java at the hotjoe forums.
Sure they're new - come get them started!

Similar Messages

  • Cannot run java can anyone help??

    cannot run java, it says it is loaded but when I go to Pogo.com java is booted out. Can anyone help??

    have ur java software updated.

  • HT1338 i cannot run java with mountain lion

    i cannot run java with mountain lion

    @jnsmth
    I see Barney-15E made suggestions regarding Chrome preferences. There's also a setting on the Mac to deal with this. Regarding the drop-down menus not seeming to scroll through (such as a list of states)--where when you place or click your cursor over the drop-down menu and it only opens to some of the options in a list, I found that you have to change the scroll bar behavior in your computer's (and not the browser's) General Preferences within your System Preferences.
    Open System Preferences, and click on "General" inside the top row of "Personal Preferences" (as it is in my system with Mountain Lion, and I think prior operating systems before that).
    Once inside General Preferences, select the radio button option for your scroll bar which you'd like to use in the "Show scroll bar:" section ("Automatically based on mouse or trackpad," "When scrolling," or "Always." If you're using a mouse and not a trackpad, you'd probably want to select "Always" as it takes swiping over the drop-down list on the trackpad to enable (make visible) the scroll bar and/or scroll the list.
    Either with the installation of Mountain Lion, or the installation of my trackpad (I'm using a desktop iMac and not a Macbook / laptop) I found that the righthand scroll bars seem to automatically disappear. When I moused over or clicked on a drop-down menu (such as the list of states) I'd see only the first few options in the list. In order to access the rest of the states (get the list to scroll) you have to either have the scroll bar setting set to show "Always" or (if you have a trackpad) use the trackpad to swipe/scroll while hovering your cursor over the list's items to get it to scroll the list, and thus then show/reveal the lefthand scroll bar (which can then be accessed with your mouse if you prefer.
    This confused me at first when my scroll bars seemed to disappear, but was an easy fix.
    Hope that helps with that part of your issue.

  • Cannot run "java -jar javapetstore-2.0-ea5-installer.jar "!

    My java version is:
    java version "1.6.0_06"
    Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
    Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
    When I run "java -jar javapetstore-2.0-ea5-installer.jar"
    I get errors:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.initSystemColorDefaults(GTKLookAndFeel.java:1267)
    at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.loadStyles(GTKLookAndFeel.java:1509)
    at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.access$000(GTKLookAndFeel.java:37)
    at com.sun.java.swing.plaf.gtk.GTKLookAndFeel$WeakPCL$1.run(GTKLookAndFeel.java:1449)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Exception in thread "main" java.lang.NullPointerException
    at javax.swing.plaf.synth.SynthLookAndFeel$AATextListener.propertyChange(SynthLookAndFeel.java:793)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:347)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
    at java.awt.Toolkit.setDesktopProperty(Toolkit.java:1784)
    at sun.awt.SunToolkit.fireDesktopFontPropertyChanges(SunToolkit.java:1714)
    at sun.awt.SunToolkit.setAAFontSettingsCondition(SunToolkit.java:1759)
    at sun.swing.SwingUtilities2$AATextInfo.getAATextInfo(SwingUtilities2.java:119)
    at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.initComponentDefaults(GTKLookAndFeel.java:1258)
    at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.getDefaults(GTKLookAndFeel.java:294)
    at javax.swing.UIManager.setLookAndFeel(UIManager.java:537)
    at javax.swing.UIManager.setLookAndFeel(UIManager.java:581)
    at org.jvnet.poormans_installer.Main.setUILookAndFeel(Main.java:88)
    at org.jvnet.poormans_installer.Main.main(Main.java:49)
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.initSystemColorDefaults(GTKLookAndFeel.java:1267)
    at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.loadStyles(GTKLookAndFeel.java:1509)
    at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.access$000(GTKLookAndFeel.java:37)
    at com.sun.java.swing.plaf.gtk.GTKLookAndFeel$WeakPCL$1.run(GTKLookAndFeel.java:1449)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    My OS is CentOS5.1 final.

    have u set the path to java 1.4.1 ?
    if u set the path ,,, the there will no problem.

  • Urgent! Cannot run java programme. Pls help!

    1st question:
    I am using JDK 1.3.1_03 on Win2K Server. When I have compiled the java applications, I try to use
    "java <application name>" to run the programme, but an error message "Error occurred during initialization of VM
    java/lang/NoClassDefFoundError: java/lang/Object" come up on the screen. Why is it so? It run normally in the past.
    I have upgraded Windows2K once using the Win2K Server CD recently, is it the cause of the problem?
    How can I solve it? Please help! Thank you!
    2nd question:
    I have installed JDK1.4 Final version recently. However, after I have uninstalled it, it still appear in the Add/Remove Programme list in the control panel. I have tried to install another version of JDK, see if it would replace the JDK1.4,
    but it failed. Why is it so? Now when I go to some websites designed by javascript, the Internet Explorer suddenly closed by itself. How can I solve the problem? Please help! Thank you!

    Hi,
    I got the same problem, 1st question, running the application on win NT. Is there anybady there who can help us!!!??????????

  • Cannot run java program after archive and install

    Hi,
    I am new to this forum and appreciate the help and advice given here.
    Yesterday, I did an archive and install on my system which install 10.4.3. Afterwards, I installed X11 and did the software updates which brought my system back to 10.4.8. It also installed Java 1.3.1, 1.4.2, and 1.5 (J2SE5).
    Prior to the archive and install, I had no problems executing a java program either in the command line in an X11 window or using Eclipse. However, when I try now I get the exception message "Exception in thread "main" java.lang.NoClassDefFoundError:". I checked my CLASSPATH and it's not the problem. I am able to compile, and execute the javadoc command. If I type java -version I get
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
    Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
    Under Eclipse, I am able to see the Java versions under Preferences - Java - Installed JREs but if I go to the Run -> Run As menu, I see (none applicable).
    Thanks for any suggestions to fix this.
    James
    Dual 867MHz G4   Mac OS X (10.4.8)  

    I resolved the issue. I reinstalled XCode and had an issue with one of the files I was testing.

  • Cannot run java

    i am trying to log on to a program called skillcheck.com an assessment website.   when i click on the tab system check to make sure my system is compatible i keep getting the following message...No Java Client available.  My Mac Book Pro is running off of Mac OSX version 10.7.5.  Can anyone help me?

    Go here and read the tutorial: java.sun.com/docs/books/tutorial/. Java is run using command entered from the command/cmd (aka DOS) window. Ther is no graphical user interface or desktop icons.

  • I cannot run Java suddenly.

    Hi,
    geez..I don't know what I did, but now, whenever I try to run a program, e.g. java Test where Test is a class file.
    I would get the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: Test
    seems like my java.lang lib has disappeared?
    I tried reinstall my JDK1.3.1_02, but the problem is still there...I tried to run other class files which worked before..and it gives the same error...
    does anyone know how to fix this problem?
    thanks!!
    Joe

    hi,
    You would get this problem if the current directory is not in the classpath.. add the following line to ur Autoexec.bat (in case of Windows)
    set CLASSPATH=%CLASSPATH%;.
    note: therez a dot at the end, this adds the current directory to the classpath environment variable..
    hope this helpz
    cheerz
    ynkrish

  • Cannot run Java with Firefox

    I have tried anything for 5 hours and nothing works.
    New dell laptop with Windows 8.1 64 bits.
    Firefox version: 37.0a1 (2014-12-05).
    Install Java twice via jxpiinstall.exe and jre-8u25-windows-i586-iftw.exe. 32 bits version.
    Java test page https://www.java.com/en/download/installed.jsp reports that 'java is disabled or not installed'.
    Java console shows that Java is enabled for browsers.
    DOS Command line 'java -version' shows java running.
    I have even put the 'C:\Program Files (x86)\Java\jre1.8.0_25' in the global PATH variable and created a JAVA_HOME variable with this directory.
    I went into regedit and change the rights on all mozilla mozilla.org keys.
    Finally, I downloaded Chrome and it works after some configuration.
    Regards.
    PS: the register process to be able to ask a question is the most impossible (being polite) that I have ever seen.

    Finally, I could find a page to download a previous version.
    I downloaded Firefox Setup 33.1.1.exe and installed it. It immediately donwloaded the right plugins.
    I configured the Java(TM) Platform SE 8 U25 plugin to be always activated and I went to the Java test page https://www.java.com/en/download/installed.jsp and now it works.
    I will try with updated version, but it is clear that this Nightly version has a problem with Windows 8.1

  • Cannot run java application in Win XP

    I worte a java application(a Swing app), I test it and run under win NT, it works fine for me.
    Then I recompile it in my WinXP using j2sdk1.4.1_02, run it in a command prompt, but it does NOT start up the application, I check the window task manager, a java.exe already startup and it eat up 100% CPU of my XP, but the application never been startup.
    My Swing application is not a JApplet but a JFrame.
    Does anyone have the similiar problem?
    Thx in advance
    Henry

    Try adjusting your path settings to stop using the MS VM (did you recently use win update?):
    My Computer->Properties -> Advanced -> Environment Variables
    System Variables -> "Path"
    If it currently starts with:
    %SystemRoot%\system32;...
    change it to:
    .;%JAVA_HOME%\bin;%SystemRoot%\system32;...
    If you haven't set JAVA_HOME, create a new variable like:
    JAVA_HOME = C:\j2sdk1.4.1_02
    Note that using the ".;" before path makes the current dir's executables take prevalence over a same-named executable in a subsequent path.
    Putting "%JAVA_HOME%\bin" before "%SystemRoot%\system32" makes certain that the current java.exe gets used (not Micro$oft's java.exe)
    Try it, hope it helps,
    Georg.

  • Cannot Run Java 1.7 Despite Installing

    For a certain application, I need to use the Java Runtime Environment 1.7. I've installed the latest JRE from Oracle's website. After this, the "Java" control panel that appears says I only have Java 1.7.0_25 installed. However, when I use the "java -version" command in Terminal, it claims I'm using Java 1.6.0_51.
    How can I disable or uninstall the 1.6 JRE, so Terminal will say I'm using 1.7?
    Using the latest version of Mountain Lion.
    Thanks in advance!

    Hello,
      The bug that is causing this error message is fixed in 8u20. Please download the 8u20 EA. When 8u20 is released you will be prompted to install the final version.
    You can find the link to download and more information on java.com:  https://www.java.com/en/download/help/mac_10_10.xml
    -Roger

  • Java script and the new and not improved firefox don't work. Please let me be able to run Java again.

    I use SAP Infoview for work. To modify reports it requires a Java script to run. I had it set up in the previous version of ff to always allow from this specific site and it worked wonderfully. Now, in the new version, despite following all of the instructions from others, I cannot do my work because I cannot run Java script. I can still run it in Safari, but Safari is a last resort for me to use. I prefer Firefox and have all of my links stored there.

    Some sites are not fully compatible with Firefox 4's new HTML5 rendering engine. Can you turn that off and test without it? Here are the steps:
    (1) Open a new tab, then type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the filter box, type or paste '''html5''' and pause while the list is filtered
    (3) Double-click '''html5.parser.enable''' to toggle it to false (it should turn bold).
    Then change back to the SAP tab and reload the page.
    Does that make any difference?

  • WebStart support for Firefox Browser using Java Linux AMD64

    I am trying to setup a Firefox browser to use Java WebStart (jnlp).
    I am running Java Linux (AMD64)
    but I have no <JAVA_HOME/jre/plugins directory and no libjavaplugin_oji.so file with the Java installation.
    1) Can I download libjavaplugin_oji.so plugin somewhere?
    2) Will it work in Java Linux (AMD64)?
    3) Can Java Linux (AMD64) be setup to operate Java WebStart Technology?
    If so, How the h--- do I do it?
    Frustrated
    Newbean

    I have the same problem. Downloaded the 64 bit jre and found no libjavaplugin_oji.so in it.
    Then downloaded the 32 bit jre and did the soft link and still no work.
    Has anyone made the 32 bit jre work on the 64 bit linux?

  • Java.io.IOException: Cannot run program "ant"

    Hi all,
    I'm running a Job in Hudson.
    I build this job from a Hudson Master Server but the job is built in a Hudson Linux Node.
    This is the result:
    Started by user builder
    Building remotely on Linux-Node
    Updating http://150.200.20.200:8000/mvtv_all/DESCOS/MVTVc_D2ph1/branches revision: 17-may-2013 16:01:46 depth:infinity ignoreExternals: false
    At revision 529
    Updating http://150.200.200.200:8000/mvtv_all/DESCOS/KaluModules/branches revision: 17-may-2013 16:01:46 depth:infinity ignoreExternals: false
    At revision 529
    no change for http://159.200.300.20:8000/mvtv_all/DESCOS/MVTVc_D2ph1/branches since the previous build
    no change for http://159.230.300.20:8000/mvtv_all/DESCOS/KaluModules/branches since the previous build
    No emails were triggered.
    [bt] $ ant -file build.xml -DSUBSYSTEM=ALL -DTARGET=makeBuild -DCRLIST= -DOWNER= -DbuildTool.patch.release=$RELEASE -DbuildTool.system=$SYSTEM -DbuildTool.patch.type=$PATCH_TYPE -DbuildTool.subsystem=ALL -DbuildTool.buildRules=pkgBuild -DbuildTool.dynamicView=$WORKSPACE/ALL -DbuildTool.compilationRules=compile -DbuildTool.patch.name=$PATCH_NAME makeBuild
    FATAL: command execution failed.Maybe you need to configure the job to choose one of your Ant installations?
    java.io.IOException: Cannot run program "ant" (in directory "/hudson/buildTool/src/bt"): error=2, No existe el fichero o el directorio
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    at hudson.Proc$LocalProc.<init>(Proc.java:192)
    at hudson.Proc$LocalProc.<init>(Proc.java:164)
    at hudson.Launcher$LocalLauncher.launch(Launcher.java:639)
    at hudson.Launcher$ProcStarter.start(Launcher.java:274)
    at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:794)
    at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:768)
    at hudson.remoting.UserRequest.perform(UserRequest.java:114)
    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
    at hudson.remoting.Request$2.run(Request.java:283)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)
    Caused by: java.io.IOException: error=2, No existe el fichero o el directorio
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
    at java.lang.ProcessImpl.start(ProcessImpl.java:130)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
    ... 15 more
    Do you know something about this issue?
    Thanks and Regards

    No, and this is not the Hudson forums either. But see this error?
    FATAL: command execution failed.Maybe you need to configure the job to choose one of your Ant installations?Try posting that in Google and see what you get. That's basic misery solution research 101. Post the error in Google. 999/1000 times someone has already run into it before. Please learn from their experiences by reading through them.

  • Loss of keyboard focus in Java appl running under linux

    I have a small sample program that replicates my problem. When this program is run a window is created. If you select File->New another instance of the program window is created. Now if you try to go back and bring to front the first window, keyboard focus is not
    transferred when run under linux. You can only type in the second window. The expected behavior does happen in Windows.
    > uname -a
    Linux watson 2.6.20-1.2933.fc6 #1 SMP Mon Mar 19 11:38:26 EDT 2007 i686 i686 i386 GNU/Linux
    java -versionjava version "1.5.0_11"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
    Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)
    javac -versionjavac 1.5.0_11
    import java.awt.event.*;
    import javax.swing.*;
    class SwingWindow extends JFrame {
        SwingWindow() {
         super("SwingWindow");
         JMenuBar menuBar = new JMenuBar();     
            JMenu fileMenu = new JMenu("File");
            JMenuItem newItem = new JMenuItem("New");
            newItem.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent event) {
              SwingWindow.createAndShowGUI();
         fileMenu.add(newItem);
            menuBar.add(fileMenu);
            setJMenuBar(menuBar);
            setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);       
         JTextField text = new JTextField(200);
         getContentPane().add(text);
         pack();
         setSize(700, 275);
        public static void createAndShowGUI() {
            JFrame frame = new SwingWindow();
            frame.setVisible(true);
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

    You can implement the FocusListener interface. When
    the first JFrame gains focus, call
    text.requestFocusInWindow(). I hope this helps.The call requestFocusInWindow is not helping, perhaps even making it worse.
    The problem seems to be that I am in the situation where the call
    KeyboardFocusManager.getCurrentKeyboardFocusManager().getPermanentFocusOwner()
    is returning the expected Component. The problem is that the KeyListener class that is registered with the Component is not being called when a key is being pressed.
    The issue is that I have a component that has the keyboard focus, but the KeyListener class
    is not responding.
    This seems to be a linux only problem which makes it only mysterious.

Maybe you are looking for

  • Load balancing on rac database with single node appsTier

    Hi, Please advice me, I am working on to configure load balancing on appstier, following is my setup and steps I did so far. Host name      Services Clelx062ptlge --     Rac 1 – only database Clelx063ptlge --     Rac 2 – only database Clelx042ptlge -

  • Problem exporting a PDF with Helvetica Neue

    I am using InDesign CS6 on Mac OSX 10.8.4. I have a PDF with Helvetica Neue in it. When I export this file to a PDF my client claims that the text is jumbled and appears to be widely spaced/leaded. I've read it's an issue with Helvetica Neue as a sys

  • How do we declare a date field in the selection screen?

    As an input,so that the user can give a appro date. Thanks in advance. Regards, Shilpa

  • LabVIEW created .DAT file with saving only new data on existing files

    I can successfully create and save a .DAT file using LabView and Diadem.   The save command I am using (in Labview) only overwrites existing files, I would like it to save only the new data from the last save.  Overall I would like to save the data e

  • Bad EPS files

    I'm using InDesign CS2 for Mac. Here's my specs: G5 1.8ghz/4GB RAM OSX 10.3.9 Suitcase Fusion 12.1.7 ID CS2 4.0.5 My problem is that most times when I export an EPS file I get an EPS with nothing in it. It's a transparent box when imported. It won't