LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 07-12-2008, 11:24 AM   #1
RAH104
Member
 
Registered: Jun 2008
Posts: 33

Rep: Reputation: 15
Question Java


Hello,

I'm currently trying to install Red5 which requires "java - jdk and sdk". This is a CentOS server.

root@frooler [~]# sh /root/red5/red5.sh
Starting Red5...
/usr/bin/java: line 67: /tmp/javaI31264: Permission denied
/usr/bin/java: line 67: /tmp/javaI31264: Success

root@frooler [~]# java -version
java version "1.4.2"
gcj (GCC) 3.4.6 20060404 (Red Hat 3.4.6-9)
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.


Is something missing and if so what is the easiest way of installing it?

Thanks.
 
Old 07-12-2008, 02:21 PM   #2
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
http://wiki.centos.org/HowTos/JavaOnCentOS

http://www.bulahema.com/en/node/150
 
Old 07-12-2008, 04:29 PM   #3
RAH104
Member
 
Registered: Jun 2008
Posts: 33

Original Poster
Rep: Reputation: 15
OK, I got it installed and corrected the temp permision error. Now having the following issue:

root@frooler [~]# sh /root/red5/red5.sh
Starting Red5...
Exception in thread "main" java.lang.NoClassDefFoundError: org.red5.server.Standalone
at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
at __gcj_personality_v0 (/root/java.version=1.4.2)
at __libc_start_main (/lib/tls/libc-2.3.4.so)
at _Jv_RegisterClasses (/root/java.version=1.4.2)


Any ideas? Have read it's something to do with the Java class path.
 
Old 07-12-2008, 05:37 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Ref. the first link from #2, ehawk :
Quote:
"Any one of Sun's Java 1.4 (j2sdk-1.4.2_15-fcs), 1.5
(jdk-1.5.0_12-fcs), and 1.6 (jdk-1.6.0_03-fcs)..."
But you will also have to remove the links related to "gcj"
i.e /usr/bin/java and make a link to the sun-java instead.

The "java" from gcj and libgcj is unusable with a lot of applications !!!

Please test java with command 'java -version'

Example -version :
Quote:
"java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode)"
Good Luck.

Last edited by knudfl; 07-12-2008 at 05:40 PM.
 
  


Reply



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
Java plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 02:13 AM
Ubuntu 7.10 64bit - how to set java path to/redirect java to libjvm.so ? Thane Ubuntu 1 03-25-2008 05:52 PM
LXer: Java news met with cautious optimism in free Java community LXer Syndicated Linux News 0 11-14-2006 10:21 PM
Firefox refuses to load Java jnlp files - plugin and java ok Melsync Linux - Software 1 06-25-2006 04:09 PM

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

All times are GMT -5. The time now is 08:36 AM.

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