# \#haxe-jvm

**URL:** https://community.haxe.org/tag/haxe-jvm/81.md

[Latest](https://community.haxe.org/latest.md) · [Categories](https://community.haxe.org/categories.md) · [Tags](https://community.haxe.org/tags.md)

---

## [\[JAVA-JVM\] Reflect.callMethod error with more than two arguments](https://community.haxe.org/t/java-jvm-reflect-callmethod-error-with-more-than-two-arguments/4531)

<div class="topic-metadata">

**Author:** [@Opium](https://community.haxe.org/u/Opium)\
**Replies:** 0\
**Last updated:** [February 9, 2025, 11:39pm UTC](https://community.haxe.org/t/java-jvm-reflect-callmethod-error-with-more-than-two-arguments/4531 "2025-02-09T23:39:05Z")

</div>

Hello everyone, I am a new user and I have been doing some testing regarding Haxe and targeting various platforms. I came across this bug with Reflect.callMethod when targeting Java/JVM, my code is as follow: import h…

---

## [\[JVM\] How to add custom resources into output jar](https://community.haxe.org/t/jvm-how-to-add-custom-resources-into-output-jar/3205)

<div class="topic-metadata">

**Author:** [@kevinresol](https://community.haxe.org/u/kevinresol)\
**Replies:** 4\
**Last updated:** [September 2, 2021, 2:09pm UTC](https://community.haxe.org/t/jvm-how-to-add-custom-resources-into-output-jar/3205 "2021-09-02T14:09:43Z")

</div>

Is there a compiler flag for adding static resources into the output jar? In other words, I want to add a custom entry such as META-INF/my\_file.txt to the list returned by the command: jar tf bin/Main.jar (for those wh…

---

## [A few question about jvm target (again)](https://community.haxe.org/t/a-few-question-about-jvm-target-again/2905)

<div class="topic-metadata">

**Author:** [@AlexKotik](https://community.haxe.org/u/AlexKotik)\
**Replies:** 0\
**Last updated:** [February 16, 2021, 1:26pm UTC](https://community.haxe.org/t/a-few-question-about-jvm-target-again/2905 "2021-02-16T13:26:08Z")

</div>

So I tested the 4.2.0 feature of adding a folder full of jars with ‘–java-lib’ argument, and it didn’t work. Java failed with “An unexpected error occurred while trying to open file”. It seems I’m stuck with this issue: \[…

---

## [\[tink\_http\] Client: how to gracefully deal with an invalid but successful response?](https://community.haxe.org/t/tink-http-client-how-to-gracefully-deal-with-an-invalid-but-successful-response/2801)

<div class="topic-metadata">

**Author:** [@cedx](https://community.haxe.org/u/cedx)\
**Replies:** 3\
**Last updated:** [December 14, 2020, 6:22pm UTC](https://community.haxe.org/t/tink-http-client-how-to-gracefully-deal-with-an-invalid-but-successful-response/2801 "2020-12-14T18:22:43Z")

</div>

With tink\_http v0.9.1, I use the Client.fetch() method to query a remote endpoint. This endpoint is accessible through a GET request and just returns a HTTP status code indicating the outcome: the response has no body, …

---

## [JVM target a few questions](https://community.haxe.org/t/jvm-target-a-few-questions/2444)

<div class="topic-metadata">

**Author:** [@AlexKotik](https://community.haxe.org/u/AlexKotik)\
**Replies:** 13\
**Last updated:** [October 20, 2020, 10:29pm UTC](https://community.haxe.org/t/jvm-target-a-few-questions/2444 "2020-10-20T22:29:05Z")

</div>

I’m on Haxe 4.0.5 yet, still waiting for 4.1.0 to arrive in Manjaro packages. And I’m experimenting with the JVM backend, I’m looking forward to use Haxe to glue together quite a few JVM libraries with my business logic …

---

## [JVM target problem (Type not found : java.util.function.Consumer)](https://community.haxe.org/t/jvm-target-problem-type-not-found-java-util-function-consumer/2603)

<div class="topic-metadata">

**Author:** [@wds](https://community.haxe.org/u/wds)\
**Replies:** 6\
**Last updated:** [July 28, 2020, 8:37pm UTC](https://community.haxe.org/t/jvm-target-problem-type-not-found-java-util-function-consumer/2603 "2020-07-28T20:37:34Z")

</div>

Hi, I’m trying to create a simple webservice with jvm target. I’ve added jars for Spark with --java-lib switch, but I’m getting this error if I try to import anything from spark namespace: spark-core-2.9.2.jar@spark/Se…

---

## [How to use jar lib in haxe for jvm target?](https://community.haxe.org/t/how-to-use-jar-lib-in-haxe-for-jvm-target/2523)

<div class="topic-metadata">

**Author:** [@Zhan](https://community.haxe.org/u/Zhan)\
**Replies:** 2\
**Last updated:** [June 18, 2020, 9:10am UTC](https://community.haxe.org/t/how-to-use-jar-lib-in-haxe-for-jvm-target/2523 "2020-06-18T09:10:01Z")

</div>

how to use jar lib in haxe for jvm target ? such like use sqlite use

---

## [JVM target: Duplicate field on class ...: \<init\> ()V](https://community.haxe.org/t/jvm-target-duplicate-field-on-class-init-v/2510)

<div class="topic-metadata">

**Author:** [@ianharrigan](https://community.haxe.org/u/ianharrigan)\
**Replies:** 5\
**Last updated:** [June 9, 2020, 12:50pm UTC](https://community.haxe.org/t/jvm-target-duplicate-field-on-class-init-v/2510 "2020-06-09T12:50:50Z")

</div>

Howdy, So I thought i would take the new jvm target for a spin and hit this problem: Duplicate field on class haxe.ui.core.ComponentLayout: \<init\> ()V Is there anyway to get more information on this error? Im pretty s…

---

## [I would like to help improve the Haxe JVM's backends closure](https://community.haxe.org/t/i-would-like-to-help-improve-the-haxe-jvms-backends-closure/2453)

<div class="topic-metadata">

**Author:** [@sstewartgallus](https://community.haxe.org/u/sstewartgallus)\
**Replies:** 7\
**Last updated:** [May 22, 2020, 8:31am UTC](https://community.haxe.org/t/i-would-like-to-help-improve-the-haxe-jvms-backends-closure/2453 "2020-05-22T08:31:38Z")

</div>

Hi I saw some recent posts on Haxe’s implementation of closures on the JVM and all I can say is yikes! The old MethodHandle implementation was extremely broken. The new typed functions implementation is better but co…

---

## [Confusing about jvm target!](https://community.haxe.org/t/confusing-about-jvm-target/2443)

<div class="topic-metadata">

**Author:** [@Zhan](https://community.haxe.org/u/Zhan)\
**Replies:** 2\
**Last updated:** [May 17, 2020, 4:38am UTC](https://community.haxe.org/t/confusing-about-jvm-target/2443 "2020-05-17T04:38:36Z")

</div>

I did a test about jvm target,and seem very slowly than hxcpp or hl target. my test platform:ubuntu 18 haxe version 4.1 hxjava:haxelib install hxjava java evn:default jre. where is wrong ? because it’s in my proj…
