java - Glassfish whont start on linux server -


After

First of all I'm a newbie on Linux, do not hate me. I've done the same thing on windows and have always got it to work for the first time trying on a linux box.

1) I have installed Glassfish 4 which is JDK7 or need more.

2) I installed JDK 8

3) I set JAVA_HOME to the JDK

4) I unziped Glassfish.

When I get the following run

  glassfish4 / bin / asadmin  

I have the following error

  formula exception "main" java.lang.UnsupportedClassVersionError: bad version number java.lang.ClassLoader in .class file. defineClass1 java.lang.ClassLoader.defineClass (ClassLoader.java:620) java.security.SecureClassLoader.defineClass (SecureClassLoader.java:124) (Native Method On java.net.URLClassLoader.defineClass) (URLClassLoader.java:260 ) on java on java.net.URLClassLoader.access $ 100 java.net.URLClassLoader $ 1.run (URLClassLoader.java:56) (URLClassLoader.java:195) java.security.AccessController.doPrivileged (Native method). .findClass (URLClassLoader.java:188) at net.URLClassLoader java.lang.ClassLoader.loadClass (ClassLoader.java:306) in Sun.misc.Launcher $ AppClassLoader.loadClass (Launcher.java:268) java.lang.ClassLoader On .loadClass (ClassLoader.java:251) at. Lang.ClassLoader.loadClassInternal (ClassLoader.java319)  

What to do.

I have seen this before and the solution has been to set the JDK path. But I can not find where I am to set the path. asenv.conf ?

After

It seems that your default system is in Java's old version, you can run it by checking: < / p>

  $ Java Version  

Glassfish open glassfish / config / set specific Java asenv.conf file and folowing the end to add: < / P>

  AS_JAVA = pathToYourJavaHomeFolder  

Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -