Sitemap

Amicuk Programming Answers

Package javax.faces.context does not exist

2015-10-11   Views:2

Advertisement

i get the following errors when trying to compile my class package javax.faces.context does not exist package javax.faces.component does not exist package javax.faces.validator does not existi'm really new to this and i do not know what this means i

i get the following errors when trying to compile my class
package javax.faces.context does not exist
package javax.faces.component does not exist
package javax.faces.validator does not existi'm really new to this and i do not know what this means
i hope someone can help me
this is my really simple code
package  ourdemo;
import javax.faces.context.*;
import javax.faces.component.*;
import javax.faces.validator.*;
public class player
     String firstname;
     String lastname;   
     public void setfirstname(String a)
     { firstname=a; }
     public String getfirstname()
     { return firstname; }
     public void setlastname(String b)
     { lastname=b; }
     public String getlastname()
     { return lastname; }
     public void changeName()
     { lastname = firstname+" "+lastname; }             
}

The replay answer
Advertisement
Hello,
nornaly this kind of errors happens, when the compiler isn't able to find the classes which it needs to compile your sourcecode. What you have to do is to say the compiler where it can find the sourcecodes. This means you have to put the jars into you classpath. you find the jars in the lib-directory of the jsf-directory which you downloaded. after unzipping the jsf-directory you will see it.
if you use eclipse you go with you mouse to your workingdirectory, click with the right
button on that directory ,choose properties then on the left you choose " java build path" and than on the right the libraries. Here you choose " add external jars" so you will have to direct to the jars. your are done.
But if you don't use eclipse, you have to put those jars in your classpath, in the environment of windows.
bye hamid

Go to See the other 4 answers

Package javax.faces.context does not exist

Category:DefaultRelease time:2015-10-11Views:130

i get the following errors when trying to compile my class package javax.faces.context does not exist package javax.faces.component does not exist package javax.faces.validator does not existi'm really new to this and i do not know what this means i[More]

"package javax.xml .rpc does not exist" error when compiling client jar

Category:DefaultRelease time:2015-10-11Views:130

When I try to compile the web services client jar with either the clientgen or the <client> element of servicegen I get the following error "package weblogic.webservice.core.rpc does not exist" Here is the error output [servicegen] C:\Docu[More]

Package javax.servlet.http does not exist

Category:DefaultRelease time:2015-10-11Views:130

Hello All, A few problems here 1. My classpath doesnt seem to work.: .;"C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar" 2. As a result, i get many errors in my simple code, but there are still a few that are not relat[More]

Problem: package javax.servlet.jsp does not exist

Category:DefaultRelease time:2015-10-11Views:130

I am a novice JSP programmer. My projects that use any javax.servlet classes are not seeing those at all. I am working with a group of folks using Java SE 1.5. (Note: I'm using Windows so the directory separator is "\") What Used to work: 1. Nea[More]

Error:    package javax.servlet.http does not exist

Category:DefaultRelease time:2015-10-11Views:130

Hi all, How do I import javax.servlet? package com.example.web; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class BeerSelect extends HttpServlet {   public void doPost(HttpServletRequest request,                     [More]

Package javax.xml.rpc does not exist

Category:DefaultRelease time:2015-10-11Views:130

Hi, I'm sure this is probably a basic error, which one of you Java gurus can solve instantly. I haven't used Java since 2001 and my development machine didn't even have a JDK installed until this morning! I'm trying to create a Java client for my web[More]

Package javax.microedition.midlet does not exist

Category:DefaultRelease time:2015-10-11Views:130

Hi: I am trying to run the Currency Converter MIDlet. I am using SUnONE4. I have got all the updates for the SUN ONE. When I compile the Converter directory.. i get the following errors.. which indicate that it can't find the javax.micoredition..pack[More]

Package javax.xml.messaging does not exist

Category:DefaultRelease time:2015-10-11Views:130

Hi, I have installed the Web Services Developer Pack (Version 1.1), and added the jaxm-api, jaxm-runtime, saaj-ri, and saaj-api jars to my classpath. I also added C:\jwsdp-1.1\bin to my path, and copied the jar files from C:\jwsdp-1.1\jaxp-1.2.2\lib\[More]

Package javax.microedition.media does not exist

Category:DefaultRelease time:2015-10-11Views:130

package javax.microedition.media does not exist import javax.microedition.media.*; Please tell me why this error occurs.Is it due to midlet version?Have you specified the correct setting for your MIDlet project? Note that javax.microedition.media (MM[More]

Package javax.servlet.jsp does not exist.

Category:DefaultRelease time:2015-10-11Views:130

dear all! I've one program which import javax.servlet.jsp.* as one of the package to be used in the program, and I am using j2sdk 1.4.0_01 to compiled it. However I got this error message : package javax.servlet.jsp does not exist. Where does it wron[More]

Package javax.xml.parsers does not exist

Category:DefaultRelease time:2015-10-11Views:130

When I compile the sample program for xml, DOMEcho.java, or any other xml java program, I get errors on the import statements. For all the import statements within java.xml.* I get an error message such as: package javax.xml.parsers does not exist. I[More]

Hot
The Pavilion series laptops are really well made in a lot of respects.  I have owned my DV5t for almost 4 years now and I've been quite happy with it (except for rather anemic battery life).  There is one thing that became a nasty problem for me, tha [More]
Hi We get an error while posting Invoice : Tax entered incorrect (code V0, amount 26.05), correct 7.22 USD. Please suggest thanks in advance kumarHi, Hi please check whether the tax code in PO and Invoice is correct or not, if not correct please ente [More]
Hi have purchased mini Ipad. I have photos on my Nokia E63 and wish to export to my ipad or mac computer OSX version 10.5.8. I can bluetooth photos from my phone to my computer but am unsure how to go about it all with the ipad, anyone out there can [More]
my ichat wont open when clicking the ichat icon.Hi, For that to work the  App has to have opened in the first place. I did consider that the poster meant the account/Buddy list was not on view (but that iChat was in the menu bar) but it seemed safer [More]
I'm using .net sdk to connect to Crystal report server XI R2 from Visual Studio 2005. I was able to successfully run reports from .net app until I upgraded my Crystal Report Server from XI R2 to Crystal Report Server 2008. Now when I try to run the r [More]
how do you detect url redirects when connecting to a URL? Thanks in advance stevHai (i) If it a jsp we can get the URL by request object. Like String url = request.getHeader("Referer"); u can do it in Servlet aslo by request object variable. If [More]
I want to make 2 predefined filters where one is dependent on the other. For example: filter one allows to select a class from a list and filter two allows to select names from persons, but only persons from the previous selected class.  I have made [More]
My Contacts are a MESS! I'm looking for a solution to clean them up. Here's the situation: My wife and daughter have plugged their phones into my MacBook Pro (without my knowledge) and all of our contacts have gotten merged together; so I have 3 time [More]
After updating my Iphone 4 on iOS7, my microphone stopped working when someone is calling me(or when I call someone). But the mic works with other applications like Skype... Any ideas ? Thanks.Hi Anis289, Welcome to the Support Communities! As a firs [More]
Hi all, Whenever i am opening the Distributions window in Invoices in my home system, I am getting the following Pop Window telling : "FRM-41014: Cannot set attribute of null canvas item D_SUM_PROMPT.ORDER_BY1" Can anyone please throw some light [More]