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 155767 - package javax.net.ssl doesn't exist
Summary: package javax.net.ssl doesn't exist
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: rmichalsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-18 15:48 UTC by Samaresh Panda
Modified: 2011-04-26 12:00 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
package javax.net.ssl not found. (35.01 KB, image/png)
2008-12-18 15:49 UTC, Samaresh Panda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samaresh Panda 2008-12-18 15:48:18 UTC
I have a class that uses classes from javax.net.ssl package. This is available in JDK since 1.4. However, Java editor
complains and says "package javax.net.ssl doesn't exist". Fix import doesn't work as well.

Interestingly enough it works inside a java project (and perhaps in other projects), but NOT in Netbeans module
projects. You can see this issue in xml.retriever module. This module will always have a red-error-badge and the error
is in class SecureURLResourceRetriever.java.

See attached picture.
Comment 1 Samaresh Panda 2008-12-18 15:49:30 UTC
Created attachment 75139 [details]
package javax.net.ssl not found.
Comment 2 Jan Lahoda 2009-01-05 08:41:52 UTC
To reproduce: have a JDK specified in user.build.properties, or $HOME/.nbbuild.properties, but do not have the platform
registered for it in the NetBeans. Open the project (xml.retriever).

The cause is this: javax.net.ssl is not in rt.jar, but in jsse.jar. And jsse.jar is not on the bootclasspath in the
above scenario. If the given JDK is registered as a Java platform, jsse.jar is on the bootclasspath, and everything
seems to work fine.
Comment 3 rmichalsky 2009-02-05 13:17:08 UTC
fixed in core-main #03187fb247f9
Comment 4 Quality Engineering 2009-02-06 07:49:57 UTC
Integrated into 'main-golden', will be available in build *200902060201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/03187fb247f9
User: Richard Michalsky <rmichalsky@netbeans.org>
Log: #155767: fixed boot cp for non-registered Java platforms
Comment 5 PatrickDickey_52761 2011-04-23 01:40:19 UTC
I'm currently running Netbeans 6.9.1 on Ubuntu 10.10, with everything created using the default installer for Linux (I chose all of the default settings).  However, I'm still getting this error (and in fact, all javax libraries give me javax. not found).

Are there any special steps which need to be done to get this working?  I'm using the openjdk-6 libraries, and have added the jsse.jar to both my project and Netbeans libraries manually.

Have a great day:)
Patrick.

Any additional information will be provided on request
Comment 6 Jesse Glick 2011-04-26 12:00:37 UTC
Your problem may be completely unrelated to this issue. Best to file a separate bug report (in the 'ide' component) with complete steps to reproduce from scratch; I am not even sure from your description what kind of project you are working on (Java SE, EE, NB module, Maven, etc.).;