ClassNotFoundException: com.onseven.dbvis.DbVisualizerGUI on startup
a
anonymous
started a topic
over 10 years ago
[This topic is migrated from our old forums. The original author name has been removed]
The following exception occurs when I try to start DbVisualizer.
$ ./dbvis
java.lang.ClassNotFoundException: com.onseven.dbvis.DbVisualizerGUI
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.Launcher.main(Unknown Source)
Affected versions:
- 8.0.12
- 9.0.9
- 9.1.8
I'm running this on ArchLinux. Although, this is probably not distribution
related. Instead, I've traced it to an updated version of egrep.
$ egrep --version
grep (GNU grep) 2.19
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Haertel and others, see
.
The following code in `dbvis` no longer works:
----------------------------------------
add_class_path "$i4j_classpath"
add_class_path "$app_home/resources"
for i in `ls "$app_home/lib" 2> /dev/null | egrep "\.(jar|zip)$"`
do
add_class_path "$app_home/lib/$i"
done
----------------------------------------
Or more specifically, running
$ ls lib | egrep "\.(jar$|zip$)"
does not produce any content.
The fix appears to be:
$ ls lib | egrep "\.(jar|zip)$"
alloy.jar
AppleJavaExtensions.jar
batik.jar
...
The above fix works for newest egrep 2.19, as well as for older 2.16 (found in
ubuntu 14.04), and for 2.10 (found in ubuntu 12.04).
anonymous