Friday, 5 June 2009

Forcing glassfish 2.1 to start-up with JDK1.6 (OSX)

We were having a problem where we were trying to deploy a webapp on glassfish 2.1; the app itself was compiled with Java 1.6 and glassfish was being launched with Java 1.5. It should be noted that in this case we were trying to launch glassfish from within IntelliJ IDEA.

If you're having the same problem, go into your {glassfish home}/config/asenv.conf and check to see whether this value is pointing to an earlier version of the JDK. It should be:

Hope this helps someone

3 comments:

Fred said...

Thanks you !!!

u saved my life....

simples things... that can waste your time during hours and hours...

;)

Fred said...

but in fact it doesn't work........

NOOOOOOAAAAAAAAAAAAAAAAAAAAAA

Alex Bleasdale said...

Fred - sorry to hear it didn't work for you. I know we managed to get IntelliJ/Glassfish working on JDK1.6. Are you still having the problem or did you solve it?

Blog Archive