Hi, I am a bloody *nix n00b but something jumped me instantly.
Is the server running in the same environment as the JDK? e.g. do you have a java_home output of /Path/to/jdk1.6.0_31 as system or user context? And does the Jenkins server run in the same context? It makes no sense to have a correct java_home as user and an old java version in system context if Jenkins is started by the system and not the user. That would always result in a wrong java version ;) Take care Jan On 4 Apr., 11:33, Karthikeyan S <[email protected]> wrote: > Today, I installed jenkins in new server. After installation, while trying > to start it, notice below error > > <Snip> > > Starting Jenkins Jenkins requires Java5 or later, but you are > running 1.4.2 from /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre > java.lang.UnsupportedClassVersionError: 48.0 > at Main.main(Main.java:90) > > </Snip> > > I have set the java home to point new JDK. For instance, echo $JAVA_HOME > provides the output as /Path/to/jdk1.6.0_31. I searched with the error in > google and one of them suggested to use update-alternatives. Since i am not > clear, could you please help me to resolve this issue. > > Regards, > Karthik
