Under the user account I want to run red5 as it returns this: $ java -version java version "1.6.0_01" Java(TM) SE Runtime Environment (build 1.6.0_01-b06) Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)
Under root, it returns this: $ java -version java version "1.4.2" gij (GNU libgcj) version 4.1.1 20070105 (Red Hat 4.1.1-51) 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. I'm running the ant server command as sudo, so I guess the question is how do I change the root user to use the java environment located out of a different location? Is there a variable I need to change somewhere? Thanks, -Grant ------------------------------------- Grant Kohler [EMAIL PROTECTED] REACHMDConsult, Inc. http://www.reachmdc.com/ (770) 853-3556 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thijs Triemstra | Collab Sent: Wednesday, June 06, 2007 6:16 PM To: [email protected] Subject: Re: [Red5] IStreamableFileService what does java -version return? And what OS are you using? Thijs On Jun 6, 2007, at 9:47 PM, Grant Kohler wrote: > Now that I look closer, it looks like it's trying to use the wrong > version > of java. > > Buildfile: build.xml > [echo] java.home is /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre > and the > target version is 1.4 > > server: > [echo] java.home is /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre > and the > target version is 1.4 > > I've installed jdk1.6.0_01 and set my environment variable for > JAVA_HOME to > point to the directory for jdk1.6.0_01, but it still doesn't seem > to be > looking there for java. Do I need to change it somewhere else too? > > Thanks, > -Grant > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf > Of Thijs Triemstra | Collab > Sent: Wednesday, June 06, 2007 2:57 PM > To: [email protected] > Subject: Re: [Red5] IStreamableFileService > > You should try a newer version of Red5 (v0.6.1) that supports jdk1.6 > > Thijs > > > Op 6-jun-2007, om 20:16 heeft Grant Kohler het volgende geschreven: > >> Hello, >> >> I'm trying to setup red5 on a new server. I'm running >> jdk1.6.0_01 but when I run ant server I get the following message >> and I have no idea what it means: >> >> >> >> compile: >> >> [javac] Compiling 309 source files to /home/reach/red5-0_5rc1/bin >> >> [javac] ---------- >> >> [javac] 1. ERROR in /home/reach/red5-0_5rc1/src/org/red5/io/ >> IStreamableFileFactory.java >> >> [javac] (at line 31) >> >> [javac] public abstract Set<IStreamableFileService> >> getServices(); >> >> [javac] ^^^ >> >> [javac] The type Set is not generic; it cannot be parameterized >> with arguments <IStreamableFileService> >> >> [javac] ---------- >> >> [javac] 2. ERROR in /home/reach/red5-0_5rc1/src/org/red5/io/ >> IStreamableFileFactory.java >> >> [javac] (at line 31) >> >> [javac] public abstract Set<IStreamableFileService> >> getServices(); >> >> [javac] ^^^^^^^^^^^^^^^^^^^^^^ >> >> [javac] Syntax error, parameterized types are only available if >> source level is 5.0 >> >> [javac] ---------- >> >> [javac] 2 problems (2 errors) >> >> >> >> Is there something else I need to configure first? >> >> >> >> Thanks, >> >> -Grant >> >> >> >> _______________________________________________ >> Red5 mailing list >> [email protected] >> http://osflash.org/mailman/listinfo/red5_osflash.org > > > _______________________________________________ > Red5 mailing list > [email protected] > http://osflash.org/mailman/listinfo/red5_osflash.org > > > > _______________________________________________ > Red5 mailing list > [email protected] > http://osflash.org/mailman/listinfo/red5_osflash.org _______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org _______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
