<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>I can't get my Liferay Portlet Project compiled, builted, etc.</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121695099" />
  <subtitle>I can't get my Liferay Portlet Project compiled, builted, etc.</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121695099</id>
  <updated>2026-04-04T08:57:26Z</updated>
  <dc:date>2026-04-04T08:57:26Z</dc:date>
  <entry>
    <title>RE: RE: I can't get my Liferay Portlet Project compiled, builted, etc.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121763414" />
    <author>
      <name>Jiang Simon</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121763414</id>
    <updated>2023-05-02T22:56:41Z</updated>
    <published>2023-05-02T22:56:40Z</published>
    <summary type="html">&lt;p&gt;you should not use jdk 17, you should use jdk 11 or jdk 8 base on
  your project requirement. &lt;/p&gt;</summary>
    <dc:creator>Jiang Simon</dc:creator>
    <dc:date>2023-05-02T22:56:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: I can't get my Liferay Portlet Project compiled, builted, etc.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121762722" />
    <author>
      <name>Matti Kiviharju</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121762722</id>
    <updated>2023-05-02T15:27:54Z</updated>
    <published>2023-05-02T13:30:07Z</published>
    <summary type="html">&lt;p&gt;I have these settings:&lt;/p&gt;
&lt;p&gt;
  &lt;img alt="" src="/documents/d/guest/2023-05-02-png?imagePreview=1"&gt;
  &lt;br&gt; ​​​​​​​&lt;/p&gt;</summary>
    <dc:creator>Matti Kiviharju</dc:creator>
    <dc:date>2023-05-02T13:30:07Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: I can't get my Liferay Portlet Project compiled, builted, etc.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121762793" />
    <author>
      <name>Jiang Simon</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121762793</id>
    <updated>2023-05-02T13:09:29Z</updated>
    <published>2023-05-02T13:08:37Z</published>
    <summary type="html">&lt;p&gt;If you use Eclispe Jee + install update site, you can try to manually
  set the java home path for gradle, you can find gradle settings in 
  Eclipse, click on the &amp;quot;Window&amp;quot; menu and select
  &amp;quot;Preferences&amp;quot;, then you can find gradle java home in this
  setting page like below.&lt;/p&gt;
&lt;p&gt;
  &lt;img alt="" src="/documents/d/guest/screenshot-from-2023-05-02-21-01-26-png?imagePreview=1"&gt;
  &lt;br&gt;  &lt;/p&gt;</summary>
    <dc:creator>Jiang Simon</dc:creator>
    <dc:date>2023-05-02T13:08:37Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: I can't get my Liferay Portlet Project compiled, builted, etc.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121733356" />
    <author>
      <name>Matti Kiviharju</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121733356</id>
    <updated>2023-04-18T17:47:55Z</updated>
    <published>2023-04-18T16:45:42Z</published>
    <summary type="html">&lt;p&gt;Here is error message:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'HelloWorld'.
&amp;gt; Dependencies can not be declared against the `compileClasspath` configuration.

* Try:
&amp;gt; Run with --stacktrace option to get the stack trace.
&amp;gt; Run with --info or --debug option to get more log output.
&amp;gt; Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/8.0.2/userguide/command_line_interface.html#sec:command_line_warnings

CONFIGURE FAILED in 6s

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'HelloWorld'.
&amp;gt; Dependencies can not be declared against the `compileClasspath` configuration.

* Try:
&amp;gt; Run with --stacktrace option to get the stack trace.
&amp;gt; Run with --info or --debug option to get more log output.
&amp;gt; Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/8.0.2/userguide/command_line_interface.html#sec:command_line_warnings

