@@ -127,7 +127,28 @@ You only need a JDK and a python interpreter to run the Gudu SQLFlow lite versio
127
127
128
128
### Step 1: Prerequisites
129
129
* Install python3
130
- * Install Java jdk1.8
130
+ * Install Java jdk1.8 (openJdk-8 is recommended)
131
+
132
+ Command used to check java version:
133
+
134
+ ` java -version `
135
+
136
+ If the Java is not installed, exexute this command:
137
+
138
+ ` sudo apt install openjdk-8-jdk `
139
+
140
+ If this error occurs:
141
+
142
+ ` Unable to locate package openjdk-8-jdk `
143
+
144
+ Please execute the following commands:
145
+
146
+ ```
147
+ sudo add-apt-repository ppa:openjdk-r/ppa
148
+ apt-get update
149
+ sudo apt install openjdk-8-jdk
150
+ ```
151
+
131
152
132
153
### Step 2: Open the web service
133
154
Switch to the widget directory of this project and execute the following command to start the web service:
@@ -215,5 +236,26 @@ and hand it over to Gudu SQLFlow for data lineage analysis.。
215
236
216
237
## Trouble shooting
217
238
239
+
240
+ ### 1. SystemError: java.lang.ClassNotFoundException: org.jpype.classloader.DynamicClassLoader
241
+
242
+ ```
243
+ Traceback (most recent call last):
244
+ File "/home/grq/python_data_lineage/dlineage.py", line 231, in <module >
245
+ call_dataFlowAnalyzer(args)
246
+ File "/home/grq/python_data_lineage/dlineage.py", line 20, in call_dataFlowAnalyzer
247
+ jpype.startJVM(jvm, "-ea", jar)
248
+ File "/usr/lib/python3/dist-packages/jpype/_ core.py", line 224, in startJVM
249
+ _ jpype.startup(jvmpath, tuple(args),
250
+ SystemError: java.lang.ClassNotFoundException: org.jpype.classloader.DynamicClassLoader
251
+ ```
252
+
253
+ This problem is related to python3 jpype on ubuntu system. It seems that org.jpype.jar file is missing under /usr/lib/python3/dist-packages/
254
+ just copy org.jpype.jar to /usr/lib/python3/dist-packages/
255
+
256
+ ```
257
+ cp /usr/share/java/org.jpype.jar /usr/lib/python3/dist-packages/org.jpype.jar
258
+ ```
259
+
218
260
## Contact
219
261
For further information, please contact support@gudusoft.com
0 commit comments