NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

package com.sun.tools.attach.api does not exist

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
lsdisciples



Joined: 19 Dec 2011
Posts: 6

PostPosted: Mon Dec 19, 2011 3:17 pm    Post subject: package com.sun.tools.attach.api does not exist Reply with quote

Hi,

I'm not really familiar with Java and Netbean...

- How do I import com.sun.* packages into my own project?

Thanks

lsdisciples
Back to top
lsdisciples



Joined: 19 Dec 2011
Posts: 6

PostPosted: Tue Dec 20, 2011 2:41 pm    Post subject: Reply with quote

I just want to import some com.sun.* stuffs

Nobody can answer to this?
Back to top
KimvdLinde



Joined: 20 Dec 2011
Posts: 2

PostPosted: Tue Dec 20, 2011 5:37 pm    Post subject: Two options Reply with quote

To possible problems can explain this.

One, the package in question has not been installed or not properly attached to the project in the properties settings.

Two, it is a bug that bugs a lot of people, and see my post of today with the solution. http://forums.netbeans.org/viewtopic.php?t=45554
Back to top
lsdisciples



Joined: 19 Dec 2011
Posts: 6

PostPosted: Wed Dec 21, 2011 3:07 pm    Post subject: Reply with quote

The way I understand it is that it's not installed and available by design.

I'm looking for a way to import it since many many source code over the internet seems to use it without problem.

it's not a default package I suppose you have to manually link and import it in some way ...

How can I attach this package to the project in the properties settings.?? Maybe it's not properly attached like you said?

thanks for any help... Sad
Back to top
lsdisciples



Joined: 19 Dec 2011
Posts: 6

PostPosted: Wed Dec 21, 2011 4:26 pm    Post subject: Reply with quote

Finally I figure it out.

I need to add a reference to tools.jar
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo