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 am trying to export a 90K line report to excel format and I get that error messsage: Description : Une erreur d'application s'est produite sur le serveur. Les paramètres d'erreur personnalisés actuels pour cette application empêchent l'affichag [More]
Hi, I am experiencing lots of problems with Photoshop that keeps crashing when I work with it... It crashed at least 10 times this morning... Thx for your help! Here is the last crash report : Process:         Adobe Photoshop CS5.1 [769] Path:        [More]
No matter what browser i use, mainly firefox but on IE and Safari, certain pages wont load. Most of the pages are microsoft related, but netflix and myspace wont load either. Once i click the site it keeps me on the same page and the loading bar only [More]
hi fellow java developper i'm developping a program that hides files contents trough xml messages in order to exchange securily from a intranet to an extranet whitout having to use ftp and port 21. The problem is it takes over 22 seconds to send a 22 [More]
I've been using iphoto for years to import photos from my camera, now all the sudden it's changed its behavior. After importing the photos, I drag them to the directory of my choice in Finder, but now it won't let me. There's a little icon with a cir [More]
hello programmers how r u all? i have a little problem. i want to shrink my matrix frame when i donot want to print all columns of matrix group in report. suppose i haev three matrix groups and i want matrix group 2 all columns to be hide at runtime [More]
I need some help with system preferences is not responding?It happened to me too yesterday. When I booted, no network (lan or wan) was available. tiny wifi, Bluetooth and TimeMachine icons on upper screen were gone. No response from Apple menu or Doc [More]
Folks, Please no offence meant. If you are creating a new class in eclipse you are displayed the New Java class dialog. Correct? New Java Class   Create a new Java class Source folder  [     ] Package:       [     ]If you click on the text field in P [More]
<h5>Hi All, A scheduling agreement is created with condition type freight(PLFR) present, also a schedule was created for the same, now the problem is that while doing MIGO freight type is not visible, I checked the whole configuration but still coul [More]
Hi I am trying to know that where should SOA suit be installed? On the application server? or on my personal machine? I will need only JDeveloper and BPEL Process Designer, Do i need to install full SOA suite? or i can install just BPEL Designer with [More]