Skip to content

Instantly share code, notes, and snippets.

@plisken1
Last active July 9, 2020 12:47
Show Gist options
  • Save plisken1/7a9748b5b9dbdea714f1f9fdb32980ed to your computer and use it in GitHub Desktop.
Save plisken1/7a9748b5b9dbdea714f1f9fdb32980ed to your computer and use it in GitHub Desktop.
Example of manifest and JNLP file for simple java app with all-permissions, that will launch locally
This is an example of the launch.jnlp and manifest.mf files that form part of an app with all-permissions that can be launched from a jnlp file locally.
The app has been created with all-permissions and signed.
The project.properties file is from nbproject/project.properties
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp href="launch.jnlp" spec="1.0+">
<information>
<title>JNLP_Test</title>
<vendor>plisken</vendor>
<homepage href=""/>
<description>JNLP_Test</description>
<description kind="short">JNLP_Test</description>
</information>
<update check="always"/>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.8+"/>
<jar href="JNLP_Test.jar" main="true"/>
</resources>
<application-desc main-class="jnlp_test.NewJFrame">
</application-desc>
</jnlp>
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.7
Application-Name: JNLP_Test
X-COMMENT: Main-Class will be added automatically by build
Caller-Allowable-Codebase: *
Permissions: all-permissions
Codebase: *
Application-Library-Allowable-Codebase: *
Class-Path:
Created-By: 1.8.0_161-b12 (Oracle Corporation)
Main-Class: jnlp_test.NewJFrame
Name: jnlp_test/NewJFrame.class
SHA-256-Digest: SBa6ERniBVCnoNBOt00th9RBXkkRkmhiXPXctmqWNbI=
Name: jnlp_test/NewJFrame$2.class
SHA-256-Digest: PGjf9tT7mF5F9nvVSrz5mYZ8y+OuUEIMrw1Z0pHieoo=
Name: META-INF/INDEX.LIST
SHA-256-Digest: cXjoO+G1cdKEJZwLKw5UDV/DM5kY3yRwzEoFjP7Pi10=
Name: jnlp_test/NewJFrame$1.class
SHA-256-Digest: NmmpY9j3X4mp0svlrI2P/pIKyHzw0DuT2b25MRL0Vzw=
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
ant.customtasks.libs=JWSAntTasks
application.title=JNLP_Test
application.vendor=plisken
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
# This directory is removed when the project is cleaned:
build.dir=build
build.generated.dir=${build.dir}/generated
build.generated.sources.dir=${build.dir}/generated-sources
# Only compile against the classpath explicitly listed here:
build.sysclasspath=ignore
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
# Uncomment to specify the preferred debugger connection transport:
#debug.transport=dt_socket
debug.classpath=\
${run.classpath}
debug.test.classpath=\
${run.test.classpath}
# Files in build.classes.dir which should be excluded from distribution jar
dist.archive.excludes=
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/JNLP_Test.jar
dist.javadoc.dir=${dist.dir}/javadoc
endorsed.classpath=\
${java.home}/lib/javaws.jar
excludes=
includes=**
jar.archive.disabled=${jnlp.enabled}
jar.compress=false
jar.index=${jnlp.enabled}
javac.classpath=
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
javac.external.vm=true
javac.processorpath=\
${javac.classpath}
javac.source=1.8
javac.target=1.8
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}
javac.test.processorpath=\
${javac.test.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.private=false
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
jnlp.applet.height=300
jnlp.applet.width=300
jnlp.codebase.type=no.codebase
jnlp.descriptor=application
jnlp.enabled=true
jnlp.mixed.code=default
jnlp.offline-allowed=false
jnlp.signed=false
jnlp.signing=
jnlp.signing.alias=
jnlp.signing.keystore=
main.class=jnlp_test.NewJFrame
# Optional override of default Application-Library-Allowable-Codebase attribute identifying the locations where your signed RIA is expected to be found.
manifest.custom.application.library.allowable.codebase=
# Optional override of default Caller-Allowable-Codebase attribute identifying the domains from which JavaScript code can make calls to your RIA without security prompts.
manifest.custom.caller.allowable.codebase=
# Optional override of default Codebase manifest attribute, use to prevent RIAs from being repurposed
manifest.custom.codebase=
# Optional override of default Permissions manifest attribute (supported values: sandbox, all-permissions)
manifest.custom.permissions=all-permissions
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false
platform.active=default_platform
run.classpath=\
${javac.classpath}:\
${build.classes.dir}
# Space-separated list of JVM arguments used when running the project.
# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
# To set system properties for unit tests define test-sys-prop.name=value:
run.jvmargs=
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
source.encoding=UTF-8
src.dir=src
test.src.dir=test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment