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
When creating a new sample instrument, the generic assigned root key of C4 does NOT play back the sample (audio file) at the right pitch. In fact it is an octave off. A sound with root key of C4 will sound an octave too high (and twice as fast) when [More]
I've tried everything that I can think of! Connected my iMac and G4 together and tried to "Import Bookmarks" and have no option to choose safari on my G4. Put my G4 safari on an external drive and hooked it to my iMac. Same results. Any suggesti [More]
"Some features of Mac OS X Lion are not supported for the disk (volume name)" appears during installation" The disk has a non-standard Boot Camp partition setup, where further partitioning was performed after running Boot Camp Assistant, or [More]
Hello Team, I'm trying to use the Value mapping functionality but is not working for me, all the transaccion failed because of invalid account code. Create the map rule but is not executed. Watching the B1iSN Graphical Design tool i see that i have a [More]
hello i buy new iphone 5 ihave problem when i open safari app nd try to surf then there is one site pops up comes everytime nd then i cant surf tell me whts tht nd give me solutionNice try! Take a hike.Read other 2 answers [More]
I have 2 PC in a small LAN, both with Windows XP professional. The machine acting as server has 2 IP adresses: the first one, static, from a permanent ADSL connection (213.155...), the second one from the LAN ethernet connection (192.168.0.1). The ma [More]
Hey Folks, I'm really kicking myself for not testing 10.5.2 first... this is a disaster for me. After installing, I can no longer access any SMB or AFP shares (regardless of host OS) using my kerberos ticket (granted from Tiger Server). If I use the [More]
Hi, I've been having a problem with my Skype over the past two months.  I can't seem to access skype from my home wifi.  However, when I use another wifi outside, say at the mall, I am able to access skype.  At home,  everytime I try to access Skype, [More]
I have a client who needs to have access via a terminal app. She is in college. The school is recommending MacSSH 2.1. She is running a new powerbook nd does not have classic installed. MacSSH 2.1 is for classic only. Does anyone know of an updated s [More]
I load an XML object with formed xml. I can use the object to trace the xml I can even display the attributes of the parent node. I can get a count of the children using the length(). What I can do is access the data of a child node. What I get if I [More]