. Avoid an infinite loop by ignoring JAVA_HOME if its set to the location of the wrapper script. I'm using a different patch than Herve submitted, but the idea is the same. . Bump PORTREVISION. Submitted by: hqdbc431427c
Port details
java/javavmwrapper 2.7.10_2
Wrapper script for various Java Virtual Machines
Port info
- Maintainer
- glewis@FreeBSD.org
- Packages
- latest: 2.7.10_2
- Upstream
- up to date
- Last update
- to 2.7.10_2 · 7878106082
- Quarterly
- 2026Q4: 2.7.10_2
- Links
- cgit · VuXML · Report wrong data
Install
- Package
# pkg install javavmwrapperinstalls 2.7.10_2 fromlatest; fromquarterly(2026Q4) 2.7.10_2- Port
# cd /usr/ports/java/javavmwrapper && make install clean- Size
- 17 KiB download · 34 KiB installed
- Depends on
- nothing
- License
- BEERWARE and BSD2CLAUSE
Packages by version and architecture
latest
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 2.7.10_2 | 2.7.10_2 | – |
| FreeBSD 15 | 2.7.10_2 | 2.7.10_2 | – |
| FreeBSD 14 | 2.7.10_2 | 2.7.10_2 | 2.7.10_2 |
quarterly (2026Q4)
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 2.7.10_2 | 2.7.10_2 | – |
| FreeBSD 14 | 2.7.10_2 | 2.7.10_2 | 2.7.10_2 |
version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.
Unaddressed and VuXML only (0)
No unaddressed CVE and nothing reported by
pkg audit for the packaged version 2.7.10_2.Fixed (0)
No VuXML entries for this package.
Problem reports (2) · open in Bugzilla, most recently changed first
| PR | Summary | Status | Changed |
|---|---|---|---|
| 259468 | needs-qa maintainer-feedback? merge-quarterly? java/javavmwrapper: Add a java_home command | Open | 2026-05-20 |
| 271467 | maintainer-feedback? java/javavmwrapper: setting a JAVAVM_OPTS breaks jps | New | 2023-05-17 |
Commits (83)
. Add a couple of comments. . Kick unprivileged users out early in registervm/unregistervm to prevent double error messages.9a4718a679
. Check the user can read/write the configuration file and that it exists before attempting to sort it when running checkvms. This prevents a double error message for an unprivileged user. . When asked to register a VM that is already registered, don't error. Print a warning that the VM is already registered and don't add it to the configuration file (but do check its links and sort the c 'make install -DFORCE_PKG_REGISTER' erroring out during the post-install stage for the JDK ports. Bump PORTREVISION for this change since it affects the various JDK ports. [2] Reported by: anholt, via hq [2]d9e60aea40
. Update description. Suggested by: hq2cad98267f
. Try to clarify that the BUGS section is talking about the Java VM selection procedure used when ${PORTSDIR}/Mk/bsd.java.mk isn't present. . Fix a typo (JAVA_PREFERRED_PORT -> JAVA_PREFERRED_PORTS).
Pointed out by: hq4f7387e2e5. A big mdoc fixup kindly provided by the mdoc police. Any problems should be attributed to my merging of the mdoc fixes with some content changes I had made. Submitted by: simon5729185ae1
. Yet more clarification of how the selection of the Java VM can be different depending on whether bsd.java.mk exists on the system.0c91c97816
. Fix some sentence breaks. . Add some more details on how javavmwrapper selects the VM. [2] Suggested by: hq [2]3d485a44fb
. Document that the environment variables can also be a space delimited list of values, not just a single value. Pointed out by: hq5d2e3b3a6f
. Install manual pages for javavmwrapper. . Bump PORTREVISION. PR: 27075d964895873
. Ignore errors from the call to registervm, otherwise one sees a whole slew of spurious errors when upgrading the port.7ea5326d8e
. Separate standard variables from variables local to this Makefile.df7dcddd09
One more place to reflect existence of jdk 1.5. Bump PORTREVISIONfe509ee261
Take into account the '-devel' package name suffix when registering CONFLICTS with java/kaffe-devel Pointy hat to: mee4b8a8ca7a
- Register CONFLICTS with java/kaffe and java/kaffe-devela14c373bb7
. Move pkg-install to files/pkg-install.in since it is modified before use. This also fixes a problem that when being modified it wasn't specified by absolute path. Reported by: Robert Backhaus <robbak@robbak.com>6e54503ac8
. Run the pkg-install script correctly. . Bump PORTREVISION for this change and the previous change to javavmwrapper itself.71d3fdc85a
. Some minor comment and formatting fixes (should have probably have been done separately). . Much more stringent checks on VMs that we are trying to register. This prevents most bogus and circular registrations. [1] Suggested by: Josh Elsasser <josh@elsasser.org> [1]5e2e151b0f
. javavmwrapper uses PATH to make sure it gets the system version of utilities. Unfortunately this overrides any PATH that may have been set by the user and hence affects the ability of java to execute external programmes. So, save the PATH before setting it and then restore it immediately before executing java. . Bump PORTREVISION for this fix. Reported by: Christian Laursen <xi@borderworlds.dk>59fc5151e6
. Usher in javavmwrapper 2.0, a rewrite of the wrapper scripts designed to allow the simple use of multiple VMs. Brief detail of the main changes: . When a VM is registered, symbolic links for its executables are created in ${LOCALBASE}/bin. This allows people to just type 'java', 'javac', etc. without having to add the VM installation directory to their PATH. . The actual 'jav
This is built on the ideas of znerd, hq and Shelton C. Johnson Jr., with
hq and Shelton contributing code and reviews.
PR: 27079, 39080
Reviewed by: hq, Shelton C. Johnson Jr. <shelton_c_j@yahoo.com>280df4e4ce. JAVALIBDIR is more appropriate than JAVAJARDIR now we have it.6a5d768670
Add a classpath script.d811cc16ac
Let be hohest: I really don't have a time now to properly maintain all these great pieces of software, so that let others with more free time to take over them.10588346d3
Clear moonlight beckons. Requiem mors pacem pkg-comment, And be calm ports tree. E Nomini Patri, E Fili, E Spiritu Sancti.7e52725f2a
Long overdue fix: correctly process arguments with spaces.1773476e67
Revert previous fix - it was not properly thought out. Submitted by: ted@tednet.nl (Ted Lindgreen)32a641962e
Use "$@" instead of "$*" to pass parameters to a subshell. This ensures that parameters with spaces are passed correctly. PR: 32191 Submitted by: Ben Suffolk <ben.suffolk@orange.co.uk>3d90271529
Fix typoc996aa60be
Whitespace-only: Make indentation uniform across my ports.10e2f8893d
Add "unset JAVA_HOME" to make javavmwrapper working with some brain damaged software (Adobe AcrobatViewer).ceec80fd32
Fix typo.0f07eca387
Handle comments in all places.54240bf8a1
Initial import of javavmwrapper - a simple shell script which would allow Java-based ports to use any of the Java Virtual Machines installed on the system.a69acf6529