diff --git a/visualvm/sampler.truffle/build.xml b/visualvm/sampler.truffle/build.xml
index 1fbca4a052..619a386b14 100644
--- a/visualvm/sampler.truffle/build.xml
+++ b/visualvm/sampler.truffle/build.xml
@@ -6,12 +6,21 @@
Builds, tests, and runs the project org.graalvm.visualvm.sampler.
-
+
+
+
+
+
+
+
+
+
+
diff --git a/visualvm/sampler.truffle/external/binaries-list b/visualvm/sampler.truffle/external/binaries-list
new file mode 100644
index 0000000000..a58ca8d3fd
--- /dev/null
+++ b/visualvm/sampler.truffle/external/binaries-list
@@ -0,0 +1 @@
+0CE98A7DD6DE15CD90067923D0A3C58180277EBF org.graalvm.tools:profiler:19.0.0
diff --git a/visualvm/sampler.truffle/external/profiler-19.0.0.jar b/visualvm/sampler.truffle/external/profiler-19.0.0.jar
new file mode 100644
index 0000000000..04fcdab462
Binary files /dev/null and b/visualvm/sampler.truffle/external/profiler-19.0.0.jar differ
diff --git a/visualvm/sampler.truffle/nbproject/project.properties b/visualvm/sampler.truffle/nbproject/project.properties
index 87deef766d..0b9f4515ff 100644
--- a/visualvm/sampler.truffle/nbproject/project.properties
+++ b/visualvm/sampler.truffle/nbproject/project.properties
@@ -3,6 +3,6 @@ javac.compilerargs=-Xlint -Xlint:-serial
license.file=../../visualvm/startup/src/org/graalvm/visualvm/modules/startup/LICENSE.txt
nbm.homepage=https://visualvm.github.io
nbm.module.author=Tomas Hurka, Jiri Sedlacek
-lib.cp=${nbjdk.home}/jre/lib/truffle/truffle-api.jar:${nbjdk.home}/jre/tools/profiler/truffle-profiler.jar
+lib.cp=${basedir}/external/profiler-19.0.0.jar
extra.module.files=modules/ext/stagent.jar
cp.extra=${tools.jar}
diff --git a/visualvm/sampler.truffle/nbproject/project.xml b/visualvm/sampler.truffle/nbproject/project.xml
index 6de22512e0..dbf805beea 100644
--- a/visualvm/sampler.truffle/nbproject/project.xml
+++ b/visualvm/sampler.truffle/nbproject/project.xml
@@ -180,6 +180,16 @@
9.8
+
+ org.netbeans.libs.truffleapi
+
+
+
+
+ org.netbeans.libs.graalsdk
+
+
+