Java 1.4.2_02 javax package
Hello,
I downloaded and installed:
java version "1.4.2_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03)
Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)
But when I try to import javax the compiler cannot find it. It can find normal java packages but not javax. Any ideas?
javax packages are language extensions.
Which ones are you looking for?
For example, if you need javax.servlet, it's not part of the JDK download. You'll need to download and install Tomcat or another servlet/JSP engine that has the servlet.jar.
Java3D comes in a javax package. That's separate download, too.
MOD
Similar Messages
-
JAXB (XJC) problem with Java 1.4.2_02
Hi,
I am trying to migrate our system to Java version 1.4.2_02 (currently using 1.4.1_02). We use XJC from JAXB to compile XML schema files into java classes. JAXB is packaged in JWSDP (we are using version 1.3). I am currently experiencing a problem whereby if I use java version 1.4.2_02 and run XJC on the xml schema file its not generating any of the inner classes. All classes including inner are generated properly if I am pointing 1.4.1_02.
Just wondering if you came across this problem before and would know of a possible solution.
thanks for your help
ManishI was having this problem as well. I extracted the MSI from the InstallShield and found that it's looking for a property called "SystemFilesLocked" to equal 1. If you pass it as a parameter and give it a value of 0, this error message doesn't appear. I've installed now to 15 W2K desktops without any issues.
The 'silent installation' documentation for this product is sorely lacking. The install string I'm using is below:
j2re-1_4_2_03-windows-i586-p.exe /S /v/qn"ADDLOCAL=jrecore SYSTEMFILESLOCKED=0 CONTROLPANELLOCKED=1 SKDSILENT=1 IEXPLORER=0 SYSTRAY=0 REBOOT=Suppress JAVAUPDATE=0 JAVAJAVAWLOCKED=0 WEBSTARTICON=0 /L C:\TEMP\LogFiles\JRE_JWS_142_03.log"
Hope this helps... -
hello,
where should I look for documentation on org and javax packages?
I mean, if I see a function from the java package, I can google it and find out which are it's constructors, methods, what it implements or extends etc.
But if I see for instance import org.jdesktop.application.ResourceMap where can I find out anything about this one? Just try to google it, nothing useful comes up. Or try FrameView, which is quite important- the same problem.
Are this packages documented somewhere, like java package is?Javax packages are standard Java eXtensions (y'see?) and the docs tend to be in the standard Sun documentation. As for "org", you need to look a bit further. For instance if you're talking about packages starting with org.apache, that points you to apache.org. So for org.jdesktop, guess where you go? It's the recommended way to name your packages, from your domain name that way.
-
How to use " toFront() " method in java application and in which package or
How to use " toFront() " method in java application and in which package or class having this toFront() method.if anybody know pl. send example.
The API documentation has a link at the top of every page that says "Index". If you follow that and look for toFront(), you will find it exists in java.awt.Window and javax.swing.JInternalFrame.
To use it in a Java application, create an object x of either of those two classes and write "x.toFront();". -
The "javax." hierarchy is included with the SDK. As a result, I was wondering: why did Sun choose to create a separate root package for the classes in that heirarchy? I know that the "sun." packages are essentially Sun's playground and that Sun has a disclaimer indicating that we should not use it. So what is the purpose of the "javax." packages?
I found this explanation at http://mindprod.com/jgloss/javax.html:
The extensions to standard java belong in the javax.* packages. They are not included in the JDK or JRE. You must download them separately. They include things like: Servlets and Enterprise JavaBeans, JAF, JavaMail and Swing.
This is obviously not true in 2009, so I assume it's just an historical thing. When Sun decided to include them in the JRE/JDK, it was too late to change the package name, as this would break a lot of existing code. -
Where to get javax package?
HI,
Can any one tell me from where i can get javax package ?
I want
javax.resource.spi.*
javax.resource.
packages..
i went to java.sun.com but was not able to find it.
thanks
FarihaHi Fariha,
Check this package on SUN.com:
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/resource/spi/package-summary.html
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/resource/package-summary.html
Rewards if helpful. *
Regards,
Subhasha -
Differ java.sql.* and javax.sql.*
Dear Friends,
What is differenece between java.sql.* and javax.sql.*?.
Advance in thanksjava.sql is the package you can use for all basic kinds of database access. If you are not developing a full scale enterprise application, java.sql package is all that you need.
javax.sql is extension to the basic java.sql package. It includes classes that allow connection pooling and rowsets, among others.
If you are just getting started with JDBC, you just need to get familiar with java.sql and leave the wonders of javax.sql until later. -
Using Oralce 10g app server 9.0.4.0.0
Using jsf 1.1
Works fine under Resin 3.0, but not oracle.
Added the listener lines to web.xml.
<listener>
<listener-class>com.sun.faces.config.ConfigListener</listener-class>
</listener>
The following jars are in my web-inf/lib
commons-beanutils
commons-collections
commons-dbcp
commons-digester
commons-logging
commons-pool
commons-validator
jsf-api
jsf-impl
jstl
jta
Still get the NPE.
java.lang.NullPointerException
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2094)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4523)
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4617)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:765)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:497)
at com.evermind.server.Application.getHttpApplication(Application.java:886)
at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:688)
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:570)
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:259)
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:160)
at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2325)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1498)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)
at java.lang.Thread.run(Thread.java:534)
Any other suggestions?Eh... seems like I'm not alone here...
Trying to run my application, but all I get is:
Error Message:
java.lang.NullPointerException
Error details:
java.lang.NullPointerException
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
This application is working on the other machine. I guess there is something wrong with my eclipse project setup and/or I am missing some libraries.
Any syggestions? All help is appreciated. :) -
Where to place the class file of the java bean when using the packager
I am using the activex bridge in j2se 1.5.0_06
now i have created the jar file for my bean but where do i place the class file?
i.e the bean..if i keep it in jdk\bin the packager gives me an error..i created a folder in my public jre jre\axbridge\bin and placed the class file there too but even this didnt work
Kindly tell me what is the fully qualified package bean name if i have placed all my files under jdk\bin..D:\Java\jdk1.5.0_06\bin>packager -reg d:\java\jdk1.5.0_06\bin\PersonBean.jar Per
son
Processing D:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\\Person.idl
Person.idl
Processing D:\PROGRA~1\MICROS~2\VC98\INCLUDE\oaidl.idl
oaidl.idl
Processing D:\PROGRA~1\MICROS~2\VC98\INCLUDE\objidl.idl
objidl.idl
Processing D:\PROGRA~1\MICROS~2\VC98\INCLUDE\unknwn.idl
unknwn.idl
Processing D:\PROGRA~1\MICROS~2\VC98\INCLUDE\wtypes.idl
wtypes.idl
Registration failed:
The packaged JavaBean is not located under the directory <jre_home>\axbridge\bin
this is the error i get -
Hi
I registered a web app with Weblogic 5.1 in the weblogic.properties file. I try
to run the web app from my browser typing http://localhost:7001/xxx(Webapp name)
and a jsp page. Following is the error I get. It would be helpful if some one
could point me to a fix for this problem
Tue May 01 13:56:41 CDT 2001:<I> <ServletContext-omxclient> Generated java file:
D:\weblogic\myserver\omxclient\_tmp_war\jsp_servlet\_omx\_login.java
Tue May 01 13:56:43 CDT 2001:<E> <ServletContext-omxclient> Servlet failed with
Exception
java.lang.LinkageError: Class javax/servlet/ServletConfig violates loader constr
aints
at jsp_servlet._omx._login._jspService(_login.java:59)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:105)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:123)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:742)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:686)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:247)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:361)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Sorry, I didn't look very closely - the exception is for
javax.servlet.ServletConfig - should be in weblogicaux.jar.
Is there anything wrong with it? What service pack are you
using? Could be a problem with weblogic.policy.
mike
>>java.lang.LinkageError: Class javax/servlet/ServletConfig
"KC" <[email protected]> wrote:
>
>Hi Mike
>The login.jsp page just contains a javascript function and two text boxes
>in it.
>Will try making changing it. If that is not the issue could you let me
>know of
>any other issues.
>
>"mreiche" <[email protected]> wrote:
>>
>>I would guess that login.jsp is a very large JSP and that
>>the generated service method is too large for the classloader's
>>liking. Try making it smaller.
>>
>>Mike
>>
>>
>>"KC" <[email protected]> wrote:
>>>
>>>Hi
>>>I registered a web app with Weblogic 5.1 in the weblogic.properties
>>file.
>>>I try
>>>to run the web app from my browser typing http://localhost:7001/xxx(Webapp
>>>name)
>>>and a jsp page. Following is the error I get. It would be helpful if
>>>some one
>>>could point me to a fix for this problem
>>>
>>>Tue May 01 13:56:41 CDT 2001:<I> <ServletContext-omxclient> Generated
>>>java file:
>>> D:\weblogic\myserver\omxclient\_tmp_war\jsp_servlet\_omx\_login.java
>>>Tue May 01 13:56:43 CDT 2001:<E> <ServletContext-omxclient> Servlet
>>failed
>>>with
>>>Exception
>>>java.lang.LinkageError: Class javax/servlet/ServletConfig violates
>loader
>>>constr
>>>aints
>>> at jsp_servlet._omx._login._jspService(_login.java:59)
>>> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
>>> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
>>>pl.java:105)
>>> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
>>>pl.java:123)
>>> at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
>>>textImpl.java:742)
>>> at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
>>>textImpl.java:686)
>>> at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
>>>ContextManager.java:247)
>>> at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
>>>a:361)
>>> at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
>>>
>>> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>>>
>>>
>>
>
-
Java 1.4.2_02 keystore password?
I am trying to import a self-signed cert using the keytool. I am running j2re1.4.2_02 om windows 2000.
When prompted with the password I enter "changeit" like I have been doing with previous Java release. It seems as though the keystore default password has changed. Because I keep getting the error
"keytool error: java.io.IOException: Keystore was tampered with, or password was
incorrect."
It looks like Java is now using the deployment.jsscerts file below
"C:\Documents and Settings\dean\Application Data\Sun\Java\Deployment\security\deployment.jssecerts"
I had previously imported the cert into the cacerts file
C:\Program Files\Java\j2re1.4.2_02\lib\security\cacerts
However I see via the Java Plugin control panel that the jsscerts file is now being used.
Can anyone tell me what the default password is to the deployment.jsscets keystore ?
ThanksThe password for deployment.jssecerts keystore is NULL, when you are loading the keystore and EMPTY, when storing the keystore. Since EMPTY password can not be passed to keytool, it can not be used for adding a certificate to the store. We've to write java code for this. Something like this:
* Installs a certificate into Java Plugin keystore.
* @author Tarkeshwar Thakur ([email protected])
* Usage: java CertInstall <certificate-file-path>
public class CertInstall
private static void addCertToKeyStore(File certFile, File keystoreFile)
throws IOException, CertificateException, NoSuchAlgorithmException,
KeyStoreException
// load certificate
InputStream certStream = new FileInputStream(certFile);
CertificateFactory cf = CertificateFactory.getInstance("X.509");
X509Certificate cert = (X509Certificate)cf.generateCertificate(certStream);
certStream.close();
// load keystore
InputStream ksStream = new FileInputStream(keystoreFile);
KeyStore keystore = KeyStore.getInstance("JKS");
keystore.load(ksStream, null); // second argument is password
ksStream.close();
// add certificate to keystore
keystore.setCertificateEntry("", cert); // first argument is alias
// save keystore
OutputStream out = new FileOutputStream(keystoreFile);
keystore.store(out, new String("").toCharArray()); // second argument is password
out.close();
public static void main(String[] args) throws Exception
if (args.length < 1)
System.out.println("Usage: java CertInstall <certificate-file-path>");
return;
File certFile = new File(args[0]);
File keystoreFile = new File(System.getProperty("user.home") + "/Application Data/Sun/Java/Deployment/security/deployment.jssecerts");
addCertToKeyStore(certFile, keystoreFile);
System.out.println("Successfully installed certificate into Java Plugin!"); -
YoyoApp.java example In the J3D package...
YoyoApp.java example In the J3D package...
private Geometry yoyoGeometry() {
TriangleFanArray tfa;
int N = 17; //This mean 17 vertexs right?
int totalN = 4*(N+1); //What is this mean?
Point3f coords[] = new Point3f[totalN];
int stripCounts[] = {N+1, N+1, N+1, N+1};//
And what is this?Thank you.
float r = 0.6f;
float w = 0.4f;
int n;
double a;
float x, y;If i remember correctly:
N = total vertices in a single fan (not including central point)
totalN = total vertices for the whole yoyo (4 fans so 4*(n+1) total ).
int stripCounts[] = {N+1, N+1, N+1, N+1}
Specifies 4 fans (since array of length 4) each with N+1 vertices.
Basically there is one TriangleFanArray, but this allows multiple triangle fans within it. The coords are stored in one long array and the stripCounts specifies how many individual fans and how long they all are. -
Where to find javax package??
I got a javax package which holds only servlet package and now i need ejb which not there in my package..Please tell me where the javax whole package ????
You can find the complete set of classes bundled with one of the jars provided by your Application Server. It's weblogic.jar in case you're having Weblogic App Server, jboss-j2ee.jar if you have JBoss on your box as the App Server and so on.
cheers,
fun_one -
"javax" packages do not exist.
Hello,
I am learning to write servlet using J2EE 5SDK. But for some reason, the compiler (javac) keeps telling me that the following packages do not exist:
javax.servlet
javax.servelet.http
Without the "javax" packages, the codes get compiled. I did everything in the instruction on how to set the PATH variable. It did not work. So I took the extra steps and set the PATH variable to all the bin and lib directories:
c\Sun\AppServer\bin;
c:\Sun\AppServer\jdk\bin;
c:\Sun\AppServer\jdk\jre\bin;
c:\Sun\AppServer\jdk\jre\bin\client;
c:\Sun\AppServer\jdk\jre\bin\server;
c:\Sun\AppServer\lib;c:\Sun\AppServer\jdk\lib;
c:\Sun\AppServer\jdk\jre\lib;
After all that, it still didn't work. Did I miss any entry? Where are the javax packages locate? Your help are much appreciated. Thanks :)Look here.
-
How to update java.sql.Clob using javax.persistence.EntityManager?
Hello.
Can anyone tell me (or show me some example) how to update java.sql.Clob using javax.persistence.EntityManager.
When Im trying to update column (with type Clob) value is not inserting, after update column is empty. I havent any error during update, Im using database Oracle 10g.
Edited by: ernest211 on Jul 16, 2009 1:24 AMPost some code so we can see how you are doing it. If you are using JPA entities take a look at the @Lob annotation.
m
Maybe you are looking for
-
Error when running import data package, BPC 7.5 Microsoft
When I try to import data to one of my applications the import fails. This happens with external data but also with data I extracted from the application (input via schedule and then exported) I get the below error: ++++++++++++++++++++++++++++++++++
-
Lost numerical keypad function
During the middle of a long photo editing session the num lock light went out and the numeric keypad ceased to function. Pushing num lock didn't change anything. Removed all other USB devices, tried all the USB ports, restarted, reinstalled OS. Nothi
-
HP Laserjet 4100n Print Problem
Just installed SL and I'm unable to get my HP Laserjet 4100n to print. Has anyone out there encountered this? Any solutions? Thanks
-
I just purchased a new laptop, I connected my ipod touch to download my music, 260 songs and music videos were successful in transferring to my new laptop; however, that is only 1/3 of my music that i have on my old computer. What should i do?
-
1Q)marker interface having no methods right.. then what is the use of marker interface? for what purpose we use marker interface? 2Q)how to make a dynamic object ,name of object is entered by user? 3Q)Why class Class is always the Super Class for eve