• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JDK packaged src.zip

 
Ranch Hand
Posts: 647
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I am using jdk 1.8. Inside the JDK folder there is src.zip file which contains the source Code for their apis which is not part of com.sun package.

I am using one of the class DOMInputImpl from this source.zip. My intelliJ does not complain about this class. But when I run my application, it errors with the classNotFound exception.

If I want to use classes from src.zip where is the jar located for these classes that I can include in my classpath?

thanks
Trupti
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's a copy of this class in jre/lib/rt.jar, which is the runtime. The class itself is part of the Xerces XML DOM manipulation library.

I'm not sure why you IDE isn't picking it up, except that since a lot of apps use their own copy of Xerces, I wouldn't have expected to find it in the default JVM classpath.
 
All that thinking. Doesn't it hurt? What do you think about this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic