<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanakahda</author_name>
  <author_url>https://blog.hatena.ne.jp/tanakahda/</author_url>
  <blog_title>tanakahdaのプログラマ手帳</blog_title>
  <blog_url>https://tanakahda.hateblo.jp/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>javax.tools.JavaCompilerでコンパイルするときに外部jarにクラスパスを通して実行する方法を調査。 javax.tools.JavaCompilerのオプションで&quot;-cp&quot;または&quot;-classpath&quot;を指定する。例えば、以下のように書くことができる。 JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); String[] options = new String[]{&quot;-cp&quot;, &quot;lib/mylib.jar&quot;}; compiler.run(null, null, null, options, &quot;My…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftanakahda.hateblo.jp%2Fentry%2F2024%2F02%2F17%2F143940&quot; title=&quot;javax.tools.JavaCompilerでコンパイルするときにクラスパスを指定する@Java - tanakahdaのプログラマ手帳&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-02-17 14:39:40</published>
  <title>javax.tools.JavaCompilerでコンパイルするときにクラスパスを指定する@Java</title>
  <type>rich</type>
  <url>https://tanakahda.hateblo.jp/entry/2024/02/17/143940</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
