CVE and update status of the FreeBSD ports tree3,864 unaddressed CVEs in 671 portsAll times are CET
Port details

java/javavmwrapper 2.7.10_2

Wrapper script for various Java Virtual Machines

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

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

PRSummaryStatusChanged
259468needs-qa maintainer-feedback? merge-quarterly? java/javavmwrapper: Add a java_home commandOpen2026-05-20
271467maintainer-feedback? java/javavmwrapper: setting a JAVAVM_OPTS breaks jpsNew2023-05-17

Commits (83)

Harald Eilertsen (haraldei) · 2.7.10_2
java/javavmwrapper: JAVA_VERSION does not work with openjdk25

Remove the hard coded lists of java version numbers to iterate over when
JAVA_VERSION is set to N+. Instead use N as the lowest boundary, and the
latest available JDK as the upper bound, and just scan for the highest
available version satisfying the requirement.

Ideally it should be possible to deduce the upper bound from the
available java versions in ${PREFIX}/etc/javavms, but leaving that for
later.

Co-authored-by: jonc@chen.org.nz
PR:		293231
Reported by:	jonc@chen.org.nz
Sponsored by:	The FreeBSD Foundation
7878106082
Ronald Klop (ronald) · 2.7.10_1
*/*: bump portrevision after java_default=21 update

PR:	272855
2baaf16375
Muhammad Moinur Rahman (bofh) · 2.7.10
Mk/**java.mk: Convert bsd.java.mk to USES

The following features have been added or changed:
- Instead of USE_JAVA use USES=java. This defaults to
  USES=java:build,run if NO_BUILD is undefined. Else it defaults to
  USES=java:run
- Instead of USE_ANT=yes use USES=java:ant which also implies
  USES=java:build
- Instead of JAVA_BUILD=yes use USES=java:build. Does not imply run or
  extract
- Instead of JAVA_EXTRACT=yes use USES=java:extract does not imply
  build or run
- Instead of JAVA_RUN=yes use USES=java:run does not imply extract or
  build
- Instead of USE_JAVA=<version> use USES=java and JAVA_VERSION=<version>

Approved by: mat (portmgr), glewis
Differential Revision:  https://reviews.freebsd.org/D48201
0835676e36
Greg Lewis (glewis) · 2.7.10
java/javavmwrapper: Match currently supported versions
da470f1747
Baptiste Daroussin (bapt) · 2.7.9_1
MAN?PREFIX: eleminate its usage  and move man to share/man
64631af5a7
Tobias C. Berner (tcberner) · 2.7.9
java: remove 'Created by' lines

A big Thank You to the original contributors of these ports:

  *  Alex Dupre <ale@FreeBSD.org>
  *  Alex Semenyaka <alex@rinet.ru>
  *  Alexander Yerenkow <yerenkow@gmail.com>
  *  Anton Yudin (<contact@toha.org.ua>)
  *  Anton Yudin <toha@toha.org.ua>
  *  Benjamin Close <benjsc@FreeBSD.org>
  *  Björn König <bkoenig@alpha-tierchen.de>
  *  Conor McDermottroe <ports@mcdermottroe.com>
  *  Danilo Egea Gondolfo <danilo@FreeBSD.org
  *  Dave Glowacki <dglo@ssec.wisc.edu>
  *  Ernst de Haan <znerd@FreeBSD.org>
  *  Eugene Grosbein <ports@grosbein.net>
  *  Filippo Natali <filippo@widestore.net>
  *  Gerrit Beine <gerrit.beine@gmx.de>
  *  Greg Lewis <glewis@FreeBSD.org>
  *  Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
  *  Jason Helfman <jgh@FreeBSD.org>
  *  Jeremy <karlj000@unbc.ca>
  *  Johannes Dieterich <dieterich@ogolem.org>
  *  Johannes Dieterich <jmd@FreeBSD.org>
  *  Jonathan Chen <jonc@chen.org.nz>
  *  Jose Marques
  *  Jose Marques <noway@nohow.demon.co.uk>
  *  Lapo Luchini <lapo@lapo.it>
  *  Lev Serebryakov <lev@FreeBSD.org>
  *  Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
  *  Matthew Dillon <dillon@backplane.com>
  *  Maxim Sobolev <sobomax@FreeBSD.org>
  *  Mikhail T. <mi@aldan.algebra.com>
  *  Mikhail T. <michael@fun-box.ru>
  *  Mikhail Teterin
  *  Nicola Vitale <nivit@FreeBSD.org>
  *  Nicola Vitale <nivit@email.it>
  *  OISHI Masakuni <yamasa@bsdhouse.org>
  *  OKAZAKI Tetsurou
  *  Pedro Giffuni
  *  Simeo Reig <reig.simeo@gmail.com>
  *  Sutra Zhou <zhoushuqun@gmail.com>
  *  Tom Judge <tj@FreeBSD.org>
  *  Volker Stolz <vs@FreeBSD.org>
  *  Wen Heping <wenheping@gmail.com>
  *  Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw>
  *  gldisater@gldis.ca
  *  ijliao
  *  jake@checker.org
  *  jpbeconne
  *  lon_kamikaze@gmx.de
  *  mi
  *  nordwick@xcf.berkeley.edu
  *  nork@FreeBSD.org
  *  olgeni@FreeBSD.org
  *  rasputin
  *  rfarmer@predatorlabs.net
  *  rtdean@cytherianage.net
  *  tux@pinguru.net

With hat:	portmgr
526869d8dc
Greg Lewis (glewis) · 2.7.9
java/javavmwrapper: Add support for 18 as a version
42d0730fd9
Greg Lewis (glewis) · 2.7.8
java/javavmwrapper: Add support for 17 as a version
72f430924b
Mathieu Arnold (mat) · 2.7.7
all: Remove all other $FreeBSD keywords.
135fdeebb9
Mathieu Arnold (mat) · 2.7.7
Remove # $FreeBSD$ from Makefiles.
305f148f48
Greg Lewis (glewis) · 2.7.7
Add support for 16 as a version specifier
47213c9c73
Greg Lewis (glewis) · 2.7.6
Add support for 15 as a version
515df34e13
Greg Lewis (glewis) · 2.7.5
Teach javavmwrapper about "14" as a version specifier
34ef41c3e7
Greg Lewis (glewis) · 2.7.4
* Teach javavmwrapper about "13" as a version specifier * Remove some white space while I'm here
7c2b69985f
Jung-uk Kim (jkim) · 2.7.4
Clean up after java/openjdk6 and java/openjdk6-jre removal

java/openjdk6 support was removed from Mk/bsd.java.mk (r512662) and
java/openjdk6 and java/openjdk6-jre were removed from the ports tree
(r512663).  Now this patch completely removes remaining stuff from the
ports tree.

PR:			241953 (exp-run)
Reviewed by:		glewis
Approved by:		portmgr (antoine)
Differential Revision:	https://reviews.freebsd.org/D22342
5a52a08234
Greg Lewis (glewis) · 2.7.3
Fixes to pkg-install and version handling

* In pkg-install, fix the exclusion of the bootstrap directories. [1]
* In pkg-install, fix the find expression so it actually finds jdks if
  there are multiple present. [1]
* When determining the VM version, be better about ensuring we end up
  with only a number.

PR:		239705 [1]
Submitted by:	John Hein <jcfyecrayz@liamekaens.com> [1]
2d13292940
Greg Lewis (glewis) · 2.7.2
Sort VMs by version numerically

* VMs were sorted by VM version by lexicographically sorting the version as
  a string.  Switch to numeric sorting now that there are versions like
  10, 11, and 12 so that the intended sort order (most recent first) is
  preserved.
* Bump minor version.
587ee3db52
Greg Lewis (glewis) · 2.7.1
Update manual pages

* Update currently supported version specifiers.
* Update currently supported vendors.
* Bump minor version.

This is mostly based on the patch in PR 223304.

PR:		223304
Submitted by:	Tommy P <tommyhp2@gmail.com>
446cb09333
Greg Lewis (glewis) · 2.7
Support for newer Java versions

* Switch the internal fallback logic (which is only run when the ports
  system is absent) to use modern Java versioning (e.g. 9 rather than 1.9)
* Add in support for specifying 10+, 11+ and 12+ as requested versions.
* Bump version to 2.7

Notes:

* The fallback logic doesn't support the idea of a default version the way
  bsd.java.mk does.  This was already the case.
* The sorting of VMs in the configuration file doesn't numerically sort
  versions 10 and higher correctly yet.  This will be addressed shortly.
* Manual pages need updating.
* The fallback logic is only used if bsd.java.mk is absent.  This should
  be a no-op if it is present.

PR:		223304
8292f8dc5d
Dmitry Marakasov (amdmi3) · 2.6
- Add LICENSE - Add NO_ARCH

PR:		228744
Approved by:	maintainer timeout (glewis, 2 weeks)
689f8f9be3
Greg Lewis (glewis) · 2.6
. Prepare for JDK9 support.
023c67f707
Baptiste Daroussin (bapt) · 2.5_2
Remove the pkg-deinstall script forgotten during r419364

Pointyhat:	bapt
PR:		210313
12e5cb6b96
Baptiste Daroussin (bapt) · 2.5_1
Remove the deinstall script that appears to be deleting all the temporary files created by pkg(8) during upgrades

It happens because the deinstall script tries to clean up the potential manual
VM registration by cleaning out all symlinks to bin/javavm

Given all VM are registring/unregistering themselves this part is not needed

The other thing the script was doing handling the configuration which has been
replaced by @sample.

pkg-install has been modified to drop the handling of the configuration file but
keep the auto registration if all VM found. While this part is not necessary as
well, we keep it because otherwise anyone doing delete/install on javavmwapper
version 2.5 being the installed version would end up with all VM unregistered.

The pkg-install should be removed after EOL of FreeBSD 10.3

PR:		210313
MFH:		2016Q3
64f16bafaf
Mathieu Arnold (mat) · 2.5
Fix ports that confused the meaning of WRKDIR and WRKSRC.

PR:		204056
Submitted by:	mat
Reviewed by:	bapt
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D2735
065c026fe5
Greg Lewis (glewis) · 2.5
. Update internal fallback logic, including:   . Remove support for diablo* and j* ports.   . Add support for linux-oracle* ports.   . Remove support for Java version 1.5.   . Add support for Java version 1.8.   . Add support for Oracle as a vendor. . Bump PORTVERSION. . Remove CONFLICTS for ports that no longer exist.
b947f3bb26
Baptiste Daroussin (bapt) · 2.4_3
Support stage
fcbbbf7bf9
Baptiste Daroussin (bapt) · 2.4_3
Add NO_STAGE all over the place in preparation for the staging support (cat: java)
c2c2a2b86b
Greg Lewis (glewis) · 2.4_3
. Cope with legacy versions "1.5" (expands to 1.6) and "1.5+" (expands to   1.6 1.7). . Remove freebsd and bsdjava as valid vendors.
167b1fa7bc
Jung-uk Kim (jkim) · 2.4_2
Fix deinstallation script for 7.x.  -samefile option for find(1) does not exist there.

Reviewed by:	glewis (maintainer)
Feature safe:	yes
ea1e79cd5a
Jung-uk Kim (jkim) · 2.4_1
Shut up noise when there is no JDK/JRE to register.

Reviewed by:	glewis (maintainer)
Feature safe:	yes
e93fd31996
Jung-uk Kim (jkim) · 2.4_1
- Ignore bootstrap-openjdk when we automatically register existing JVMs. - Make sure to destroy all symlinks pointing to ${PREFIX}/bin/javavm and ${PREFIX}/etc/javavms when we deinstall the package.

Reviewed by:	glewis (maintainer)
Feature safe:	yes
ace34c1a63
Greg Lewis (glewis) · 2.4
. Make the version numbers consistent so they can be compared correctly.   E.g. for jdk1.6.0 and openjdk6 will use '6' as the version. . Modify the preference order for Java VMs used by the internal fallback   logic to reflect that openjdk is now the default Java VM rather than diablo. . Remove code for Java vendors that are no longer in the ports tree (e.g.   blackdown, ibm). . Remove code for ha

PR:		167799 [1]
c1e89281c2
Greg Lewis (glewis) · 2.3.5
. Minor man page tweaks:   . Remove references to ibm (we have no IBM JDKs in the tree)   . Remove references to JDK 1.4.2 (only 1.5+ are in the tree)
2772382d5c
Mark Linimon (linimon) · 2.3.5
Now that the Java 1.3 and Java 1.4 ports are deprecated and will expire soon, remove support for them from bsd.java.mk.  As Jikes is not available in Java 1.5 or higher, remove it from bsd.java.mk too (suggested by hq@) and from the ports which used it (only occurences were USE_JIKES=no).  Support for the Blackdown VM is also removed, as it is not available in Java 1.5 and higher.

Also remove the mapping from Java 1.1-1.4 to Java 1.5+ in bsd.java.mk to detect
old, broken ports; therefore bump the minimal value of JAVA_VERSION to 1.5.
While here, replace static values of JAVA_VERSION in files/*.in by
%%JAVA_VERSION%% .

PR:		ports/158969
Submitted by:	rene
Tested on:	pointyhat-west -exp
06e6677793
Jung-uk Kim (jkim) · 2.3.5
Fix "realpath: : No such file or directory" error from the latest realpath.

Reported by:	Mike Jakubik (mike dot jakubik at intertainservices dot com)
Reviewed by:	glewis (maintainer)
72445c6ce6
Greg Lewis (glewis) · 2.3.4
. Add support for JAVA_VERSION of 1.7. . Note such support in the manual pages. . Correctly determine the Java version of the OpenJDK ports when bsd.java.mk   isn't present. . Bump version to 2.3.4.
a2e9b71248
Greg Lewis (glewis) · 2.3.3
. Add support for openjdk6. . Sort vendor references.
e6192a26ab
Jung-uk Kim (jkim) · 2.3.2
Try jman(1) from ports/japanese/man instead of man(1) for japanese manual pages if LANG is set to ja_JP.eucJP and the port is installed. Diablo packages contain japanese manual pages and jman seems to format them mostly fine.

Reviewed by:	glewis (maintainer)
57e298067e
Jung-uk Kim (jkim) · 2.3.1
- Add support for 1.6 VMs. - Fix reversed vendors (bsdjava <-> freebsd). - Update port version to 2.3.1.

Reviewed by:	glewis (maintainer)
13191cd6ce
Greg Lewis (glewis) · 2.3
. Cross reference manvm(1).
8fd6d36ac0
Greg Lewis (glewis) · 2.3
. The new Diablo JDK release doesn't need -XX:+UseMembar.
0a27ea89b8
Greg Lewis (glewis) · 2.3
. Add manvm(1).  This is similar to javavm(1), but allows one to view the   manual pages for the different VMs. [1] . Minor code clean ups (white space, redirection).

PR:		93099
7fdb2af1ba
Greg Lewis (glewis) · 2.2
. Introduce the JAVAVM_DRYRUN variable.  If this is set, then javavm will   not invoke any Java programmes, but will instead print out what it would   have invoked and some related settings.

This work was inspired by the PR, but doesn't use its implementation.

PR:		96050
2469e3b726
Greg Lewis (glewis) · 2.1_3
. Revert previous commit.  It was my recollection that javac needed the   flags when being used to bootstrap the jdk15 port, and this was confirmed   by somebody else.  However, javac doesn't seem to be happy with it so   turn it back off.

Submitted by:	hq
ca4a8507f4
Greg Lewis (glewis) · 2.1_2
. Diablo's javac also needs -XX:+UseMembar.
1868851b7a
Greg Lewis (glewis) · 2.1_1
. Restrict the -XX:+UseMembar option to the java(1) programme to prevent it   causing problems for programmes such as jar(1).  I actually believe it is   needed by some of the other programmes, but we'll add it as needed. . Bump PORTREVISION for this change.

PR:		98586
Submitted by:	Achilleas Mantzios <achill@matrix.gatewaynet.com>
efe0ee6196
Greg Lewis (glewis) · 2.1
. ! -z -> -n for clarity.

Suggested by:	hq
6cc070f32d
Greg Lewis (glewis) · 2.1
. Allow the setting up of command line options to be passed to the   invoked Java VM.

Reviewed by:	hq
3694308948
Greg Lewis (glewis) · 2.0_7
. Bump PORTREVISION for the previous fix.

Suggested by:	hq
9f137bf589
Greg Lewis (glewis) · 2.0_6
. Avoid stomping on environment variables by prefixing variable names with   _JAVAVM_.  The notable exception is JAVA_HOME, which is deliberately set   by the wrapper.

PR:		88048
7947c327e5