Skip to main content

How do you embed jre (not jdk) with bundle

  • From: Paul Taylor < >
  • To:
  • Subject: How do you embed jre (not jdk) with bundle
  • Date: Wed, 22 Aug 2012 09:30:39 +0100

I had my appbundle bundling the jdk okay using the value of $JAVA_HOME which was set to

/Library/Java/JavaVirtualMachines/jdk1.7.0_06.jdk/Contents/Home

however the resultant bundle is very large, I assume because I was bundling the jdk not the jre

So I tried to install just the jre , but it complained that a later version was already installed (i asume the jdk of the same version)

So then I pointed JAVA_HOME to the jre within the jdk

/Library/Java/JavaVirtualMachines/jdk1.7.0_06.jdk/Contents/Home/jre

but then appbundler complained:

/Users/paul/Code/jthink/SongKong/build.xml:19: java.nio.file.NoSuchFileException: /Library/Java/JavaVirtualMachines/jdk1.7.0_06.jdk/Contents/Home/Info.plist
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    at sun.nio.fs.UnixCopyFile.copy(UnixCopyFile.java:520)
at sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:252)
    at java.nio.file.Files.copy(Files.java:1225)
    at com.oracle.appbundler.AppBundlerTask.copy(AppBundlerTask.java:566)
at com.oracle.appbundler.AppBundlerTask.copyRuntime(AppBundlerTask.java:357)
at com.oracle.appbundler.AppBundlerTask.execute(AppBundlerTask.java:290)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:180)
at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:82)
    at org.apache.tools.ant.Main.runBuild(Main.java:795)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)


What is the correct way to do this ?

Paul


How do you embed jre (not jdk) with bundle

Paul Taylor 08/22/2012

Re: How do you embed jre (not jdk) with bundle

Greg Brown 08/22/2012

Re: How do you embed jre (not jdk) with bundle

Paul Taylor 08/22/2012

Re: How do you embed jre (not jdk) with bundle

Greg Brown 08/22/2012
 
 
Close
loading
Please Confirm
Close