Skip to content

skija.dll: Can't find dependent libraries #149

@clqsrc

Description

@clqsrc

Hi:

I run in vps server windows server 2012

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\Administrato
r\AppData\Local\Temp\skija_0.93.6\skija.dll: Can't find dependent libraries
at java.base/java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2614)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2499)
at java.base/java.lang.Runtime.load0(Runtime.java:812)
at java.base/java.lang.System.load(System.java:1821)
at org.jetbrains.skija.impl.Library.load(Library.java:73)
at org.jetbrains.skija.impl.Library.staticLoad(Library.java:47)
at org.jetbrains.skija.Surface.(Surface.java:9)
at com.javasrc.map.map.t3(map.java:166)
at http_main.main(http_main.java:33)


public static void t3()
{
//org.jetbrains.skija.windows.LibraryFinder;
//https://github.com/JetBrains/skija/blob/master/docs/Getting%20Started.md
Surface surface = Surface.makeRasterN32Premul(100, 100);
Canvas canvas = surface.getCanvas();

    Paint paint = new Paint();
    paint.setColor(0xFFFF0000);


    canvas.drawCircle(50, 50, 30, paint);

    //--------------------------------------------------------
    Image image = surface.makeImageSnapshot();
    Data pngData = image.encodeToData(EncodedImageFormat.PNG);

    //-- 0.89.8
    byte [] buf = pngData.getBytes();
    ByteBuffer pngBytes = ByteBuffer.wrap(buf);
    //--


    

    try
    {
        File file = new File("d:\\filename.png");

        boolean append = false;

        FileOutputStream fs = new FileOutputStream(file, append);

        FileChannel wChannel = fs.getChannel();

        //wChannel.write(bbuf);
        wChannel.write(pngBytes);

        wChannel.close();
        fs.close();


    }
    catch (Exception e)//(IOException e) 
    {
        System.out.println(e);
    }

}//

Do need to install any libraries? Please help me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions