Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not work with java 11 #283

Open
agsha opened this issue Oct 13, 2023 · 1 comment
Open

does not work with java 11 #283

agsha opened this issue Oct 13, 2023 · 1 comment

Comments

@agsha
Copy link

agsha commented Oct 13, 2023

I had to struggle a lot to build it and get it working with java11
When I finally ran my App with the attached java agent, it gave an error

agent library failed to init: /home/sharath/os/honest-profiler/cmake-build-release/build/liblagent.so
ERROR: JVMTI initialisation error -3

seems like this project is fundamentally broken for modern jdks

@agsha
Copy link
Author

agsha commented Oct 13, 2023

fro what its worth, attaching my patch file to compile this project
patch.txt

Plz note, we have to build the c++ part separately

cmake
make -j6

you have to download open javafx from here
https://gluonhq.com/products/javafx/
(i downloaded in /home/sharath/os/javafx-sdk-17.0.8/lib)

compile with regular mvn clean package

after that, you can start the GUI by running this command directly from target folder. (dont use the gui shell script)

java -cp honest-profiler.jar:/home/sharath/os/javafx-sdk-17.0.8/lib/ --module-path /home/sharath/os/javafx-sdk-17.0.8/lib --add-modules=javafx.controls --add-modules=javafx.graphics --add-modules=javafx.fxml -Djdk.attach.allowAttachSelf=true  com.insightfullogic.honest_profiler.ports.javafx.JavaFXApplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant