Skip to main content

HDCookbook build error using Eclipse

2 replies [Last post]
tmak
Offline
Joined: 2008-09-11
Points: 0

Hello,

I am trying to build the HDCookbook project which I downloaded through svn. I am using eclipse, and I created a new Java project from existing sources. I also have added in the HDCookbook/lib a classes.jar file that contains both the libraries of BDJ that I got from PowerDVD and the libraries of pbp_v1.1.0. When I am trying to build the project by using the ant script, I get the following error:

[jdktools.java] Exception in thread "main" java.lang.NoClassDefFoundError: sun/security/tools/JarSigner
[jdktools.java] at net.java.bd.tools.security.SecurityUtil.signJarFile(SecurityUtil.java:506)
[jdktools.java] at net.java.bd.tools.security.SecurityUtil.signJars(SecurityUtil.java:401)
[jdktools.java] at net.java.bd.tools.security.BDSigner.main(BDSigner.java:130)
[jdktools.java] Caused by: java.lang.ClassNotFoundException: sun.security.tools.JarSigner
[jdktools.java] at java.net.URLClassLoader$1.run(Unknown Source)
[jdktools.java] at java.security.AccessController.doPrivileged(Native Method)
[jdktools.java] at java.net.URLClassLoader.findClass(Unknown Source)
[jdktools.java] at java.lang.ClassLoader.loadClass(Unknown Source)
[jdktools.java] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[jdktools.java] at java.lang.ClassLoader.loadClass(Unknown Source)
[jdktools.java] at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[jdktools.java] ... 3 more

BUILD FAILED
C:\Users\admin\Desktop\HDCookbookEclipseWorkspace\HDCookbook\build.xml:11: The following error occurred while executing this line:
C:\Users\admin\Desktop\HDCookbookEclipseWorkspace\HDCookbook\xlets\hdcookbook_discimage\build.xml:241: The following error occurred while executing this line:
C:\Users\admin\Desktop\HDCookbookEclipseWorkspace\HDCookbook\xlets\hdcookbook_discimage\build_bdjo_security.xml:62: Java returned: 1

Can you help me with this? I have set correctly the environment variable JAVA_HOME and I have installed the Java Version "1.6.0_07".

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vinaykagarwal
Offline
Joined: 2006-01-14
Points: 0

Make sure you have JDK not just JRE. JAVA_HOME should point to the JDK directory like this

JAVA_HOME=C:\Program Files\Java\jdk1.6.0_16

kfirirani
Offline
Joined: 2009-11-11
Points: 0

Hey tmak,

Did you find a solution? We're struggling with the same problem

Thanks,