LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-25-2008, 10:38 AM   #1
vicky7038
LQ Newbie
 
Registered: Aug 2008
Posts: 18

Rep: Reputation: 0
Question java not working in fedora-9


hi friends i m using fedora-9.i have installed jdk1.5 in it ans set up path variable in /etc/profile.bt the problm is that when i tried to run my swing program in it it gives error like libXxT.so is not found bt i havnt delete any file in jdk directory since i hav installed it.
bt command javac is working and program compiles successfully.

Another problem is that i hav used apache tomcat for my servlet programs but when i start the tomcat server from bin directory of tomcat with startup.sh command then it gives error like ./catalina.sh not found.bt it is there in te bin directory of tomcat and i hav set up environment variable CATALINA_HOME and JAVA_HOME and CLASSPATH in /etc/proofile thn still it gives error.

wht can i do to solve this errors???

First let me know that i hav to start my feodora by passing kernel parameters as "noapic" otherwise it gives Bios bug:and says timer not connectd to IOAPIC

plz help me to solve these problem.
 
Old 10-25-2008, 11:09 AM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
Quote:
Originally Posted by vicky7038 View Post
hi friends i m using fedora-9.i have installed jdk1.5 in it ans set up path variable in /etc/profile.bt the problm is that when i tried to run my swing program in it it gives error like libXxT.so is not found bt i havnt delete any file in jdk directory since i hav installed it.
bt command javac is working and program compiles successfully.

Another problem is that i hav used apache tomcat for my servlet programs but when i start the tomcat server from bin directory of tomcat with startup.sh command then it gives error like ./catalina.sh not found.bt it is there in te bin directory of tomcat and i hav set up environment variable CATALINA_HOME and JAVA_HOME and CLASSPATH in /etc/proofile thn still it gives error.

wht can i do to solve this errors???

First let me know that i hav to start my feodora by passing kernel parameters as "noapic" otherwise it gives Bios bug:and says timer not connectd to IOAPIC

plz help me to solve these problem.
What is the output of:

java -version

You might want to copy and paste error messages from now on. Saying you get some "error like x" is not really helpful.

-X
 
Old 10-25-2008, 12:09 PM   #3
vicky7038
LQ Newbie
 
Registered: Aug 2008
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Mega Man X View Post
What is the output of:

java -version

You might want to copy and paste error messages from now on. Saying you get some "error like x" is not really helpful.

-X
it works
and gives java vestion 1.5.0.
thts message bt gives error while running nt even at compiling time
javac works proper
bt whn using java specially for swing prog it gives error
 
Old 10-25-2008, 05:26 PM   #4
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
Quote:
Originally Posted by vicky7038 View Post
it works
and gives java vestion 1.5.0.
thts message bt gives error while running nt even at compiling time
javac works proper
bt whn using java specially for swing prog it gives error
I know the command works, but you are still not copying and pasting the results. This is a copy and paste of my java -version command:

java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)


Copy and paste everything here, including error messages. If you can also post your code, would also be helpful.

I am asking this because the problem could be in one or several different places, like:

- You are using a different compiler or JRE other than Sun's Java (eg: gcj)
- There is an error with your code;
- You are using a newer compiler and trying to run with an older Java RE.

Usually, when you can compile a program fine but can't run a Swing application, it means that you are using gcj. If you had copied and pasted the results of java -version we would've known.

Again, copy and paste everything. There is no such a thing as too much information. If you just say that "it gives an error", we cannot help you.
 
Old 10-26-2008, 02:10 AM   #5
vicky7038
LQ Newbie
 
Registered: Aug 2008
Posts: 18

Original Poster
Rep: Reputation: 0
in java -version command it gives like this:

java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)

and when i run my swing program it gives error msg like this:
>java ftpClient
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/java/jdk1.5.0/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
at java.lang.Runtime.load0(Runtime.java:769)
at java.lang.System.load(System.java:967)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
at java.awt.Component.<clinit>(Component.java:545)


I hav dual boot system and this program run perfectly under windows environment bt in fedora-9 it gives error.

and for tomcat it gives error like this:

[root@localhost bin]# sh startup.sh
Cannot find ./catalina.sh
This file is needed to run this program

bt the file catalina.sh is there in the bin directory of tomcat.
wht i can do now to solve this?
plz help me
 
Old 10-26-2008, 03:48 AM   #6
axelfc
Member
 
Registered: Jan 2006
Distribution: ArchLinux
Posts: 175

Rep: Reputation: 34
Quote:
Originally Posted by vicky7038 View Post
and when i run my swing program it gives error msg like this:
>java ftpClient
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/java/jdk1.5.0/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory
It seems you don't have libXext installed. Install it by typing:

su -c 'yum install libXext'

and tell us if this solved your problem.
 
Old 10-27-2008, 07:24 AM   #7
vicky7038
LQ Newbie
 
Registered: Aug 2008
Posts: 18

Original Poster
Rep: Reputation: 0
i have also tried that command and it gives message like this:

yum install libXext
Loaded plugins: refresh-packagekit
Existing lock /var/run/yum.pid: another copy is running as pid 2581.
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Setting up Install Process
Parsing package install arguments
Package libXext-1.0.4-1.fc9.x86_64 already installed and latest version
Nothing to do
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why is Scanner class of java not working on fedora 7 malayletsrock Programming 13 07-16-2008 07:38 AM
Java Plugin not working - Iceweasel 2.0.0.3, Java RE 1.6.0.01 Brian Ryans Linux - Software 7 05-11-2007 02:40 PM
Java/Firefox java plugin not working with HP Webjetadmin iamskykid Linux - Software 2 03-02-2006 02:38 PM
Fedora 2 Mozilla flash/java not working delphipgmr Linux - Newbie 8 11-09-2004 02:29 PM
Web start java not working (java works fine) powadha Debian 5 06-05-2004 12:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration