Hello Experts, iam running a client server program in all operating system since java is platform independent thats why i have choosen to program in that it is working fine in windows and unix but when iam running in the linux it is showing java.lang.UnsatisfiedLinkError with following statements
as i have never encountered this exception previously i didnt understand what exactly the problem please help me please tell what it exactly represents iam just using normal java swing applications which comes in awt package because it is working in unix and windows but only in linux it is causing problem and also iam uisng 64 bit machine of linux whether this matter whether i should use 32 bit please help me, please give me some clear idea of above all. Thanks in advance.
SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
Joined: Nov 16, 2006
thank you for your quick reply, please can you tell me how can i know that GNU is installed here not the suns JRE is there any way, and also how to install this JRE in lnux as iam new to linux please experts help me.
vin, you are using GNU Java. Install Sun Java instead.
Henry and I have already suggested that you install Sun Java. How to do that exactly depends on what Linux distribution you are using. It looks like you are using Red Hat Linux (probably Fedora or RHEL). Lookup in the documentation of your Linux distribution how to install Java using the package management system.
There are 2 ways to install Sun Java on Red Hat/Fedora. One is via an RPM, the other is using the generic ".bin" install, which works for all Linux systems. The only thing special that the RPM does is:
1. Installs the JDK as a subdirectory tree under /usr/java 2. Makes a note in the RPM database that you've installed that particular package.
Other than the above, an install from the bin or an install from an RPM give exactly the same results. I recommend that if you do install from the bin, you move the installed JDK under /usr/java (you may have to create this directory). I like keeping my JVMs and JDKs in a common location - makes them easier to keep up with.
Modern-day releases of Fedora and Ubuntu Linux install gcj as part of the default install, and they wired it in using the Debian "alternatives" system. if you do a "ls -l /usr/bin/java", you can see part of that mechanism.
You can tell the alternatives system to use other Java implementations, though it's not pretty. However, many of the J2EE systems reference an environment variable named JAVA_HOME, so a good way to handle this is to put something like the following in your ".bash_profile":
I'm setting up environments for Maven and Ant at the same time. You don't have to go that far if you don't want to.
Customer surveys are for companies who didn't pay proper attention to begin with.