CONFIGURE FAILED in 1s&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;
  &lt;img alt="" src="/documents/d/guest/2023-04-18-png?imagePreview=1"&gt;
  &lt;br&gt; ​​​​​​​&lt;/p&gt;</summary>
    <dc:creator>Matti Kiviharju</dc:creator>
    <dc:date>2023-04-18T16:45:42Z</dc:date>
  </entry>
  <entry>
    <title>RE: I can't get my Liferay Portlet Project compiled, builted, etc.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121732459" />
    <author>
      <name>Adrian Häussler</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121732459</id>
    <updated>2023-04-18T06:33:52Z</updated>
    <published>2023-04-18T06:33:51Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;you should provide more details about the error, do you have an error
  message, what happens if you try to build..?&lt;br&gt; Also, some more
  details about your project might be helpful, what kind of portlet are
  you building?&lt;br&gt; What is Gredly? Do you mean Gradle?&lt;br&gt;  &lt;br&gt;
  Without knowing the error details its hard to help, it could be anything&lt;/p&gt;</summary>
    <dc:creator>Adrian Häussler</dc:creator>
    <dc:date>2023-04-18T06:33:51Z</dc:date>
  </entry>
  <entry>
    <title>I can't get my Liferay Portlet Project compiled, builted, etc.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121695098" />
    <author>
      <name>Matti Kiviharju</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121695098</id>
    <updated>2023-04-17T14:56:03Z</updated>
    <published>2023-04-15T00:30:26Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I can't get my Liferay Portlet Project compiled, builted, etc.with my
  Eclise IDE, Liferay IDE plugin for Eclipse IDE, and Gredly 8.0.2.
  Installed Java is &lt;span style="font-size: 11.0pt;"&gt;
    &lt;span style="line-height: 107.0%;"&gt;
      &lt;span style="font-family: Calibri , sans-serif;"&gt;Adoptium OpenJDK 11&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;I tried to ask sollutions for this from ChatGPT Open AI but it can't
  help me and looping same answers again and again. Then I asked this
  from ChaGPT:&lt;/p&gt;
&lt;p style="margin-bottom: 11.0px;"&gt;
  &lt;strong&gt;
    &lt;span style="font-size: 11.0pt;"&gt;
      &lt;span style="line-height: 107.0%;"&gt;
        &lt;span style="font-family: Calibri , sans-serif;"&gt;I think now my
          Eclipse IDE for J2EE Developers installation is broken somehow
          and that’s why I can’t compile, build, install J2EE
          dependencies for it with Liferay IDE and Gredly.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style="margin-bottom: 11.0px;"&gt;
  &lt;strong&gt;
    &lt;span style="font-size: 11.0pt;"&gt;
      &lt;span style="line-height: 107.0%;"&gt;
        &lt;span style="font-family: Calibri , sans-serif;"&gt;Phase 1:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style="margin-bottom: 11.0px;"&gt;
  &lt;strong&gt;
    &lt;span style="font-size: 11.0pt;"&gt;
      &lt;span style="line-height: 107.0%;"&gt;
        &lt;span style="font-family: Calibri , sans-serif;"&gt;I installed
          Eclipse IDE when Java 8 SE was installed. In this phase Gredly
          installed J2EE dependencies. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style="margin-bottom: 11.0px;"&gt;
  &lt;strong&gt;
    &lt;span style="font-size: 11.0pt;"&gt;
      &lt;span style="line-height: 107.0%;"&gt;
        &lt;span style="font-family: Calibri , sans-serif;"&gt;Phase 2:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style="margin-bottom: 11.0px;"&gt;
  &lt;strong&gt;
    &lt;span style="font-size: 11.0pt;"&gt;
      &lt;span style="line-height: 107.0%;"&gt;
        &lt;span style="font-family: Calibri , sans-serif;"&gt;I installed
          Oracle OpenJDK 12 and still I was not apple to build, compile,
          etc with Gredly.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style="margin-bottom: 11.0px;"&gt;
  &lt;strong&gt;
    &lt;span style="font-size: 11.0pt;"&gt;
      &lt;span style="line-height: 107.0%;"&gt;
        &lt;span style="font-family: Calibri , sans-serif;"&gt;Phase 3:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style="margin-bottom: 11.0px;"&gt;
  &lt;strong&gt;
    &lt;span style="font-size: 11.0pt;"&gt;
      &lt;span style="line-height: 107.0%;"&gt;
        &lt;span style="font-family: Calibri , sans-serif;"&gt;I installed
          Eclipse Adoptium OpenJDK 11 and deleted J2EE dependencies.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style="margin-bottom: 11.0px;"&gt;
  &lt;strong&gt;
    &lt;span style="font-size: 11.0pt;"&gt;
      &lt;span style="line-height: 107.0%;"&gt;
        &lt;span style="font-family: Calibri , sans-serif;"&gt;Anyway, what to
          do now?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style="margin-bottom: 11.0px;"&gt;And here is ChatGPT AI answer:&lt;/p&gt;
