Can�t find javax classes??
I resently installed jdk 1.4 to my win XP and it�s working fine except for all the javax classes that the system can�t find. Do I need to define a path or something to find these?
But I cleared my system of old jdks before I installed
the new.. Shouldn�t that be enough? The java console
says version 1.4. Is the javax classes included in the
jdk package?Which javax packages? Some of them (such as javax.ejb) belong to J2EE (enterprise edition), not to the J2SE (standard edition JDK).
Similar Messages
-
Can't find textbox class - help please!
I'm posting this again, in the hope that more people might help. I already know that the error means that the compiler can't find the class Textbox. I need to know why, because I've copied the relevant parts of the code from another app that builds fine. So why won't this build?
I'm trying to write and build my first J2ME app. My code starts:
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
import java.lang.Math;
public class TestMIDlet
extends MIDlet
implements CommandListener
private Textbox tbMain;
public void startApp()
The build fails with numerous errors of which the first is:
C:\WTK22\apps\TestMIDlet\src\TestMIDlet.java:9: cannot find symbol
symbol : class Textbox
location: class TestMIDlet
private Textbox tbMain;
with the caret under the 'T' of Textbox
I don't understand what's wrong with this, as it's in many of the sample apps I've looked at.
Thanks
EdThanks very much!
I've lost count of the times I've been caught by that case-sensitivity thing in Javascript. I thought it was just the first letter that had to be capitalised. Progress at last! -
Can't find main class - program will end
Dear forum readers,
Recently upgraded from Win2k pro to XP pro .. installation ran to conclusion w/ no fatal errors BUT upon booting new system I now receive an error message "Java Virtual Machine Launcher can't find main class, program will end" .. I am not aware that this error is causing any problems BUT it is annoying and I'd like to be able to fix the problem so I don't have to close the error message at each startup .. please help!
Thanks in advance, LarryTry this
java -XbootClasspath/a -jar <<Prog name>>
I think you are trying in windows XP.
Also you need to modify if there are any other jars to be reference. For eg if a.jar is also required for this try as below
java -XbootClasspath/a:a.jar -jar <<Prog name>> -
My JSP can't find a class file
Hi
I am trying to view a JSP but I get ClassNotFoundException. I know that it means that it can't find the class but I can't understand why.
my directory structure:
Intranet->source
->jsp
->WEB-INF->classes->source-><class file here>
first line of .java file:
package source;
JSP code:
<%@page import="java.sql.*, source.*, java.util.*;" %>
<jsp:useBean id="dbConnect" scope="session" class="source.DBConnect">
<jsp:getProperty name="dbConnect" property="jdbc:odbc:Auto_Intranet" />
</jsp:useBean>
Must I create an environment variable for 'Windows': with classpath " .....\WEB-INF\classes"
The Windows environment variable doesn't exist----using XP ProLooks right to me.
You don't need a classpath variable. Web containers ignore it anyway.
Which class is not found? source.DBConnect?
Is DBConnect in a package called source?
Is your database driver in the web-inf/lib directory?
Please post the full error message with stack trace - it will be easier to sort out.
Good luck,
evnafets -
Which Table, can I find the class and characteristic assigned to equipment.
Hi all,
I have assigned a characteristc to a class.
And assigned this class to an equipment.
Now in which table can i find the class assigned to this equipment.
What is the logic to find the class and characteristic.
Thanks in advance.
PiyushHi,
As per above post, you can find classes. To find characteristics, Give EQUNR value in OBJEK field in AUSP table & get the ATINN value.
Give ATINN value in ATINN field in CABN table & get ATNAM field value.
In AUSP table, you can get the values against each characteristics as well.
Regards,
Maheswaran.
Edited by: Maheswaran.K on Apr 19, 2011 9:28 AM -
Installing 10g on Windows XP machine JVM launcher "Can't find main class"
I am trying to install 10g Release 2 on a Windows XP machine. I downloaded the zip from the OTN. Unzipped the file. No problems. Tried to run the OUI, it opened up a shell and said to wait. The shell closed and a message frome the JVM Launcher displayed "Can't find main class. Program will exit." I have seen several people on this and other discussion boards having this problem, but have yet to get a solution. Please help.
What's the value of CLASSPATH environment variable? Possibly a non-oracle application has set this variable and the installer catches it. If there is such a variable, comment it out and try again.
-
SOS!! : I can't find javax.rmi.*
After i install j2sdkee1.2.1,
I can't find javax.rmi.* in the dictory D:\j2sdkee1.2.1\lib
Where will i find it and download it into my computerAdd j2ee.jar to your classpath.
Jesper -
Can't find Java Class of a standard UI Command
Hello everybody,
Where can i find Java classe source and Bundle file of a standard UI Command "AppDetails"
for example ?
Thanks & Regards,
Hassan MounimHi Hassan,
You can find the UIDetailsCommand class here:
..\WEB_INF\portal\portalapps\com.sap.km.cm.ui.flex\private\lib\km.appl.ui.flex.uicommand_core.jar
And the bundle file UIConst here:
..\WEB_INF\portal\portalapps\com.sap.km.cm.ui.flex\lib\km.shared.ui.flex.uicommand_api.jar
Hope this helps,
Robert -
Swf can't find custom classes after publishing....
Hi everyone,
So this is probably an easy thing I don't know, I'm hoping.
But when I publish my project and test it in a normal HTML, the swf can find some classes but not others for some reason?
How can I make sure all the classes get compiled into the Swf?
I got the main timeline calling the first class (CalypsoPlayer); and it finds this class find -- which is under the same class path.
But CalypsoPlayer can't find the class it needs, even though it's under the same class path as the class.
I've tested the project in Flash itself and it all works great without any errors so I'm not sure what's going on. It's only when I test
the published SWF that it can't find all the classes it needs.
I appreciate anyones help -- StanHey Dan,
My mind just stopped for an hour and I wasn't thinking straight on this issue, lol. I thought I deleted this posting but apparently
I didn't.
Thanks for your help but this issue was just a result of a mind that had too much coffee and not enough energy .
- Stan -
Can not find Main Class - Can't Run Application
I have at this for a while and it is drivng me crazy... I have an application that I want execute in a bat file. I have checked the runtime environment by executing java and javaw, both which give option on error messages. I have set the classpath to point too the class subdirectory. Here it is.., Every time I execute the bath file or execute the javaw command, I get the "Can not find main class" message.
I am using XP ...
Help please...
Thanks for all your help.when you set the classpath I presume you mean that your running java or javaw as:
javaw.exe -cp %classpath%;.;c:\library\myfiles com.mycomp.myapp.MainClassIf your using a jar then you must specify the jar in the class path.
Don't presume it will find the jar. Other than that, you will have
to provide more details. -
Where can I find SafeZipFileInputStream class in weblogic 10.3
Hi ,
I am migrating my application from weblogic8.1 to weblogic 10.3. In my application I used SafeZipFileInputStream.class , this class is placed in weblogic.jar file.
In weblogic 10.3 SafeZipFileInputStream.class is not in weblogic.jar file.
Can anyone help me where can i find this class.
Thanks in advance.
Sha.It is under modules directory, look for modules\com.bea.core.utils.full_1.4.0.0.jar or modules\com.bea.core.utils_1.4.0.0.jar
-
Background callable object : can not find this class name
Hi All ,
I am following this tutorial link for creating background callable object
http://help.sap.com/saphelp_nwce10/helpdata/en/9a/e8934258a5ca6ae10000000a155106/frameset.htm
I have created java and enterprise application DC and deployed successfully. But while creating CO in design time when i am selecting application and entering class as com.examples.bckgco.UserDetailsCallableObject for Implementation Class Name , and on click next i m getting exception as "can not find this class name". package and class name are correct still getting this excetpion message. Plz help me to resolve this solution.
Regards
KavitaHi, kavita.
First, make sure you choosed the correct container when you created the background CO.
Second, make sure your package name was "com.examples.bckgco" and class name was "UserDetailsCallableObject". The exception which you got just means you entered incorrect name.
It doesn`t relate to your program.
Best Regards.
Louis Huang. -
Why after i have unzipped and edited the classes in the jar file and zipped them together again, it gives me the message "CAN NOT FIND MAIN CLASS"?
This is after i have edited any class in the .jar zip.I did not edit the Manifest text file,can someone who has experienced this problem show me how to overcome it.
Thank you.i think you have to read the "java tutorial on Jar files".
i guess after you have exracted the .jar file then you've edited the ".class"(i dont know how you did it) but i think you mean ".java" you should create another .jar file to be able to reflect the changes you have made, then set the main-class attribute of the newly created .jar file. -
How can I find these classes---please!!
where can I find these classes
com.sun.media.protocol.dsound.*
com.sun.media.protocol.sunvideo.*
they are needed in a JMF program.Generally speaking, sun classes are for internal use only. That's not to say you can't call things in those classes, but documentation is hard to come by if at all.
-
I'm running RH8, but quite new to linux, so it's possible I just don't have something set up right. I downloaded and installed the rpm for J2SE 1.4.1, which I believe is supposed to include Swing, right? Then I typed in the first example out of my book, which happens to use a couple of the Swing classes, and I get the following errors when I try to compile it:
[root@rissa HelloJava]# javac HelloJava1.java
HelloJava1.java:2: Superclass `javax.swing.JComponent' of class `HelloJava1'
found.
public class HelloJava1 extends javax.swing.JComponent
^
HelloJava1.java:6: Type `javax.swing.JFrame' not found in the declaration of
local variable `f'.
javax.swing.JFrame f = new javax.swing.JFrame("HelloJava1");
^
2 errors
Anyone have any ideas what's up with my install?
LisaSo what do I set where to make this work?As you said you need to set your path variable. How
that is done depends on the shell that you are
running.
But if I just add the j2sdk/bin to my paths, it still uses the one in /usr/bin by default. How do I keep it from using that one? Obviously, I can't take /usr/bin out of my path, since I'll need other stuff in that directory.
>>
Also, even if I am running 1.3.1, shouldn't Swingwork
anyway? The book I'm using is actually written for
1.3, so anything in it ought to work no matterwhich
copy I'm actually using, I would think.
That is correct. You can try the following to verify
whether a class is found or not.
java javax.swing.JComponent
If you run the above if it does not find the class
then you will get a class not found exception. If it
finds it then you will get an error that says that
'main' was not found.
Trying this under both versions gives me different exceptions in thread "main". I'm not even sure where it should be looking for the classes, let alone where it is looking for them, or for that matter, if they're even there to find.
Response in 1.3.1:
Exception in thread "main" java.lang.NoClassDefFoundError: javax.swing.JComponen
t
at 0x4028115f: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/libg
cj.so.3)
at 0x4027408e: java.lang.Error.Error(java.lang.String) (/usr/lib/libgcj.so.3)
at 0x40275b1a: java.lang.LinkageError.LinkageError(java.lang.String) (/usr/li
b/libgcj.so.3)
at 0x40276f76: java.lang.NoClassDefFoundError.NoClassDefFoundError(java.lang.
String) (/usr/lib/libgcj.so.3)
at 0x402c60f9: gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.3)
at 0x40267fdc: JvThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.3)
at 0x4023478c: JvRunMain(java.lang.Class, byte const, int, byte const, bool
ean) (/usr/lib/libgcj.so.3)
at 0x08048900: ?? (??:0)
at 0x420158d4: ?? (??:0)
at 0x080486c1: ?? (??:0)
Response in 1.4.1_02:
Exception in thread "main" java.lang.NoSuchMethodError: main
You are not setting the CLASSPATH correct?Correct, although I did briefly try that as well, out of desparation, but it seemed to have no effect on anything.
Lisa
Maybe you are looking for
-
How to raise multiple error messages at a time in a BADI
Hi all, I'm using CHECK method of BADI ME_PROCESS_PO_CUST for some validation in ME21N/ME22N. I want to raise multiple error message at a time, when user clicks on Check button or Save button. Please let me know, is there any function module for this
-
Layer Styles and using Delete Key PSE4
Hello, Slowly getting getting to know PSE4, will take more time. Finding lots of tips here in this forum and other similiar forums and sites. Have two quick Questions: 1. It was mentioned "Jodi's Spedia Layer Styles". Is this a tutorial or actual sty
-
Hi Guys For the ones using LP7, if you were using and old version of emagic 5.5, did you have any problems opening the session files? I have lp8, but the exs24 instruments are always crossed out when i open the old sessions in LP8. I am hoping in LP7
-
Optimize report script having many Link statements
Hi, I have a report script in Essbase which uses around 10 <Link statements to extract level 1 entity members from decendants of specific entity members and around 8 <Link statements to extract level 0 account members from decendants of specific acco
-
How to arrange in alphabetical order
Hi I have a SplayTree , actually you can just say I have a tree for that matter, and there is a String on each line, and I need to print all this out in alphabetical order. I can't use an array since there is huge databse to be arranged in alphabetic