This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 204071 - ClassCastException: class com.sun.tools.javac.api.JavacTool
Summary: ClassCastException: class com.sun.tools.javac.api.JavacTool
Status: RESOLVED DUPLICATE of bug 203540
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-21 15:06 UTC by Sergey Petrov
Modified: 2011-10-24 11:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 182204


Attachments
stacktrace (975 bytes, text/plain)
2011-10-21 15:06 UTC, Sergey Petrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2011-10-21 15:06:44 UTC
Build: NetBeans IDE Dev (Build 20111021-e8072e72dc38)
VM: Java HotSpot(TM) Client VM, 20.2-b06, Java(TM) SE Runtime Environment, 1.6.0_27-b07
OS: Windows 7

User Comments:
sj-nb: in j2se, create hibernate config, create reveng, create mojo for discountcode, open hql editor and type "from DiscountCode". got exception.




Stacktrace: 
java.lang.ClassCastException: class com.sun.tools.javac.api.JavacTool
   at java.lang.Class.asSubclass(Class.java:3018)
   at javax.tools.ToolProvider.getSystemToolClass(ToolProvider.java:165)
   at javax.tools.ToolProvider.getSystemTool(ToolProvider.java:145)
   at javax.tools.ToolProvider.getSystemJavaCompiler(ToolProvider.java:102)
   at org.netbeans.modules.hibernate.hqleditor.HQLEditorController.checkAndCompile(HQLEditorController.java:681)
   at org.netbeans.modules.hibernate.hqleditor.HQLEditorController.processMatchingClass(HQLEditorController.java:664)
Comment 1 Sergey Petrov 2011-10-21 15:06:48 UTC
Created attachment 112314 [details]
stacktrace
Comment 2 Sergey Petrov 2011-10-24 11:22:13 UTC

*** This bug has been marked as a duplicate of bug 203540 ***