&lt;div class="flex flex-grow flex-col gap-3"&gt;
  &lt;div&gt;
    &lt;div&gt;
      &lt;p&gt;
        &lt;strong&gt;&amp;quot;If you have installed a JDK in your system and
          added it to the system's PATH environment variable, you can
          configure Eclipse to use it as the default JDK for your
          projects. Here are the steps to do that:&lt;/strong&gt;&lt;/p&gt;
      &lt;ol&gt;
        &lt;li&gt;
          &lt;strong&gt;In Eclipse, click on the &amp;quot;Window&amp;quot; menu and
            select &amp;quot;Preferences&amp;quot;.&lt;/strong&gt;&lt;/li&gt;
        &lt;li&gt;
          &lt;strong&gt;In the left pane, expand the &amp;quot;Java&amp;quot; option
            and select &amp;quot;Installed JREs&amp;quot;.&lt;/strong&gt;&lt;/li&gt;
        &lt;li&gt;
          &lt;strong&gt;Click the &amp;quot;Add&amp;quot; button to add a new JRE.&lt;/strong&gt;&lt;/li&gt;
        &lt;li&gt;
          &lt;strong&gt;In the &amp;quot;JRE Type&amp;quot; selection box, choose
            &amp;quot;Standard VM&amp;quot; and click &amp;quot;Next&amp;quot;.&lt;/strong&gt;&lt;/li&gt;
        &lt;li&gt;
          &lt;strong&gt;In the &amp;quot;JRE Definition&amp;quot; screen, click the
            &amp;quot;Directory&amp;quot; button and browse to the directory
            where your JDK is installed (for example, C:\Program Files\Java\jdk-17.0.1).&lt;/strong&gt;&lt;/li&gt;
        &lt;li&gt;
          &lt;strong&gt;Select the newly added JDK and click the
            &amp;quot;OK&amp;quot; button.&lt;/strong&gt;&lt;/li&gt;
        &lt;li&gt;
          &lt;strong&gt;In the left pane, expand the &amp;quot;Java&amp;quot; option
            and select &amp;quot;Compiler&amp;quot;.&lt;/strong&gt;&lt;/li&gt;
        &lt;li&gt;
          &lt;strong&gt;In the &amp;quot;Compiler Compliance&amp;quot; section, select
            the version of Java you want to use for your projects (for
            example, 1.8).&lt;/strong&gt;&lt;/li&gt;
        &lt;li&gt;
          &lt;strong&gt;Click the &amp;quot;Apply and Close&amp;quot; button to save
            the changes.&lt;/strong&gt;&lt;/li&gt;&lt;/ol&gt;
      &lt;p&gt;
        &lt;strong&gt;After these steps, Eclipse should be using the specified
          JDK for your projects. You may need to refresh your project
          and rebuild it to see the changes take effect.&amp;quot;&lt;/strong&gt;&lt;/p&gt;
      &lt;p&gt;
        &lt;strong&gt;And etiher this answer did not help.&lt;/strong&gt;&lt;/p&gt;
      &lt;p&gt;
        &lt;strong&gt;​​​​​​​What I shoud to do now? My project is just a
          HelloWorld &lt;/strong&gt;Liferay Spring MVC Portlet Project.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</summary>
    <dc:creator>Matti Kiviharju</dc:creator>
    <dc:date>2023-04-15T00:30:26Z</dc:date>
  </entry>
</feed>
