LynAs
LynAs

Reputation: 6537

Set jdk location in ubuntu for glassfish server

While running glassfish server from a windows command prompt, I was getting errors like

org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac.  A full JDK (not just JRE) is required

I resolved it by adding one line in the asenv.bat file in the config directory of glassfish server folder

set AS_JAVA=C:\Program Files\Java\jdk1.7.0_17

Now I am getting the same error on Ubuntu and I need to know the syntax that I need to put in the asenv.bat file.

My JDK locaion is \home\szlynas\jdk1.6.0_45

Upvotes: 0

Views: 1000

Answers (1)

remigio
remigio

Reputation: 4211

Bat files are for the Windows environment, in Linux you should apply modifications to the asenv.conf file.

Upvotes: 3

Related Questions