Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Can't load standard profile: PYCC.pf.

Posted on 2011-03-01
3
Medium Priority
?
995 Views
Last Modified: 2012-05-11
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(BufferedImage source) {
     BufferedImageOp op = new ColorConvertOp(
      ColorSpace.getInstance(ColorSpace.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 ?
0
Comment
Question by:young_buddha
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
Dejan Pažin earned 2000 total points
ID: 35011681

Which version of java are you using? There was a bug with this in java 1.4:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4668557

In 1.6 the file is in the jre.
0
 

Author Comment

by:young_buddha
ID: 35014800
Hi

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 ??

0
 
LVL 17

Expert Comment

by:Dejan Pažin
ID: 35014854


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.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question