Very useful ! Sun's Java Standard Edition has a simple HTTP Server: com.sun.net.httpserver.
It simplifies dependencies since you don't have to add a new library. It is straightforward to use it with Jersey to publish Restful Services. But it isn't a standard feature !
Eclipse users might see compile errors saying Access restriction: The type ... is not accessible due to restriction on required library ...
The problem is that the HTTP server is part of the Sun JRE6 but not part of standardized Java.
Eclipse therefore blocks access to it.
This can be fixed by going to the Window->Preferences window, selecting Java->Compiler->Errors/Warnings, selecting Deprecated and Restricted API and then changing the setting for Forbidden Reference and Discouraged Reference to Warning instead of Error.
Subscribe to:
Post Comments (Atom)
2023 summary
Life is bigger than what you can imagine. Still using Roam http://www.roamresearch.com/ to take notes Still using Mastodon mainly, but ...
-
I know I should read all those methods more in details. I found this in the Poll Best Requirement Survey by Xebia. So what is a requirement...
-
Where it is going ?? Various organisation are working on the problem and its solutions. They produce specification draft, Use case studies, ...
-
There are a number of Association related to computer at large in Grenoble. I find it sad that they seems very disconnected. Here is a list ...
No comments:
Post a Comment