ok. Well you can't really expect such old releases to work on JDKs they were never tested on. The first apache release was 9.0 btw.

Stick to JDK 11 or 8 and old builds should work, or use a more recent NB release as your dependency.

-mbien

On 26.08.24 07:35, Rafał Ziółkowski wrote:
You are right! Release802 is as version reference. Interesting why, ideed I maintain an old Netbeans Application, but this should not bother new netbeans with java 18.

Thank You! Now it's building correctly

Rafal Z

W dniu 23.08.2024 o 16:31, Michael Bien pisze:
if you open the pom.xml from mavenproject8-parent and take a look at the
netbeans.version property, what value does it have?

it should say RELEASE220.

one explanation for this could be that you are trying to build against
RELEASE90 or something like that - this would fail due to pack200.

-mbien

On 23.08.24 15:52, Rafał Ziółkowski wrote:
Hi

  unfortunately on my computer it doesn't work. After creating project
I get 3 items in Projects-component: mavenproject8-app,
mavenproject8-branding and mavenproject8-parent. After building
mavenproject8-parent I get output:

------------------------------------------------------------------------
Reactor Summary for mavenproject8-parent 1.0-SNAPSHOT:

mavenproject8-parent ............................... SUCCESS [ 0.168 s]
mavenproject8-branding ............................. SUCCESS [ 1.613 s]
mavenproject8-app .................................. FAILURE [ 0.927 s]
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time:  3.693 s
Finished at: 2024-08-23T15:37:16+02:00
------------------------------------------------------------------------
Failed to execute goal
org.apache.netbeans.utilities:nbm-maven-plugin:14.1:cluster-app
(default-cluster-app) on project mavenproject8-app: Execution
default-cluster-app of goal
org.apache.netbeans.utilities:nbm-maven-plugin:14.1:cluster-app
failed: Using jdk 14 and later prevents reading of NBM created with
pack200 -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e
switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please
read the following articles:
[Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

After correcting the problems, you can resume the build with the command
  mvn <args> -rf :mavenproject8-app

Perhaps there is a problem on my computer. Maven is bundle, so I think
it was installed while installation of netbeans.

There another installations of older versions od Netbeans, may be
something interferes with new installation

Thank's for answer


With Regards

Rafal Z


W dniu 23.08.2024 o 15:25, Michael Bien pisze:
Hi Rafal,

pack200 is an outdated bytecode compression method. If you create a new NetBeans Application, the project template you would get should not make
use of it by default.

I just tried it again using NetBeans 22 on JDK 18 and "clean install"
worked.

btw JDK 18 itself is no longer supported as you can see at
https://javaalmanac.io/jdk/ (JDK 21 would be the current LTS release),
however this should make no difference in this particular case.

regards,
michael


On 23.08.24 14:10, Rafał Ziółkowski wrote:

Hallo,

    With Netbeans 22 I've created a maven project of Netbeans
Application using wizard 'java with maven->netbeans application'. Any
try to clean and install with java 18results in following statement:
"Failed to execute goal
org.apache.netbeans.utilities:nbm-maven-plugin:14.2:cluster-app
(default-cluster-app) on project mavenproject7-app: Execution
default-cluster-app of goal
org.apache.netbeans.utilities:nbm-maven-plugin:14.2:cluster-app
failed:*Using jdk 14 and later prevents reading of NBM created with
pack200* -> [Help 1]"
I've read, that since java 14 pack200 algorithm is removed. So how can
I compile such application with java 14+? Or is it impossible with
maven? If so the entry "netbeans application" in new project wizard
should be grayed. Since I've could run Netbeans, I suppose that such
compilation is possible, may be without maven. I'm compiling the app
as it was first created with wizard, without any changes. For now I
don't know how to advance with the project, I would appreciate any
idea.


With Regards

Rafal Z



Bądź ostrożny. Wiadomość zewnętrzna. Nie otwieraj załączników i nie
klikaj w linki, jeśli nie rozpoznajesz nadawcy lub cokolwiek budzi
twoją wątpliwość.

____






Bądź ostrożny. Wiadomość zewnętrzna. Nie otwieraj załączników i nie klikaj w linki, jeśli nie rozpoznajesz nadawcy lub cokolwiek budzi twoją wątpliwość.

____






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to