[GH-ISSUE #3461] Java library #2768

Closed
opened 2026-05-05 13:47:06 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @tecnicosya on GitHub (May 29, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3461

Describe the feature request

I want to build a tool in Java using your frp.
Currently I'm using shell to call frp from my app

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @tecnicosya on GitHub (May 29, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3461 ### Describe the feature request I want to build a tool in Java using your frp. Currently I'm using shell to call frp from my app ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [X] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:47:06 -06:00
Author
Owner

@fatedier commented on GitHub (May 30, 2023):

I am not familiar with Java and do not have any plans in this area.

<!-- gh-comment-id:1567750582 --> @fatedier commented on GitHub (May 30, 2023): I am not familiar with Java and do not have any plans in this area.
Author
Owner

@tecnicosya commented on GitHub (May 30, 2023):

I read frp will compile to library. But I don't know where is the documentation for it. Maybe I will used with dotnet

<!-- gh-comment-id:1567753694 --> @tecnicosya commented on GitHub (May 30, 2023): I read frp will compile to library. But I don't know where is the documentation for it. Maybe I will used with dotnet
Author
Owner

@Bellegar commented on GitHub (May 30, 2023):

I am not so good familiar with go, but it may helps.
Maybe it is possible to include jni dependency to cgo build for shared library. Or maybe exists some 'go-builder' for java.
For example gomobile creates AAR for android for using java interface, by pulling jni shared libraries, built by gomobile.
You can use gomobile' generated shared libs in your java code, also gomobile produces source code 'header' with 'native' directives to build jni methods.
Here is my comment about building FRP library, frp needs to change some code for minimal working as library.

<!-- gh-comment-id:1568455360 --> @Bellegar commented on GitHub (May 30, 2023): I am not so good familiar with go, but it may helps. Maybe it is possible to include jni dependency to cgo build for shared library. Or maybe exists some 'go-builder' for java. For example gomobile creates AAR for android for using java interface, by pulling jni shared libraries, built by gomobile. You can use gomobile' generated shared libs in your java code, also gomobile produces source code 'header' with 'native' directives to build jni methods. Here is my comment about building [FRP library](https://github.com/fatedier/frp/issues/2989#issuecomment-1563214660), frp needs to change some code for minimal working as library.
Author
Owner

@tecnicosya commented on GitHub (May 30, 2023):

No estoy muy familiarizado con go, pero puede ayudar. Tal vez sea posible incluir la dependencia de jni en la compilación de cgo para la biblioteca compartida. O tal vez exista algún 'go-builder' para Java. Por ejemplo, gomobile crea AAR para Android para usar la interfaz Java, extrayendo bibliotecas compartidas jni, creadas por gomobile. Puede usar librerías compartidas generadas por gomobile en su código java, también gomobile produce un 'encabezado' de código fuente con directivas 'nativas' para construir métodos jni. Aquí está mi comentario sobre la creación de la biblioteca FRP , frp necesita cambiar algo de código para un funcionamiento mínimo como biblioteca.
Wow! thats what a I need, FRP Library for Android and Windows, now I will try to integrate on my project!.
Thank you so much!

<!-- gh-comment-id:1568646203 --> @tecnicosya commented on GitHub (May 30, 2023): > No estoy muy familiarizado con go, pero puede ayudar. Tal vez sea posible incluir la dependencia de jni en la compilación de cgo para la biblioteca compartida. O tal vez exista algún 'go-builder' para Java. Por ejemplo, gomobile crea AAR para Android para usar la interfaz Java, extrayendo bibliotecas compartidas jni, creadas por gomobile. Puede usar librerías compartidas generadas por gomobile en su código java, también gomobile produce un 'encabezado' de código fuente con directivas 'nativas' para construir métodos jni. Aquí está mi comentario sobre la creación de [la biblioteca FRP](https://github.com/fatedier/frp/issues/2989#issuecomment-1563214660) , frp necesita cambiar algo de código para un funcionamiento mínimo como biblioteca. Wow! thats what a I need, FRP Library for Android and Windows, now I will try to integrate on my project!. Thank you so much!
Author
Owner

@github-actions[bot] commented on GitHub (Jun 30, 2023):

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:1613954861 --> @github-actions[bot] commented on GitHub (Jun 30, 2023): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2768
No description provided.