?
Solved

Can't load standard profile: PYCC.pf.

Posted on 2011-03-01
3
Medium Priority
?
992 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

DFW AZURE MEETUP TONIGHT FRI 6PM

We will be discussing what Azure Stack is, how does it fit into the suit of offerings that Azure has currently, and where can it fit into your organizations technology stack. We will also be discussing limitations of the platform while covering various applicable scenarios.

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…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

752 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