ProbCog
ProbCog copied to clipboard
Exception while trying to use netEd tool with Ubuntu 18.04
I also wanted to add that I got the following exception while trying to learn the netEd tool with Ubuntu 18.04 and following java version:
openjdk version "11.0.7" 2020-04-14 OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu218.04) OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu218.04, mixed mode, sharing)
java.lang.NullPointerException
at org.eclipse.swt.widgets.TabFolder.gtk_switch_page(Unknown Source)
at org.eclipse.swt.widgets.Widget.windowProc(Unknown Source)
at org.eclipse.swt.widgets.Display.windowProc(Unknown Source)
at org.eclipse.swt.internal.gtk.OS._gtk_widget_show(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_widget_show(Unknown Source)
at org.eclipse.swt.widgets.TabFolder.createItem(Unknown Source)
at org.eclipse.swt.widgets.TabItem.createWidget(Unknown Source)
at org.eclipse.swt.widgets.TabItem.
Thanks a lot!
Originally posted by @mcubuktepe in https://github.com/opcode81/ProbCog/issues/25#issuecomment-626413056
@mcubuktepe, please post the SWT dependency that you have in your pom.xml.
Hi, I am attaching the txt version of the pom.xml file as Github does not support attaching XML files. pom.txt
These are the lines of the pom.xml file that include SWT information.
<dependencies>
<dependency>
<groupId>org.eclipse.swt</groupId>
<artifactId>org.eclipse.swt.gtk.linux.x86_64</artifactId>
<version>4.4</version>
</dependency>
Please check whether changing the version to 4.6.1 and subsequently rerunning make_apps fixes the problem.
Most likely, the issue is due to a problem in SWT itself.
Hi, I was able to run netEd, but I got the following log in the terminal while launching netEd, I wanted to check if this is a problem netedlog.txt.
Was being able to run netEd a result of changing the SWT version or were you able to run it before? The errors found in your log file are SWT errors, which may be due to an incompatibility somewhere, but it's hard to say. Did netEd work fine? If you don't have an actual problem with netEd, then I'd say not to worry.
netEd works fine after changing the SWT version, it did not run before. Please feel free to close this issue, thank you.