Comments (3)
I had some other issues with obsidian lately. Now I find a reason for this.
reason for problems (flatpak)
I was using the flatpak installation of obsidian. Flatpak applications are running in a kind of an sandbox. So a java -jar plantuml.jar
on the shell works fine (with OpenJDK 18), but the obsidian in the flatpak sandbox doesn't works (maybe there couldn't be found any java in the sandbox).
solution for problems
Now I installed obisidian as deb-package an with that all works fine.
ToDo for plugin
In my opinion the only ToDo for the plugin would be to show a error message, what went wrong while using jar file.
from obsidian-plantuml.
So I'm not sure about version 11 but I had issues using Java version 17, you can see the errors if you invoke the jar directly.
$ java -jar plantuml.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-17-openjdk-17.0.5.0.8-2.fc36.x86_64/lib/libawt_xawt.so
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2393)
at java.base/java.lang.Runtime.load0(Runtime.java:755)
at java.base/java.lang.System.load(System.java:1953)
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174)
at java.base/jdk.internal.loader.NativeLibraries.findFromPaths(NativeLibraries.java:315)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:285)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2398)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:818)
at java.base/java.lang.System.loadLibrary(System.java:1989)
at java.desktop/java.awt.image.ColorModel$1.run(ColorModel.java:210)
at java.desktop/java.awt.image.ColorModel$1.run(ColorModel.java:208)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at java.desktop/java.awt.image.ColorModel.loadLibraries(ColorModel.java:207)
at java.desktop/java.awt.image.ColorModel.<clinit>(ColorModel.java:220)
at java.desktop/java.awt.image.BufferedImage.<clinit>(BufferedImage.java:286)
at net.sourceforge.plantuml.FileFormat.<clinit>(FileFormat.java:127)
at net.sourceforge.plantuml.Option.<init>(Option.java:105)
at net.sourceforge.plantuml.Run.main(Run.java:92)
So I installed Java 8 and I am now able to launch the jar directly however I still get the "Generating PlantUML diagram" message, I agree a better error message would be nice.
from obsidian-plantuml.
I had some other issues with obsidian lately. Now I find a reason for this.
reason for problems (flatpak)
Same here, found bug when using flatpak version of obsidian.
Tried setting java path to /var/run/host/{my_java_executable_path}
fixed issue (see flatpak docs)
@joethei i think, that info should be added to Known Issues section.
from obsidian-plantuml.
Related Issues (20)
- PDF Export HOT 2
- Feature request: Option to export a rendered diagram locally HOT 2
- Compatibility with pandoc lua filters HOT 1
- Failed to enable plugin in 1.0 HOT 1
- /opt/local/bin/dot not found on homebrew-installed graphviz on Apple Silicon HOT 1
- Local .jar file HOT 3
- Using local jar leaks in Electron local storage HOT 2
- Support using local shell command in settings
- Links are not rendered correctly in gantt diagrams
- mindmap diagrams not working as intended HOT 3
- Internal links open up new vault
- setting the default processor to svg is invalid HOT 1
- Adding examples of obsidian links into plantUML diagrams
- Cannot Open URL HOT 1
- Ability to export diagrams HOT 1
- Deflate/Encoding issue with published material -- add support for header to be added `~1` HOT 1
- Error in parameter list order for calling the local jar HOT 1
- How to include images?
- Exported SVG open error: Entity 'nbsp' not defined
- Need jarArgs option which like plantuml.jarArgs in vscode vscode-plantuml plugin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-plantuml.