Java on fedora

I am new user on fedora (release: 8 codename: werewolf kernel linux 2.6.23.1-42.fc8 GNOME 2.20.1),
while doing java program got error,
[COLOR="Blue"]Error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: HelloWorld : Unsupported major.minor version 51.0
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClass(ClassLoader.java:638)
     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:143)
     at java.net.URLClassLoader.defineClass(URLClassLoader.java:281)
     at java.net.URLClassLoader.access$000(URLClassLoader.java:74)
     at java.net.URLClassLoader$1.run(URLClassLoader.java:216)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(URLClassLoader.java:209)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:324)
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:269)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:337)
Error: Could not find the main class.
Error: A JNI error has occurred, please check your installation and try again
[COLOR]
[COLOR="RoyalBlue"]program:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World");
[COLOR]
this error is there in other programs also,and i am using eclipse editor .
please tell me what is wrong.

EJP wrote:
You are trying to run classes that were compiled with a later JDK than the JDK or JRE you have installed.Perhaps it is worth mentioning that this is only true for the major version. You cannot run classes compiled for Java 6 under a Java 5 runtime, but you can run classes compiled under Java 6 update 30 on a Java 6 update 16 runtime.

Similar Messages

  • Java In Fedora Core 5 - Install Problems

    Hello guys
    (sorry for my grammar)
    i am in a hell now with java and Fedora Core 5
    i used to work with java and fc3,fc4
    without problems
    in this sentide, when i did the instalation of Linux FC(3-4)
    always Fedora install its own Java, for example
    java-1.4.2-gcj-compat-1.4.2.0-40jpp_31rh (for fc4)
    if i execute this command "which java" <---
    show this ---> /usr/bin/java
    and
    [XXX@localhost ~]$ java -version (<---- for FC5)
    java version "1.4.2"
    gij (GNU libgcj) version 4.1.0 20060304 (Red Hat 4.1.0-3)
    Copyright (C) 2006 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    [Section1@localhost ~]$
    so the problem is that (FC3-4-5) never use my jdk1.5_01 already installed (jdk of SUN)
    jdk-1_5_0_01-linux-i586.bin,and inclusive, if i put the path bin of java in the .bash_profile always use its own Java1.4.2, so to avoid this problem
    , i show the Java's package installed by the FCx and i proceed to uninstall
    (example in FC4)
    rpm -e openoffice.org-javafilter-1.9.104-2
    rpm -e --nodeps gcc-java java
    rpm -e --nodeps gcc-java java-1.4.2
    rpm -e --nodeps gcc-java java-1.4.2-gcj-compat-1.4.2.0-40jpp_31rh
    well when i did this uninstall in FC5,sadly this erase for complete the OpenOffice and other Dependences (this behaviour never happened in FC4 - so the OpenOffice still in the OS),now in
    FC5 in the uninstall process of packages check ALL dependences related and uninstall too.
    i did my own research in google and forums, and the best solution can be this
    http://www.fedorafaq.org/#java
    , well i prefer my solution, less complicated and easier, but no work in FC5,
    am i doom to follow these steps???
    i always work with jdk1.5 update 1 , and the rpm of the other solution is 7, i want to avoid
    versions problems
    so please help me
    the most obvious posible solution, is make some configuration, without uninstall
    "java version "1.4.2" gij (GNU libgcj)" to work with my path for jdk 1.5 bin
    so , how i can do this???, and what happened if i want use other java
    version and in need change the path info??
    pls, help me
    thanks for advanced.

    I am trying to install Sun JSDK Update 8 RPM on Fedora 5. There is a segmentation fault error during installation
    Do you agree to the above license terms? [yes or no]
    yes
    Unpacking...
    Checksumming...
    0
    0
    Extracting...
    UnZipSFX 5.42 of 14 January 2001, by Info-ZIP ([email protected]).
    inflating: jdk-1_5_0_08-linux-i586.rpm
    Preparing... ########################################### [100%]
    1:jdk ########################################### [100%]
    /var/tmp/rpm-tmp.12735: line 357: 14885 Segmentation fault /usr/java/jdk1.5.0_08/bin/java -client -Xshare:dump >/dev/null 2>&1
    Done.
    When try to run the java
    [root@localhost bin]# cd /usr/java/jdk1.5.0_08/bin
    [root@localhost bin]# ./java
    Segmentation fault
    Following is the information of the fedora
    [root@localhost bin]# uname -a
    Linux localhost.localdomain 2.6.15-1.2054_FC5 #1 Tue Mar 14 15:48:33 EST 2006 i686 i686 i386 GNU/Linux
    Please Help!

  • Is there a bug with Java on Fedora 8?

    Hi all,
    Sample this:
    [root@skunk Desktop]# java -version
    java version "1.6.0_03"
    Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
    Java HotSpot(TM) Server VM (build 1.6.0_03-b05, mixed mode)
    [root@skunk Desktop]# javaws visionLAN2.jnlp
    [root@skunk Desktop]# java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
    [root@skunk Desktop]#Thats what I get when I try running the mentioned file via javaws on a FC8 machine.
    What does xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' mean? And what is the workaround?

    After sticking it in Google,
    the first hit suggests it will be fixed in 6u10(b09)
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373
    which might be a while away.
    The latest early adopter JDK 7 should have the fix but might have other issues.

  • Set classpath for java in fedora core 1?

    i am new to programming java on linux and im having trouble finding out how to set classpath in the shell, permenently. i have the sdk installed and tried the usual "hello world" test and failed. the response i would get a message telling me javac is not a bash command. i have no clue how to set classpaths in linux so i would much appreciate it if someone would show me thanks

    Ok, there is two ways to achieve this. Either by setting it globally for all the user, or only for your self. If you are working on your own station and have super user access, you can set it up for all th eusers, if not, just set it for your self. How ??
    for all the users, modify the file /etc/profile and include this:
    PATH=$PATH:/path/to/jdk/bin:.
    CLASSPATH=$CLASSPATH:/path/to/jdk/lib/tools.jar:/path/to/jdk/lib/rt.jar
    export PATH CLASSPATH
    If you want to add it only for ur self then, modify the lsame line in ~/.bash_profile
    hope this helps

  • Java ThreadPool Example

    Some people asked at this forum: "How to write Java Threadpool?" Here is an example, which I have tested on the computer with two CPU. This example also runs well with J#.
    TPTest.java
    package demo.test;
    import java.io.File;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.io.PrintStream;
    import java.util.Calendar;
    import thread.util.ThreadPool;
    class ShutdownHook extends Thread {
        public void run() {
            try {
                MyRunnable.fout.flush();
                Thread.sleep(1000);
                MyRunnable.fout.close();
            catch (Exception e) {
                e.printStackTrace();
    class MyRunnable implements Runnable {
        public static File file;
        public static FileWriter fout;
         public static PrintStream out;
        static {
            try {
                file = new File(".\\ThreadPool.log");
                fout = new FileWriter(file);
                   out = System.out;
                //Uncomment the next line in J#
                //Runtime.getRuntime().runFinalizersOnExit(true);
                //Comment the next line in J#
                Runtime.getRuntime().addShutdownHook(new ShutdownHook());
            catch (IOException e) {
                e.printStackTrace();
        static int n = 0;
        int i;
        public MyRunnable(int i) {
            this.i = i;
        public void run() {
            try {
                synchronized(fout) {
                    n++;
                    fout.write("Sample No." + n + "\t" + Calendar.getInstance().getTime().getMinutes() + ":" +
                    Calendar.getInstance().getTime().getSeconds() + ":" +
                    Calendar.getInstance().get(Calendar.MILLISECOND) +  
                    ":" + "Executed: " + this + Thread.currentThread() + "\r\n");
                        out.println("Sample No." + n + "\t" + Calendar.getInstance().getTime().getMinutes() + ":" +
                    Calendar.getInstance().getTime().getSeconds() + ":" +
                    Calendar.getInstance().get(Calendar.MILLISECOND) +  
                    ":" + "Executed: " + this + Thread.currentThread());
            catch (IOException e) {
                e.printStackTrace();
            synchronized(this) {
                notify();
        public String toString() {
            return "Task No." + i;
    public class TPTest {
        public static void main(String[] args) {
            ThreadPool thp = new ThreadPool(100);
            int count = 10000;
            for (int i = 0; i < count; i++) {
                if(i == count - 1)
                    // Wait for the last Invoke
                    ThreadPool.invokeAndWait(thp, new MyRunnable(i));
                else
                    ThreadPool.invokeLater(thp, new MyRunnable(i));
            try {
                MyRunnable.fout.flush();
                MyRunnable.fout.close();
            }catch(Exception e) {
            System.exit(0);
    Queue.java
    package thread.util;
    import java.util.Enumeration;
    class NoSuchElementException extends RuntimeException {
        public NoSuchElementException() {
            super();
        public NoSuchElementException(String s) {
            super(s);
    class QueueElement {
        QueueElement next = null;
        QueueElement prev = null;
        Object obj = null;
        QueueElement(Object obj) {
            this.obj = obj;
        public String toString() {
            return "QueueElement[obj="
                + obj
                + (prev == null ? " null" : " prev")
                + (next == null ? " null" : " next")
                + "]";
    final class LIFOQueueEnumerator implements Enumeration {
        Queue queue;
        QueueElement cursor;
        LIFOQueueEnumerator(Queue q) {
            queue = q;
            cursor = q.head;
        public boolean hasMoreElements() {
            return (cursor != null);
        public Object nextElement() {
            synchronized (queue) {
                if (cursor != null) {
                    QueueElement result = cursor;
                    cursor = cursor.next;
                    return result.obj;
            throw new NoSuchElementException("NoSuchElement");
    final class FIFOQueueEnumerator implements Enumeration {
        Queue queue;
        QueueElement cursor;
        FIFOQueueEnumerator(Queue q) {
            queue = q;
            cursor = q.tail;
        public boolean hasMoreElements() {
            return (cursor != null);
        public Object nextElement() {
            synchronized (queue) {
                if (cursor != null) {
                    QueueElement result = cursor;
                    cursor = cursor.prev;
                    return result.obj;
            throw new NoSuchElementException("FIFOQueueEnumerator");
    public class Queue {
        int length = 0;
        QueueElement head = null;
        QueueElement tail = null;
        public Queue() {
        public synchronized void enqueue(Object obj) {
            QueueElement newElt = new QueueElement(obj);
            if (head == null) {
                head = newElt;
                tail = newElt;
                length = 1;
            else {
                newElt.next = head;
                head.prev = newElt;
                head = newElt;
                length++;
        public synchronized Object dequeue() {
            QueueElement elt = tail;
            tail = elt.prev;
            if (tail == null) {
                head = null;
            else {
                tail.next = null;
            length--;
            return elt.obj;
        public synchronized boolean isEmpty() {
            return (tail == null);
        public final synchronized Enumeration elements() {
            return new LIFOQueueEnumerator(this);
        public final synchronized Enumeration reverseElements() {
            return new FIFOQueueEnumerator(this);
        public synchronized void dump(String msg) {
            System.err.println(">> " + msg);
            System.err.println(
                    + length
                    + " elt(s); head = "
                    + (head == null ? "null" : (head.obj) + "")
                    + " tail = "
                    + (tail == null ? "null" : (tail.obj) + ""));
            QueueElement cursor = head;
            QueueElement last = null;
            while (cursor != null) {
                System.err.println("  " + cursor);
                last = cursor;
                cursor = cursor.next;
            if (last != tail) {
                System.err.println("  tail != last: " + tail + ", " + last);
            System.err.println("]");
    QueueException.java
    package thread.util;
    public class QueueException extends RuntimeException {
    ThreadPool.java
    package thread.util;
    * A thread pool with a bounded task queue and fixed number of worker threads.
    public class ThreadPool {
        public static ThreadPool currentThreadPool = null;
        public Queue queue;
        public ThreadPool(int threads) {
            queue = new Queue();
            /* create the worker threads */
            for (int i = 0; i < threads; ++i) {
                Thread t = new Thread(new WorkerThread(), "WorkerThread: " + (i + 1));
                t.setDaemon(true);
                t.start();
         * Queues a task to be executed by this ThreadPool. If the task queue is
         * full, the task will run in the calling thread. (Could easily be modified
         * to throw an exception instead.)
        public void doTask(Runnable task) {
            synchronized (queue) {
                queue.enqueue(task);
                queue.notify();
         * Tests if the task queue is empty.  Useful if you want to wait for all
         * queued tasks to complete before terminating your program.
        public boolean queueEmpty() {
            synchronized (queue) {
                return queue.isEmpty();
        private class WorkerThread implements Runnable {
            public void run() {
                Runnable task;
                while (true) {
                    task = null;
                    synchronized (queue) {
                        try {
                            if (queue.isEmpty()) {
                                queue.wait();
                            else {
                                task = (Runnable)queue.dequeue();
                        catch (InterruptedException e) {
                            break;
                    if (task != null) {
                        task.run();
        } /* end inner class WorkerThread */
        public static void invokeLater(ThreadPool thp, Runnable task) {
            thp.doTask(task);
        public static void invokeAndWait(ThreadPool thp, Runnable task) {
            TaskWrapper tw = new TaskWrapper(task);
            synchronized(tw.task) {
                try {
                    thp.doTask(tw);
                    tw.task.wait();
                catch (InterruptedException e) {
                tw = null;
        public static void invokeLater(Runnable task) {
            if(ThreadPool.currentThreadPool == null) {
                ThreadPool.currentThreadPool = new ThreadPool(20);
            ThreadPool.currentThreadPool.doTask(task);
        public static void invokeAndWait(Runnable task) {
            if(ThreadPool.currentThreadPool == null) {
                ThreadPool.currentThreadPool = new ThreadPool(20);
            TaskWrapper tw = new TaskWrapper(task);
            synchronized(tw.task) {
                try {
                    ThreadPool.currentThreadPool.doTask(tw);
                    tw.task.wait();
                catch (InterruptedException e) {
                tw = null;
    } /* end class ThreadPool */
    class TaskWrapper implements Runnable {
        public Runnable task;
        public TaskWrapper(Runnable task) {
            this.task = task;
        public void run() {
            synchronized(task) {
                task.run();
                task.notify();

    Thanks for the example. I was wondering how to do this.
    I am running it right now on Fedora Linux.
    When I run the demo TPTest.java
    as written
    ThreadPool thp = new ThreadPool(100);
    int count = 10000;
    I get and error at the very end of the run like this :
    Sample No.10000     32:36:289:Executed: Task No.652Thread[WorkerThread: 10,5,main]
    java.io.IOException: Stream closed
         at sun.nio.cs.StreamEncoder.ensureOpen(StreamEncoder.java:38)
         at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:151)
         at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
         at demo.test.ShutdownHook.run(TPTest.java:14)
    Is this correct behaviour?
    General this the only error I see. If I start changing the count and Threadpool size to
    other combinations, I occasionally get other errors similar to this one as well.
    java.io.IOException: Stream closed
         at sun.nio.cs.StreamEncoder.ensureOpen(StreamEncoder.java:38)
         at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:129)
         at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:146)
         at java.io.OutputStreamWriter.write(OutputStreamWriter.java:204)
         at java.io.Writer.write(Writer.java:126)
         at demo.test.MyRunnable.run(TPTest.java:53)
         at thread.util.ThreadPool$WorkerThread.run(ThreadPool.java:58)
         at java.lang.Thread.run(Thread.java:534)
    Is there a way to increase thread size with java on Fedora Linux (Core 3)?
    Would like to know. This example was interesting to me because I am trying to push
    the limit for load testing purposes.
    Thanks again for the example. Let me know if you have any updates to this one.

  • Error in Java compilation in linux..

    Hello Friends.,
    I am a Newbie.. I have sun Java in Fedora 8.. I am new to Java World too..
    My java prog name is parsetrace.java.,
    public class name is also same..
    when i type
    [maran@fedora8 works]$ javac parsetrace.java
    No error is reported.. but when i try to run
    [maran@fedora8 works]$ java parsetrace
    the following error comes whats wrong??????
    Exception in thread "main" java.lang.NoClassDefFoundError: parsetrace (wrong name: javaapplication1/parsetrace)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    [maran@fedora8 works]$

    Exception in thread "main" java.lang.NoClassDefFoundError: parsetrace (wrong name: javaapplication1/parsetrace)You have this line at the start of your parsetrace.java filepackage javaapplication1;But when you attempt to run the class you use the name parsetrace rather than the correct name of the class which is javaapplication1.parsetrace
    Unless you understand packages and the need for class files to be in a particular directory, I suggest you remove the package line and recompile.

  • Installing Java in Linux

    How to install java in Fedora linux?

    sudo apt-get install sun-java6-jdk
    in your console ...
    or simply try and google
    how to install java in fedora

  • Install jdk-1_5_0_08 on fedora 5,64 bit cpu

    hii,
    I am installing java on fedora 5, i am doing these steps, and i got errors, please tell me if i missed any steps:
    1- ./jdk-1_5_0_08-linux-amd64-rpm.bin: run this command in the terminal in the same directory where the bin file exists.
    everything is done successfully. i set the JAVA_HOME in the bash profile file.
    2-when i trying to install the java-1.5.0-sun-compat-1.5.0.08-1jpp.src.rpm, by ruuning this command: rpmbuild --rebuild java-1.5.0-sun-compat-1.5.0.08-1jpp.src.rpm, i got the following errors in the terminal:
    RPM build errors:
    user scop does not exist - using root
    group scop does not exist - using root
    user scop does not exist - using root
    group scop does not exist - using root
    user scop does not exist - using root
    group scop does not exist - using root
    File not found: /var/tmp/java-1.5.0-sun-compat-1.5.0.08-1jpp-buildroot/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/lib/security/javaws.policy
    i didnt continue the followed steps when i got this errors.
    please i need help to install the java in my fedora 5 machine.

    First make sure that you are logged in as "root", or use su [root password] to be logged in as.
    And then try all that things again.

  • Fedora 13: After upgrading from FF3.6 to FF6.0.2 I no longer have a Java plugin. How do I configure the Java Plugin for FF 6 ? There is no Java Plugin at the site

    I am Fedora 13x64 bit. I just installed FF v6.0.2 from the FF download site. I backed up the existing FF 3.6 as firefox_old
    I need to have a Java plugin to access company site, how do I configure the Java Plugin ?
    At the Plugin area in FF6 there is no Java Plugin available, even after a search.
    I have Java 1.6.0 installed in the OS at:
    /usr/lib/jvm/java-1.6.0/jre/lib/amd64/libnpjp2.so
    I googled how to configure Java Plugin for FF 6 for Fedora 13 and the trick was to create a soft link from /home/<userID>/.mozilla/plugins to the above libnpjp2.so

    AVtech wrote:
    . . . If a person can't get an answer here I don't know where else to turn since Sun certainly wouldn't offer tech support for a free product . . .These forums are user forums, and only occasionally visited by Sun employees. Sun does provide Java technical support options, although (of course) at a charge.
    See:
    http://developers.sun.com/services/
    . . . I guess we'll just use JRE 5 until it's unsupported, whenever that will be. I'm still waiting for an answer on that question, too. See:
    http://java.sun.com/products/archive/eol.policy.html
    http://www.sun.com/service/eosl/
    This document (part IV and Appendix) has some debugging and troubleshooting information that may allow someone involved in the problem to resolve the cause:
    See:
    http://java.sun.com/javase/6/docs/technotes/guides/plugin/developer_guide/contents.htm
    Any steps that you can take to isolate the problem to specific Java versions, browsers, applets, web sites, operating systems (and versions), etc, would enhance the possibility of getting help.
    You can try the applets at this Sun location and see if any of them are "slow".
    See:
    http://java.sun.com/javase/6/docs/technotes/samples/demos.html

  • Sun Java Studio Standard 5 installation problem on Fedora C2

    Hi,
    I've downloaded the trial version of Java Studio Standard 5 IDE and have bypassed the version hooks to load it on Fedora Core 2. It's get past the questions but hangs after pressing "Next" on the "Select the components" page. Any solutions, I don't want to hear, use Java Desktop or Redhat 7.2, I don't like Java Desktop and I'm not going back to a unsupported Redhat OS.
    I'm working with Chemeketa Com. College and trying to demostrate a IDE tool that supports Web Services. Please suggest a solution, maybe selecting another IDE.
    Thanks
    Rick

    Refer to this thread for possible solution:
    http://swforum.sun.com/jive/thread.jspa?forumID=78&threadID=20077

  • Javax.sound missing with Fedora Core 3 linux's java compiler?

    I'm running Fedora core 3, and I did a complete install(selected all the packeges). I have the java compiler that FC3 installed. I can compile most things, but I seem to be missing the sound package/folder.
    This leads to an error when I try to import the sound libraries.
    //start code
    //simple non-working example
    import javax.sound.*;
    class sounds
    //end code
    results in the error "The import javax.sound cannot be resolved"
    I am trying to run a code snippet from javaAlmanac, and of course it won't work. Today, a friend of mine had the exact same problem on a windows machine using JDK 1.5.
    I'm going to test this code out on a windows machine also.
    Are there issues with the FC3 java compiler?
    Has anyone else run into and solved this issue?
    I'm considering copying the sound folder from some other Java installation, anyone try this?
    Thanks,

    I'm pretty new at this myself. I've also installed Fedora Core 3 on an AMD 64. When I do the same uname - a I get:
    Linux localhost.localdomain 2.6.9-1.667 #1 Tue Nov 2 14:50:10 EST 2004 x86_64 x8 6_64 x86_64 GNU/Linux
    Maybe you didn't install as 64 bit ?
    I've also successfully installed Jave Runtime Environment. java -version gets me:
    java version "1.4.2_08"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
    I'd suggest installing 32 bit. I can't tell the difference when I run programmes that use 64 or 32 bits - it will be just as good.
    Eurostar

  • Unable to Verify Sun Microsystems' (Bought over by Oracle) Java 6 Update 21 Plugin in Firefox 4.0 Beta 3 in Fedora 11 x86_64 64-bit Linux Operating System

    My Fedora 11 Linux operating system is 64-bit (currently running standard Fedora kernel, NOT Xen pv-ops Dom0 kernel)
    My Firefox 4.0 Beta 3 web browser (above Firefox 3.6.8 already) is 32-bit.
    My Sun Java 6 Update 21 Plugin is also 32-bit.
    In about:plugins in Firefox, I get:
    Java(TM) Plug-in 1.6.0_21
    File: libnpjp2.so
    Version:
    The next generation Java <http://java.sun.com> plug-in for Mozilla
    browsers.
    MIME Type Description Suffixes
    application/x-java-vm Java^(TM) Plug-in
    application/x-java-applet Java^(TM) Plug-in Applet
    application/x-java-applet;version=1.1 Java^(TM) Plug-in
    application/x-java-applet;version=1.1.1 Java^(TM) Plug-in
    application/x-java-applet;version=1.1.2 Java^(TM) Plug-in
    application/x-java-applet;version=1.1.3 Java^(TM) Plug-in
    application/x-java-applet;version=1.2 Java^(TM) Plug-in
    application/x-java-applet;version=1.2.1 Java^(TM) Plug-in
    application/x-java-applet;version=1.2.2 Java^(TM) Plug-in
    application/x-java-applet;version=1.3 Java^(TM) Plug-in
    application/x-java-applet;version=1.3.1 Java^(TM) Plug-in
    application/x-java-applet;version=1.4 Java^(TM) Plug-in
    application/x-java-applet;version=1.4.1 Java^(TM) Plug-in
    application/x-java-applet;version=1.4.2 Java^(TM) Plug-in
    application/x-java-applet;version=1.5 Java^(TM) Plug-in
    application/x-java-applet;version=1.6 Java^(TM) Plug-in
    application/x-java-applet;jpi-version=1.6.0_21 Java^(TM) Plug-in
    application/x-java-bean Java^(TM) Plug-in JavaBeans
    application/x-java-bean;version=1.1 Java^(TM) Plug-in
    application/x-java-bean;version=1.1.1 Java^(TM) Plug-in
    application/x-java-bean;version=1.1.2 Java^(TM) Plug-in
    application/x-java-bean;version=1.1.3 Java^(TM) Plug-in
    application/x-java-bean;version=1.2 Java^(TM) Plug-in
    application/x-java-bean;version=1.2.1 Java^(TM) Plug-in
    application/x-java-bean;version=1.2.2 Java^(TM) Plug-in
    application/x-java-bean;version=1.3 Java^(TM) Plug-in
    application/x-java-bean;version=1.3.1 Java^(TM) Plug-in
    application/x-java-bean;version=1.4 Java^(TM) Plug-in
    application/x-java-bean;version=1.4.1 Java^(TM) Plug-in
    application/x-java-bean;version=1.4.2 Java^(TM) Plug-in
    application/x-java-bean;version=1.5 Java^(TM) Plug-in
    application/x-java-bean;version=1.6 Java^(TM) Plug-in
    application/x-java-bean;jpi-version=1.6.0_21 Java^(TM) Plug-in
    All properly installed.
    But, when I go to verify Java version, by clicking on the following internet link:
    http://www.java.com/en/download/installed.jsp
    I get "Error. Click for details".
    Here is the Java Console output detailing the error:
    Java Plug-in 1.6.0_21
    Using JRE version 1.6.0_21-b06 Java HotSpot(TM) Server VM
    User home directory = /home/enming
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class testvm2/Main.class not found.
    java.lang.ClassNotFoundException: testvm2.Main.class
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at
    sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown
    Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.UnknownHostException: www.java.com
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.<init>(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at
    sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown
    Source)
    at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
    at
    sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at java.net.HttpURLConnection.getResponseCode(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 9 more
    Exception: java.lang.ClassNotFoundException: testvm2.Main.class
    What's going on? And what's wrong?
    Yours sincerely,
    Mr. Teo En Ming (Zhang Enming)
    Citizenship: Singapore Citizen/Singaporean
    Facebook account:http://www.facebook.com/profile.php?id=100000750083982
    Location: Bedok Reservoir Road, Singapore 470103
    My Open Letter (Plea for Medical Help/Assistance) to World Leaders:
    http://lists.fedoraproject.org/pipermail/users/2010-August/380213.html

    There's nothing about Java connection settings and Java Control Panel in the link you have supplied.
    http://java.sun.com/javase/6/webnotes/install/jcp.html

  • Java 5 is VERY slow on Linux Fedora core3

    Why Java is 10-15 times slower on Fedora Linux, in comparising to Windows XP?
    I have two identical PC (dual Pentuim3 1Gh, 1.5Gig memory).
    Java version - JDK 1.5.0_03
    For testing, I run simple java program:
    /// Start LoadTest.Java
    import java.util.*;
    public class LoadTest {
    public static void main(String[] args)
    Date startDate = new Date();
    int repeat = 1000;
    HashMap map = new HashMap();
    for(int i=0; i<repeat; i++) {
    //System.out.println(i);
    ArrayList list = new ArrayList();
    long lval = (new Date()).getTime() / startDate.getTime() + ((new Date()).getTime() * startDate.getTime()) - startDate.getTime();
    String sval = Long.toString(lval);
    Long LValue = Long.valueOf( sval ).longValue();
    map.put(LValue, sval);
    String keyset = map.keySet().toString();
    list.add(0,keyset);
    list.addAll(map.values());
    for (Iterator iter = map.keySet().iterator(); iter.hasNext(); ) {
    Long lv = (Long) iter.next();
    String sv = (String) map.get(lv);
    list.add(sv);
    keyset = map.keySet().toString();
    list.add(0,keyset);
    Date endDate = new Date();
    String message = " LoadTest: " + repeat + " repetitions. Total Time: " + (endDate.getTime() - startDate.getTime());
    System.out.println(message);
    /// End LoadTest.Java
    It takes 300ms to run it on Windows and 3900ms - on Linux
    Can somebody help me?
    Shall I consider to use Windows on the web-server?
    Thanks.

    I know, it's just dirty, ugly test, but WHY WinXP handles it better?
    Actually, I did this best after I get som test results for my application.
    I't uses JBoss4.1/Tomcat5 on JDK 1.5_03. I used JMeter to test it and get some strange results - to test throughput rate on plain JSP pages, like login page (without any EJB) , Linux performs 10 times slower (for 100 requests, 24/min on Linux and 240/min on Windows). To test EJB, which retrieving datasets from database, the difference is about 3 times. Linux - FedoraCore 3 (2.6.11)
    That's why I started testing Java itself. BTW, if make this test a little "pretty" - no memory allocations in loop, less using arraylists and maps, the performance difference about 3 times or even less, if to put Thread.sleep(1) in the loop.
    Now, I have to figure out, which paltform to use for our web-application, but I'm confused.
    BTW, which app.server did you use? May be JBoss is not the best solution? The application should handle about 200 users, most of them almost simultaneously.
    Thanks

  • Fedora Core 3, AMD64, & Java

    I have installed Fedora Core 3 on an AMD 64 Athlon processor. I have successfully installed the 32-bit JRE, but I get the following error when I try to install the 64-bit JRE:
    Do you agree to the above license terms? [yes or no]
    yes
    Unpacking...
    Checksumming...
    0
    0
    Extracting...
    ./jre-1_5_0-linux-amd64-rpm.bin: line 263: ./install.sfx.25726: cannot execute binary file
    I've downloaded several installation scripts from java.sun.com, java.net, and blackdown.org, but I get the same error with all of them. I've found a few references to this error and it usually results from running the wrong installation script for the platform. I doublechecked that in all cases I had the installation script for Linux with AMD64.
    I pretty much chose all the defaults on the installation of Fedora Core 3 (I installed "text-only internet" - no GUI desktop). Was there something I missed to enable 64-bit processing? Or, is there something I need to tweak in the installation script? Are there 64-bit Linux JRE/JDK RPMs available that are not in self-extracting archives (I couldn't find one - not sure if it would help)?
    Here's what I get from `uname -a` (apu is the host name):
    Linux apu 2.6.9-1.667 #1 Tue Nov 2 14:41:25 EST 2004 i686 athlon i386 GNU/Linux
    Is there some other way I can check that 64-bit processing is available and enabled?
    Thanks,
    Philip

    I'm pretty new at this myself. I've also installed Fedora Core 3 on an AMD 64. When I do the same uname - a I get:
    Linux localhost.localdomain 2.6.9-1.667 #1 Tue Nov 2 14:50:10 EST 2004 x86_64 x8 6_64 x86_64 GNU/Linux
    Maybe you didn't install as 64 bit ?
    I've also successfully installed Jave Runtime Environment. java -version gets me:
    java version "1.4.2_08"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
    I'd suggest installing 32 bit. I can't tell the difference when I run programmes that use 64 or 32 bits - it will be just as good.
    Eurostar

  • Install Sun Java Web System on Fedora / Registering in Netbeans

    Hi,
    I am trying to install Sun Java System Webserver onto Fedora 64 bit - I am not bothered about running a server locally, I have a development server for testing before deployment - however, I need to get a working install to let Netbeans recognise it as a valid target server. As far as I am aware, all Netbeans needs when deploying to a remote server is some libraries associated with that J2EE server. So first of all I tried just pulling the tree of an installed and working server off another box - however, Netbeans won't play ball.
    When trying to install the server on Fedora I get an error regarding
    /sun/webserver7/lib/libfreebl3.so: version `NSSRAWASH_3.12.3' not found
    Any ideas, if not, any ideas how to 'trick' Netbeans into thinking the server is installed?
    Regards,
    Tom

    Hi,
    Thanks for your replies, so far I have managed to persuade netbeans to recognise the broken install by adding this block to ~/.netbeans/6.5/config/J2EE/InstalledSerers/.nbattrs
    <fileobject name="instance">
    <attr name="LocalServer" stringvalue="true"/>
    <attr name="SSLAdminPort" stringvalue="true"/>
    <attr name="configName" stringvalue="tom-desktop"/>
    <attr name="displayName" stringvalue="Sun Java System Web Server 7.0"/>
    <attr name="password" stringvalue="xxxxxxxx"/>
    <attr name="registeredWithoutUI" stringvalue="false"/>
    <attr name="url" stringvalue="[/home/twerner/webserver7]deployer:Sun:WebServer70::localhost:8989"/>
    <attr name="username" stringvalue="admin"/>
    </fileobject>However, it would be good to get the server actually working...
    I am running Fedora 11 - 64 Bit (I like to live dangerously :-))
    I am attempting to do the install using the seperate Web server installer on its own, downloaded direct from Sun's site (v7u5).
    Here is the log file : [http://pastebin.com/f716536d6]
    Installed nss packages:
    nss.i586 3.12.3-4.fc11 @fedora
    nss.x86_64 3.12.3-4.fc11 installed
    nss-mdns.x86_64 0.10-7.fc11 installed
    nss-softokn-freebl.i586 3.12.3-4.fc11 @fedora
    nss-softokn-freebl.x86_64 3.12.3-4.fc11 installed
    nss_ldap.x86_64 264-2.fc11 installed
    Hopefully some of this info is useful,
    Many thanks for your help,
    Tom
    Edited by: tomwerner on Jul 13, 2009 2:09 AM

Maybe you are looking for

  • Publishing single pages in iWeb

    If I publish to a folder in iWeb 2, prior to uploading via ftp, it looks like I have to publish the whole site even if I've only updated one page. Is there a way to merely publish to updates page(s) only? Thanks

  • TS3999 should all my calendars entries be in the cloud?  trying to share calendars between 2 iphones and ipad

    I have 2 iphones and an ipad.  On one of the iphones the calendar entries and not showing up on anything else.  I have checked all the settings and everything looks good - been a headache trying to figure out what is not set up correctly.  I had this

  • Problem in Threads with Netbeans

    java.lang.NoClassDefFoundError: Thread/Controller Caused by: java.lang.ClassNotFoundException: Thread.Controller at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLCl

  • About Function Module customer_update

    Hi SAP Experts, Can anyone explain to me what parameters should I pass to the importing and tables parameters of FM customer_update. But I don't know what values should I pass. I only need to update field SORTL which is only found in KNA1. Thanks in

  • Binary file is too big in size

    Hi, I wrote a simple VI to do playback of sound files and to record signals. It seems to do what I want (although I appreciate general feedback on good programming habits). The bigger issue I have is that the binary file it is saving is way too big i