young_buddha
asked on
Can't load standard profile: PYCC.pf.
hi
i am new to JAVA.
I am writing code for a project which requires me to convert an image to grayscale. For which i am using this code
public static BufferedImage convertToGrayscale(Buffere dImage source) {
BufferedImageOp op = new ColorConvertOp(
ColorSpace.getInstance(Col orSpace.CS _GRAY), null);
return op.filter(source, null);
}
It works well so long as i am in development mode (using netbeans), but when i build and try to run the .jar, i get the error that PYCC.pf can't load.
From what i ahve read around apparently this file is delibrately not included in JRE although its there in the JDK.
Q: How to i include this file for distribution with my 'compiled' .jar ?
i am new to JAVA.
I am writing code for a project which requires me to convert an image to grayscale. For which i am using this code
public static BufferedImage convertToGrayscale(Buffere
BufferedImageOp op = new ColorConvertOp(
ColorSpace.getInstance(Col
return op.filter(source, null);
}
It works well so long as i am in development mode (using netbeans), but when i build and try to run the .jar, i get the error that PYCC.pf can't load.
From what i ahve read around apparently this file is delibrately not included in JRE although its there in the JDK.
Q: How to i include this file for distribution with my 'compiled' .jar ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Usually applications state system requirements in the readme file.
You can also check the version of java at application start in the main method and if the version is not 1.6 display instructions on how to download 1.6 or how to fix the missing jar bug.
ASKER
i installed 1.6 and it works now, thanks.
But how do i ensure that the users will have 1.6 installed on their systems ??