You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Daniel Hartman <dh...@yahoo.com.INVALID> on 2025/07/04 11:17:08 UTC

Platform Application Deployment: Missing netbeans-javaagent.jar

All, 

I just migrated my platform application from NetBeans 12.4 to NetBeans 26.

I can create a distribution as before by right-clicking my application within the IDE and selecting Package As → Zip Distribution. However, when I attempt to run the application outside the IDE, I receive the following error:

  Error opening zip file or JAR manifest missing: /Applications/InnerVoice/0.26.5/InnerVoice.app/Contents/Resources/InnerVoice/ide/netbeans-javaagent.jar

Everything runs fine if I copy the missing netbeans-javaagent.jar to the ide folder.

Here are some additional particulars:

  Development machine: JDK 21, NetBeans 26
  Stand-alone machine: JDK 24

I would appreciate any insight into why this JAR file is required and why it is not being included in the generated ZIP distribution.

Thank you in advance for your help.

Sincerely,

Dan

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

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


Re: Platform Application Deployment: Missing netbeans-javaagent.jar

Posted by Daniel Hartman <dh...@yahoo.com.INVALID>.
Thank you, Neil and Michael.

You're right, I copied the configuration from the IDE.  Removing the reference to the javaagent resolved the issue.  

Sincerely,

Dan




On Monday, July 7, 2025 at 06:14:47 AM CDT, Neil C Smith <ne...@apache.org> wrote: 





Hi Daniel,

On Fri, 4 Jul 2025 at 17:04, Michael Bien <mb...@gmail.com> wrote:
> You can copy the jar or remove the "-J-javaagent:..." jvm argument from the application launch config if you are not worried about the bug.


I assume you copied this configuration from the IDE into your
application configuration?  It shouldn't be picked up by default.

Ideally this could be opted into by including o.n.agent.  It doesn't
look like the o.n.agent module NBM is actually usable though - it
seems to be missing the agent itself?

Best wishes,

Neil

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

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


Re: Platform Application Deployment: Missing netbeans-javaagent.jar

Posted by Neil C Smith <ne...@apache.org>.
Hi Daniel,

On Fri, 4 Jul 2025 at 17:04, Michael Bien <mb...@gmail.com> wrote:
> You can copy the jar or remove the "-J-javaagent:..." jvm argument from the application launch config if you are not worried about the bug.

I assume you copied this configuration from the IDE into your
application configuration?  It shouldn't be picked up by default.

Ideally this could be opted into by including o.n.agent.  It doesn't
look like the o.n.agent module NBM is actually usable though - it
seems to be missing the agent itself?

Best wishes,

Neil

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

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


Re: Platform Application Deployment: Missing netbeans-javaagent.jar

Posted by Michael Bien <mb...@gmail.com>.
Hi,

On 7/4/25 13:17, Daniel Hartman wrote:
> All, 
>
> I just migrated my platform application from NetBeans 12.4 to NetBeans 26.
>
> I can create a distribution as before by right-clicking my application within the IDE and selecting Package As → Zip Distribution. However, when I attempt to run the application outside the IDE, I receive the following error:
>
>   Error opening zip file or JAR manifest missing: /Applications/InnerVoice/0.26.5/InnerVoice.app/Contents/Resources/InnerVoice/ide/netbeans-javaagent.jar
>
> Everything runs fine if I copy the missing netbeans-javaagent.jar to the ide folder.
>
> Here are some additional particulars:
>
>   Development machine: JDK 21, NetBeans 26
>   Stand-alone machine: JDK 24
>
> I would appreciate any insight into why this JAR file is required and why it is not being included in the generated ZIP distribution.

netbeans-javaagent.jar is used as temporary workaround to patch a JDK bug which caused copy/paste issues on windows. It is meant to be active for NetBeans itself, not necessarily for platform applications (#8361).

You can copy the jar or remove the "-J-javaagent:..." jvm argument from the application launch config if you are not worried about the bug.

JDK 25 will contain the fix so it won't be needed anymore (JDK-8353950).

-mbien

>
> Thank you in advance for your help.
>
> Sincerely,
>
> Dan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>


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

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