Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

VMOptions javaagent Parameter directory error #84

Closed
1 of 3 tasks
HyWell opened this issue Apr 29, 2020 · 3 comments
Closed
1 of 3 tasks

VMOptions javaagent Parameter directory error #84

HyWell opened this issue Apr 29, 2020 · 3 comments
Assignees
Milestone

Comments

@HyWell
Copy link

HyWell commented Apr 29, 2020

I'm submitting a…

  • bug report
  • feature request
  • other

Short description of the issue/suggestion:
VMOptions javaagent Parameter directory error

Steps to reproduce the issue/enhancement:

  1. edit plist.info
  2. set vmoptions javaagent
    <key>VMOptions</key> <array> <string>-javaagent:Contents/Resources/Loader.jar</string> </array>
  3. Contents/MacOS/universalJavaApplicationStub

What is the expected behavior?
Loader.jar can be found

What is the current behavior?
Error opening zip file or JAR manifest missing

Do you have screenshots, GIFs, demos or samples which demonstrate the problem or enhancement?
image

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • universalJavaApplicationStub version: 3.0.6
  • Mac OS version: 10.15.4
  • Java version(s): openJDK11

Other information (e.g. related issues, suggestions how to fix, links for us to have context)
use getfullpath is work, for example javaagent:/Users/hywell/Loader.jar

@tofi86
Copy link
Owner

tofi86 commented Apr 29, 2020

Thanks for the report. There are a couple of other keys (WorkingDirectory, ClassPath, Arguments, Properties) where we replace occurances of $APP_PACKAGE, $JAVAROOT and $HOME, but not (yet) on the VMOptions key.

But I could add this as an enhancement so you would be able to use it as follows:

<key>VMOptions</key>
<array>
  <string>-javaagent:"$APP_PACKAGE/Contents/Resources/Loader.jar"</string>
</array>

Not sure yet when to find time for this and for testing... Please give me a few days...

@tofi86 tofi86 self-assigned this Apr 29, 2020
@tofi86 tofi86 added this to the Version 3.0.7 milestone Apr 29, 2020
@tofi86
Copy link
Owner

tofi86 commented Jan 6, 2021

Fixed with cbee3f0

You can use it with my example from above.

Sorry for the huge delay! It has been a tough year for all of us... :-(

@tofi86
Copy link
Owner

tofi86 commented Jan 7, 2021

Version 3.1.0 has officially been released 🎉

Details: https://github.com/tofi86/universalJavaApplicationStub/releases/tag/v3.1.0

Note: The release now also contains compiled binaries which seem to be necessary in macOS 11.0 "Big Sur" and later...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants