GithubHelp home page GithubHelp logo

Comments (3)

BaumiCoder avatar BaumiCoder commented on June 14, 2024 2

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.

hunterjackson avatar hunterjackson commented on June 14, 2024

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.

EndarValuk avatar EndarValuk commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.