Help coderanch get a
new server
by contributing to the fundraiser
  • 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

Netbeans doesn't find javax.servlet.*

 
Ranch Hand
Posts: 176
Mac Chrome Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Howdy folks,

So according to Andrew Monkhouse the javax.servlet.* package is not a package, it's from J2EE.

So I went ahead and downloaded the Netbeans Java EE to get this thing to work but I get a nasty "package javax.servlet.http does not exist" error. And here I was thinking a bigger download would solve all my problems

I'm a complete idiot with Netbeans, how to I check if I have Java EE and how do I reconfigure the project so it can find it?

Thanks-you

P.S. I'm on a Mac so I can't find the J2EE SDK anywhere in the Download Page
 
Olivier Legat
Ranch Hand
Posts: 176
Mac Chrome Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Resolved, I found the JAR files ... for Googler's that stumble upon this page here's how I did it:

- Right-click the Libraries folder in the left-hand Projects tab
- Goto /Applications/NetBeans/glassfish-3.1.1/glassfish/modules/
- Select all javax*.jar files.
- Click Choose
- Post a thank-you on this thread (optional)
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello good afternoon you must add the library in my case (Java EE Web 8 API Library) wait a few seconds to load in the project and if there is still an error you just remove the amount and you will see another error appear you just go and give light bulb and import again. Success I hope it helps many.
Anotaci-n-2019-12-04-174414.png
[Thumbnail for Anotaci-n-2019-12-04-174414.png]
 
Marshal
Posts: 79531
379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch

I think the OP is no longer waiting for a reply.
 
Just the other day, I was thinking ... about this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic