[nbusers] Re: error: package sun.java2d.cmm does not exist

  • From: Edson Richter < >
  • To:
  • Subject: [nbusers] Re: error: package sun.java2d.cmm does not exist
  • Date: Sun, 9 Dec 2012 23:54:35 -0200
  • Organization: Simkorp Inform├ítica Ltda

Em 09/12/2012 23:53, Edson Richter escreveu:
" type="cite">
Em 09/12/2012 21:00, Ion Iovu escreveu:
" type="cite">golem45,

Is the error message you get:
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.RuntimeException: Uncompilable source code - package sun.java2d.cmm does not exist
at NewMain.<clinit>(NewMain.java:6)
Java Result: 1
?

You should not rely on packages starting with "com.*" or "sun.*": there is no guarantee that they will be available in newer versions of JDK (specially in major changes, let's say from version 6.x to version 7.x).
I believe this is the case: packages that was available in previous versions and are no more, probably because they migrated into standard or because they are no longer supported.

My best advice is: download to a version you know it is working, and start reading the "changelog" for every version after - you may be lucky to find which version dropped support.

I mean a JDK version that works. NetBeans has nothing to do with this error.

Regards,

Edson

" type="cite">

Regards,

Edson

" type="cite">

Regards


On Mon, Dec 10, 2012 at 12:26 AM, Ion Iovu < " target="_blank"> > wrote:
golem45, 

I was able to reproduce that. 
My environment is:
Product Version: NetBeans IDE Dev (Build 201212090001)
Java: 1.7.0_10; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-b18
System: Mac OS X version 10.7.5 running on x86_64; US-ASCII; en_US (nb)

I will look into it and come back to you.

Regards


On Sun, Dec 9, 2012 at 8:29 AM, golem45 < " target="_blank"> > wrote:
I started to use Netbeans IDE 7.0.1 with jdk 7u9. I have an issue with
import sun.java2d.cmm.ColorTransform;
import sun.java2d.cmm.PCMM;
etc.

If I import from the package sun.java2d.cmm I can run but I can NOT build my project because of error: package sun.java2d.cmm does not exist.

Please help.










[nbusers] error: package sun.java2d.cmm does not exist

golem45 12/09/2012

[nbusers] Re: error: package sun.java2d.cmm does not exist

Ion Iovu 12/09/2012

[nbusers] Re: error: package sun.java2d.cmm does not exist

Ion Iovu 12/09/2012

[nbusers] Re: error: package sun.java2d.cmm does not exist

Edson Richter 12/10/2012

[nbusers] Re: error: package sun.java2d.cmm does not exist

Edson Richter 12/10/2012

[nbusers] error: package sun.java2d.cmm does not exist

golem45 12/10/2012

[nbusers] Re: error: package sun.java2d.cmm does not exist

Benno Markiewicz 12/10/2012

[nbusers] error: package sun.java2d.cmm does not exist

golem45 12/10/2012

<Possible follow-up(s)>

[nbusers] error: package sun.java2d.cmm does not exist

golem45 12/09/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close