Giter VIP home page Giter VIP logo

Comments (11)

codewithakamathb avatar codewithakamathb commented on August 23, 2024

Commands used
"C:\Program Files\GraalVM\graalvm-ce-java11-22.3.2\bin\java.exe" -agentlib:native-image-agent=config-output-dir=META-INF/native-image -jar desktop-reflection-jar-with-dependencies.jar

native-image -cp desktop-reflection-jar-with-dependencies.jar --shared --no-fallback --allow-incomplete-classpath -H:IncludeResources="..xml|..conf" "-H:Name=dinterfacepoc" -H:+ReportExceptionStackTraces -H:+ReportUnsupportedElementsAtRuntime -H:TraceClassInitialization=True -H:ConfigurationFileDirectories=META-INF/native-image

from graal.

codewithakamathb avatar codewithakamathb commented on August 23, 2024

Invocation Code

#include <stdio.h>
#include <stdlib.h>
#ifndef _WIN64
#include <dlfcn.h>
#else
#include <windows.h>
#endif
#include "InterviewServiceInterop.h"
#include <dinterfacepoc.h>

using namespace System;
using namespace System::Runtime::InteropServices;

#pragma managed(push, off)

graal_isolate_t* isolateIS = NULL;
graal_isolatethread_t* threadIS = NULL;

void InvokeListAnnotatedClass()
{
if (threadIS == NULL) {
if (graal_create_isolate(NULL, &isolateIS, &threadIS) != 0) {
fprintf(stderr, "error on isolate creation or attach\n");
}
}

list_annotated_class(threadIS);
return;

}

#pragma managed(pop)

System::Void Interop::InterviewServiceInterop::ListAnnotatedClass()
{

try {
	

	InvokeListAnnotatedClass();

	
}
catch (...) {

}

}

from graal.

kassifar avatar kassifar commented on August 23, 2024

Hello @codewithakamathb thank you for reporting the issue that you are facing. Can you please specify the version of GraalVM that you are using as well as your system specification. Thank you.

from graal.

kassifar avatar kassifar commented on August 23, 2024

Can you also push your reproducer on a public github repo so that we can take a look at it? Thanks.

from graal.

codewithakamathb avatar codewithakamathb commented on August 23, 2024

Can you also push your reproducer on a public github repo so that we can take a look at it? Thanks.

Please find git link.

https://github.com/codewithakamathb/graalvm/tree/main

Please follow read me. If you need any help let me know

from graal.

codewithakamathb avatar codewithakamathb commented on August 23, 2024

Hello @codewithakamathb thank you for reporting the issue that you are facing. Can you please specify the version of GraalVM that you are using as well as your system specification. Thank you.

graalvm-ce-java11-22.3.2

from graal.

codewithakamathb avatar codewithakamathb commented on August 23, 2024

@kassifar any support or hints?

from graal.

kassifar avatar kassifar commented on August 23, 2024

Hi @codewithakamathb, we noticed that you are using graalvm-ce-java11-22.3.2. We recommend that you switch to our latest version of GraalVM: GraalVM for JDK 22 Community 22.0.1. Let us know if you are still encountering the same issue when you switch to the aforementioned version. Thank you.

from graal.

codewithakamathb avatar codewithakamathb commented on August 23, 2024

No it doesnt work

from graal.

kassifar avatar kassifar commented on August 23, 2024

Hi @codewithakamathb the README that you provided on your repo isn't straightforward. Can you, please, provide us with a step by step description of how to build your code, produce a native image for it and test it. Thank you.

from graal.

kassifar avatar kassifar commented on August 23, 2024

Hi,
I will be closing this issue due to inactivity.
Thanks.

from graal.

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.