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
Hi, I have several different PDF files with formfields. Some information in those files are the same. For example the customer name etc. In stead of writing the customer name, the date, telephone number etc. in each each single file for each single p [More]
I finally got my white Zen MicroPhoto in from Singapore yesterday (I'm in the USA). Overall I am very impressed and so far, the only thing that I have found that I'm not really fond of is the size/shape of the screen. It is definitely more of a squar [More]
Why when I try to log into iTunes, do my graphics go crazy and I can't make anything out?  It only happens with the program iTunes, no other programsAre you opening the same Pages document or do you open another document like Word? I has recently bee [More]
I think I selected for Lightroom changes info to be saved with the Catalog only. Now when I copy my Raw files to a CD for archiving, there is no Lightroom info included. If I go back later to revisit a Raw image, I have to reprocess it completely. Ho [More]
I am sure this has been posted more than once, but can not find specifically what I am looking for. 1. I installed Aperture 2.1.1 on OS 10.4.11 and used for several weeks without difficulties. 2. I just upgrade to 10.5.4 from a 10.5.1 installation di [More]
I am tryiny to register with itunes but as I live in Ireland I do not have a postcode, I have tried 00 a I usually dop but it won't accept this. Does anyone know how to remedy this, I tried to ring apple but was just directed to the support page on t [More]
Based on all of the rumors, some people apparently have the iPhone 4. If so, give me some details. How's the battery life on it and the scoop on everything? Pics please?Iphone, i know they need to ship it to your accounts address so if thats ur home [More]
Can anybody help with my problem-after downloading and installing the new Ios7 yesterday my google translation app stopped working has anyone had this same problem? I have tried to delete it and re download the app but it show that I can only renown [More]
I know this is probably a "newbie" question, but can someone give me some examples of interaction between a servlet and a JSP page? I am trying to convert a client side Java application that basically parses log files into a servlet that can be [More]
Hello, I've read the "Recommended deployment topologies" for Oracle AS 10g Release 2. There's mentioned that HTTPS-to-HTTP protocol conversion should preferably be handled by a load balancer. Is there a document describing HOW TO configure Oracl [More]