Continuing the discussion from Jasper Report: KeyError: 'JAVA_HOME':
Hello,
after the installation of jasper_erpnext_report i can`t acces the ERPNext Desk of my fresh installation anymore.
Before the install-app i had to export the variable JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 which worked pretty good for the installation itself.
But after login i see get to see the following error, so it seems that there still is a problem in frappe finding the JAVA_HOME directory?
What can i do to trace down the problem?
Traceback (innermost last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 25, in render
data = render_page_by_language(path)
File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 91, in render_page_by_language
return render_page(path)
File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 113, in render_page
return build(path)
File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 122, in build
return build_method(path)
File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 138, in build_page
context = get_context(path)
File "/home/frappe/frappe-bench/apps/frappe/frappe/website/context.py", line 31, in get_context
context = build_context(context)
File "/home/frappe/frappe-bench/apps/frappe/frappe/website/context.py", line 79, in build_context
ret = module.get_context(context)
File "/home/frappe/frappe-bench/apps/frappe/frappe/templates/pages/desk.py", line 21, in get_context
boot = frappe.sessions.get()
File "/home/frappe/frappe-bench/apps/frappe/frappe/sessions.py", line 105, in get
bootinfo = get_bootinfo()
File "/home/frappe/frappe-bench/apps/frappe/frappe/boot.py", line 65, in get_bootinfo
frappe.get_attr(method)(bootinfo)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 771, in get_attr
return getattr(get_module(modulename), methodname)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 590, in get_module
return importlib.import_module(modulename)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/frappe/frappe-bench/apps/jasper_erpnext_report/jasper_erpnext_report/core/JasperWhitelist.py", line 13, in <module>
import JasperRoot as Jr
File "/home/frappe/frappe-bench/apps/jasper_erpnext_report/jasper_erpnext_report/core/JasperRoot.py", line 11, in <module>
import JasperServer as Js, JasperLocal as Jl, JasperBase as Jb
File "/home/frappe/frappe-bench/apps/jasper_erpnext_report/jasper_erpnext_report/core/JasperLocal.py", line 15, in <module>
from jasper_erpnext_report.jasper_reports.FrappeDataSource import _JasperCustomDataSource
File "/home/frappe/frappe-bench/apps/jasper_erpnext_report/jasper_erpnext_report/jasper_reports/FrappeDataSource.py", line 4, in <module>
from jnius import PythonJavaClass, java_method
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/jnius/__init__.py", line 13, in <module>
from .reflect import *
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/jnius/reflect.py", line 14, in <module>
class Class(with_metaclass(MetaJavaClass, JavaClass)):
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/six.py", line 808, in __new__
return meta(name, bases, d)
File "jnius/jnius_export_class.pxi", line 43, in jnius.MetaJavaClass.__new__ (jnius/jnius.c:17159)
File "jnius/jnius_export_class.pxi", line 65, in jnius.MetaJavaClass.resolve_class (jnius/jnius.c:17555)
File "jnius/jnius_env.pxi", line 11, in jnius.get_jnienv (jnius/jnius.c:3320)
File "jnius/jnius_jvm_dlopen.pxi", line 89, in jnius.get_platform_jnienv (jnius/jnius.c:3248)
File "jnius/jnius_jvm_dlopen.pxi", line 48, in jnius.create_jnienv (jnius/jnius.c:2647)
File "/home/frappe/frappe-bench/env/lib/python2.7/UserDict.py", line 23, in __getitem__
raise KeyError(key)
KeyError: 'JAVA_HOME'