Jump to content
We've recently updated our Privacy Statement, available here ×

upgrade 4.5 to 4.7


samhast

Recommended Posts

When I want to upgrade from my jasperserver 4.5 to 4.7 on ubuntu, I have the following error:

WARNING: JAVA_HOME environment variable not found
[default]
Running upgrade-minimal-ce Ant task.
----------------------------------------------------------------------
Error: JAVA_HOME is not defined correctly.
  We cannot execute java
Checking Ant return code: OK

 

What can I do?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Well the error is pretty self explanatory the JAVA_HOME enviroment variable is not set in your shell. To fix this just create the env variable
e.g.:
export JAVA_HOME=/usr/lib/jvm/java-6-sun
(or whatever the path to your java home is)

Also, Is Java installed in your system? I assume that yes but you can try doing "jave -version" form the command line it should gibe you something like this:

 

$ java -version
java version "1.6.0_37"
Java SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
Java HotSpot 64-Bit Server VM (build 20.12-b01-434, mixed mode)
 
Also doing a "which java" on the shell will tell you the path that java is installed

 

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...