Help with "Java class is not found" error
Hi,
I created my java program in a window environment, ran the program to a command line and it works.
I then put my jar file along with the other dependent jar in unix, I then run the command again and it's complaining that it cannot find the class file from the dependent jar. The class file does exist in the jar and also when I run "java" command I make sure that the jar was part of the classpath.
My command line looks like this:
$PS_JRE/bin/java -jar -classpath $CLASSPATH/jxl.jar jexcel.jar
I'm at a loss. Any advice would be greatly appreciated.
Thank you,
Giovanni
Well, I guess I got it working now.
The jxl.jar file I was using was compiled with 1.6 The unix server I was compiling on is 1.5.
Since I can't install a new version of java I was lucky enough to find a version of that api that was compiled with 1.5.
Now I'm all ok.
Similar Messages
-
Java Class Def Not Found Error
Hi,
When I run a java program(us_noti.sh) I get the following error
======ERROR=========
us_noti.sh
Exception in thread "main" java.lang.NoClassDefFoundError:
org/acplt/oncrpc/XdrAble
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123
at
java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)======END OF ERROR=========
Any idea what needs to be included in the CLASSPATh for resolving this error. I am running the program on Solaris 2.8
Java Version is as follows
hostname] java -version
java version "1.4.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_03-b04)
Java HotSpot(TM) Client VM (build 1.4.0_03-b04, mixed mode)
Would appreciate any help on this problem..Have been stuck with this for a few days :-((
TIA
FemyThat means u need to have the class or jar files corresponding to
org/acplt/oncrpc/XdrAble
in your jre. giving CLASSPATH helps only for sdk compilation. and with newer versions of jre, even the /bin/jre command is not found. so it is not clear how to install new class or jar files with jre. let sombody who knows enligthen on this
bala -
Java class files not found error in jsp sub-directories
Hello:
I have a web-application that is setup in the following way:
index.jsp
test\index1.jsp
WEB-INF\classes\test.class
Both jsp pages index.jsp and index1.jsp uses the test.class in the WEB-INF\classes directory.
The index.jsp page works fine.
The test\index1.jsp gives me a "cannot resolve symbol" error. Error shown below:
[jsp src:line #:19]
cannot resolve symbol symbol : class test location: class test.index1 test ts = new test("hello");
Any help at all is appreciated.
Thanks,
BennyHello Qiang:
Thanks a lot for replying, and sorry for the delay in replying back to you. I have been searching the forums for a while and have yet to find anyone else with a similar problem. And yes, it is kinda wierd.
But, anyways, I checked the java version from the windows command line as follows and it is using version 1.4.2:
java -version
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
Also, here are the contents of my test.class file:
public class test
private String t = null;
public test(String t1)
setTest(t1);
public void setTest(String t1)
t = t1;
public String getTest()
return t;
Here are the contents of my index.jsp file:
<b> hello </b>
<%
String test_str = null;
test ts = new test("Hello from the main jsp directory");
test_str = ts.getTest();
%>
<b> test_str is: </b> <%=test_str%>
Click here to test your jsp index1.jsp file in the test sub-directory
Here are the results from this jsp page:
hello
test_str is: Hello from the main jsp directory
Click here to test your jsp index1.jsp file in the test sub-directory
Here are the contents from the test/index1.jsp file:
<b> hello from test sub-directory </b>
<%
String test_str = null;
test ts = new test("Hello from the jsp test sub-directory");
test_str = ts.getTest();
%>
<b> test_str is: </b> <%=test_str%>
And here is what happens when I try to go to the test/index1.jsp page:
Request URI:/benny_test/test/index1.jsp
Exception:
OracleJSP:oracle.jsp.provider.JspCompileException:
Errors compiling:C:\OC4J\j2ee\home\application-deployments\default\benny_test\persistence\_pages\_test\_index1.java
Line # Error
47
[jsp src:line #:5]
cannot resolve symbol symbol : class test location: class test.index1 test ts = new test("Hello from the jsp test sub-directory");
47
[jsp src:line #:5]
cannot resolve symbol symbol : class test location: class test.index1 test ts = new test("Hello from the jsp test sub-directory");
I will try putting it in a package like you said and see if that helps. Also, do you see a similar issue in your environment.
Anyways, thanks for all your help. Hope to hear from you soon.
Thanks,
Benny -
Hi,
I am in the midst of Installing SOLMAN on RHEL5-ORACLE
Have installed IBM JDK version 1.4.2_10
During the CREATE SECURE STORE PHASE I am getting the following error:
sapinst_dev log file O/P
WARNING[E] 2008-06-09 18:04:43.225
CJSlibModule::writeError_impl()
CJS-30050 Cannot create the secure store. SOLUTION: See output of log file SecureStoreCreate.log:
The java class is not found: com.sap.engine.offline.OfflineToolStart.
TRACE 2008-06-09 18:04:43.225 [iaxxejsbas.hpp:483]
EJS_Base::dispatchFunctionCall()
JS Callback has thrown unknown exception. Rethrowing.
TRACE 2008-06-09 18:04:43.243 [syuxctask.cpp:1382]
CSyTaskImpl::start(bool)
A child process has been started. Pid = 2529
TRACE 2008-06-09 18:04:43.281 [syuxctask.cpp:1382]
CSyTaskImpl::start(bool)
A child process has been started. Pid = 2530
ERROR 2008-06-09 18:04:43.310 [sixxcstepexecute.cpp:951]
FCO-00011 The step createSecureStore with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_SecureStore|ind|ind|ind|ind|8|0|createSecureStore was executed with status ERROR .
TRACE 2008-06-09 18:04:43.317 [iaxxgenimp.cpp:752]
CGuiEngineImp::showMessageBox
<html> <head> </head> <body> <p> An error occurred while processing service SAP Solution Manager 4.0 Support Release 4 > SAP Systems > Oracle > Central System > Central System. You may now </p> <ul> <li> choose <i>Retry</i> to repeat the current step. </li> <li> choose <i>View Log</i> to get more information about the error. </li> <li> stop the task and continue with it later. </li> </ul> <p> Log files are written to /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS. </p> </body></html>
TRACE 2008-06-09 18:04:43.317 [iaxxgenimp.cpp:1255]
CGuiEngineImp::acceptAnswerForBlockingRequest
Waiting for an answer from GUI
SAPINST.LOG file O/P
WARNING 2008-06-09 18:04:43.224
Execution of the command "/opt/IBMJava2-amd64-142/bin/java -classpath /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib/launcher.jar -Xmx256m com.sap.engine.offline.OfflineToolStart com.sap.security.core.server.secstorefs.SecStoreFS /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/lib:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib/exception.jar:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib/logging.jar:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib/tc_sec_secstorefs.jar create -s SMD -f /sapmnt/SMD/global/security/data/SecStore.properties -k /sapmnt/SMD/global/security/data/SecStore.key -enc -p XXXXXX" finished with return code 1. Output:
The java class is not found: com.sap.engine.offline.OfflineToolStart
WARNING[E] 2008-06-09 18:04:43.225
CJS-30050 Cannot create the secure store. SOLUTION: See output of log file SecureStoreCreate.log:
The java class is not found: com.sap.engine.offline.OfflineToolStart.
ERROR 2008-06-09 18:04:43.310
FCO-00011 The step createSecureStore with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_SecureStore|ind|ind|ind|ind|8|0|createSecureStore was executed with status ERROR .
SecurStoreCreate log O/P
The java class is not found: com.sap.engine.offline.OfflineToolStart
Pls suggest how to resolve this issue
Pls help to resolve this issue
Rgds,
AbhijeetHi All,
I Found the Solution.
The SAPinst tool was somehow not able to extracte the
J2EEINSTALL.SAR files from the JAVA Components DVD.
So I manually extracted the the file in the temporary install folder which the SAPinst creates in the /tmp filesystem (on LINUX by deafult) during the installation process.
The following command is used (I used this on Red Hat LINUX 5.2) to extract the J2EEINSTALL.SAR file:-
/sapmnt/SMD/exe/SAPCAR
-xvf /dump/SR4_Java_Components/D51033521/DATA_UNITS/JAVA_J2EE_OSINDEP_J2EE_INST/J2EEINSTALL.SAR
/sapmnt/SMD/exe/SAPCAR -->source directory of the file SAPCAR which is used to extarct CAR / SAR files on UNIX
/dump/SR4_Java_Components/D51033521/DATA_UNITS/JAVA_J2EE_OSINDEP_J2EE_INST/J2EEINSTALL.SAR--> destination dir. where the SAPinst tool will read and execute the file.
Rgds,
Abhijeet K -
Error in Installation--The Java class is not found: SDTGui
I am in the process of instlaling SAP in AIX machine
When i start the Startsapinst, i am getting the following error .
Pls hlep
<b>The Java class is not found: SDTGui</b>I am using humming bird software
i have set the display.
Xclock is running
Pls help -
Hello all,
I am trying to run export of PI system (ABAP+JAVA) uisng inst master NWSR3
I am hit with an issue before the export_ABAP starts . the following are the error lines
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 2.3)
IBM J9 VM (build 2.3, J2RE 1.4.2 IBM J9 2.3 AIX ppc64-64 j9ap64142-20070708 (JIT enabled)
J9VM - 20070530_12820_BHdSMr
JIT - 20070529_1824_r8
GC - 20070328_AA)
The java class is not found: com.sap.inst.migmon.exp.ExportMonitor
Please share if there are any possible solutions to overcome this error & make export run smoother
thanks & regards,
rahulHello,
Please check the JVM-settings as per note
1024539 (including the environment-variables and APARS).
For some reason the 'migmon.jar' - file can no longer
be found in your installation directory
It might be sufficient to copy the archive 'MIGMON.SAR' from your
master-cd (subdirectory IM_AIX_PPC64/COMMON/INSTALL) to your
installation directory and extract the archive there by 'SAPCAR -xvf
If the problem persists
apply the latest patch as per note
784118 System Copy Java Tools
regards,
John Feely -
The java class is not found: oracle.apex.APEXExport
Hi,
when i run java oracle.apex.APEXExport
i have the error
The java class is not found: oracle.apex.APEXExport
CLASSPATH=/opt/ora/admin/Apex_Backup/class/classes12.zip:/opt/ora/admin/Apex_Backup/APEXExport.class
also
CLASSPATH=/opt/ora/admin/Apex_Backup/class/classes12.zip
causes the error
Can somebody help he out of this?Hello,
Take a look at my blog post on Backing Up Your Applications, available here -
http://jes.blogs.shellprompt.net/2006/12/12/backing-up-your-applications/
I run through all the steps you need to do to get it working.
Hope this helps,
John.
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! -
Time machine fails backing up with a "backup disk not found" error after upgrade to Lion 10.7.2. I've erased and reformatted the drive; reconnected Time Machine(it saw it) and began a new backup. The backup starts again but fails before completing with backup drive not found error. I used the 10.7.2 combo update. Any help on how to fix this problem would be appreciated.
Arghhhhhhhhhhhhhhhhhhh!!!!!!
After waiting since October for a fix, I have now upgraded the firmware on the Time Capsule and installed the new Airport Utility, released yesterday, and the situation is even worse.
Up until now, the Airport Utility had an option to disconnect all drives manually and the Time Capsule would then work until the next reboot – a temporary (?) work-around.
Now that option does not exist in the new-look Airport Utility. And the Airport Utility installation can’t be rolled back and the old utility won’t restore.
The sparesbundle is still not accessible. Anyone worked out a work-around in the new environment yet?
I have another Time Machine backup working fine to a trusty old Lacie Drive so erased the one on my Time Capsule to see if that works. I have renamed the Capsule and the Time Capsule Drive. But to build another full backup will take at least two days and I shall be away from tomorrow and am reluctant to leave the Capsule and computer up and running for a week. And I’ll bet the sparsbundle will still be nowhere to be found.
How can Apple screw up so badly when they are to become the richest company in the entire world and – soon – will have more cash in the bank than the entire United States? Can’t they afford someone who really can sort this out? Especially when a Firewire connected hard drive – my trusty and simple LaCie – works fine.
Words, almost, fail me. -
"The java class is not found:" post clone
Hi.
I've just cloned an 11.5.10.2 environment from one AIX5.2 server running 9.2.0.7 to another server at the same AIX and RDBMS level.
After running the clone steps, the application was automatically started and I was able to access it via Self Service, forms, run concurrent requests etc - in short, I had a working system.
Now, however, when I try to stop or start the application using adstrtal.sh/adstpall.sh, I hit the following:
"The java class is not found: oracle/apps/ad/autoconfig/ServiceControl
Check logfile /data/testcomn/admin/log/TEST_ireaix2/05011011.log for details"
On the command line, when I call the line the script is trying to execute:
/usr/java14/bin/java -classpath "${CLASSPATH}:${JAVA_TOP}:${FND_TOP}/java/3rdparty/stdalone/xmlparserv2.zip" oracle.apps.ad.autoconfig.ServiceControl -e /oracle/testappl/admin/TEST_ireaix2.xml -u apps/<PASS> -m 2 -l yadda –debug
I'm able to bypass this particular error and some of the application processes do start but not all of them and obviously I still have an underlying Java/environment issue.
Any suggestions gratefully received.
Rgds,
JesCheck logfile /data/testcomn/admin/log/TEST_ireaix2/05011011.log for details"What does the log file say?
-
"The java class is not found:" during cloning
Hi.
I've just cloned an 11.5.10.2 environment from one AIX5.2 server running 9.2.0.7 to another server at the same AIX and RDBMS level.
After running the clone steps, the application was automatically started and I was able to access it via Self Service, forms, run concurrent requests etc - in short, I had a working system.
Now, however, when I try to stop or start the application using adstrtal.sh/adstpall.sh, I hit the following:
"The java class is not found: oracle/apps/ad/autoconfig/ServiceControl
Check logfile /data/testcomn/admin/log/TEST_ireaix2/05011011.log for details"
On the command line, when I call the line the script is trying to execute:
/usr/java14/bin/java -classpath "${CLASSPATH}:${JAVA_TOP}:${FND_TOP}/java/3rdparty/stdalone/xmlparserv2.zip" oracle.apps.ad.autoconfig.ServiceControl -e /oracle/testappl/admin/TEST_ireaix2.xml -u apps/starl1ght -m 2 -l yadda –debug
I'm able to bypass this particular error and some of the application processes do start but not all of them and obviously I still have an underlying Java/environment issue.
Any suggestions gratefully received.
Rgds,
JesMay be you should try posting this on an appropriate forum to get a speedier response.
Regards -
The java class is not found: oracle/aurora/util/Wrapper
When I try and load my Java class file using 'loadjava' into Oracle I'm getting the error:
The java class is not found: oracle/aurora/util/Wrapper
What is causing this?On which machine should ORACLE_SID be set to solve this problem, server or client. I run into this error when run loadjava
-
Overview of Leave --- CREATE OBJECT: The class was not found., error key:
Dear Gurus,
Iam facing this problem that, when i try to open the Leave Overview from the leave request screen. it gives the dump with message
CREATE OBJECT: The class was not found., error key: RFC_ERROR_SYSTEM_FAILURE
this also creates a dump in the back end.
The same dump is appearing when i try to view the Check Documents for the same employee from PTARQ.
Thanks in advance
RamnathHi ,
please find the following solution .it will definitely work .
If you leave configuration is done.
There was an incorrect data in your system. To do these please follow following process.
delete this request using
PTARQ> Delete documents (RPTARQDBDEl)
Please read the report documentation before
deleting the request but it should be safe as it is
a development system.
Please delete this with the above information or delete all
the records for the approver.
After this,, there will be some incorrect workitem in approver inbox.
You need to clear that also by Tcode - SWWL.
ALSO check the leave request workflow of that employee and if there is any error workflow lying in the workflow delete the leave request (which was created with error) Note down the id initiater ( which had error) and in the Test Environment for Leave request (PTARQ) gave the PERNR and delete the documents ( give the id iniater in the document status ).
To check the error work flow go to SWIA and check for that Workflow (Leave) raised by the PERNR at that duration ( check in IT2001 for the duration) and give it here.
After deleting it check in the portal for the leave request if any error is occuring when trying to apply for leave. -
Newbie help with SAX, jclark package not found
I'm trying do a simple SAX exercise. My work files are on my d:\workspace\xml directory and I'm running win2k pro. I have extracted saxjava-1.0.zip to e:\XML\sax, the jdk to e:\j2sdk1.4.0, and james clark xp parser to e:\XML\xp
I have set my environment variables according to the book
variable: CLASSPATH
value: .;E:\XML\sax;E:\XML\xp\xp.jar
when I compile my java file I get the error:
package com.jclark.xml.sax does not exist
Parser parserObj = new com.jclark.xml.sax.Driver();
Note: BandReader.java uses or overrides a deprecated API
Note: Recompile with -deprecated for details
1 error
When I go into the directory E:\XML\xp\com\jclark\xml\sax , the file "Driver.java" is there
code in my BandReader.java file
import org.xml.sax.*;
public class BandReader extends HandlerBase {
public static void main(String[] args) throws Exception {
System.out.println("Here we go...");
BandReader readerObj = new BandReader();
readerObj.read();
public void read () throws Exception {
Parser parserObj = new com.jclark.xml.sax.Driver();
parserObj.setDocumentHandler (this);
parserObj.parse ("file:///d:/workspace/xml/bands.xml");
public void startDocument() throws SAXException {
System.out.println("Starting...");
public void endDocument() throws SAXException {
System.out.println("...Finished");
public void startElement(String name, AttributeList atts) throws SAXException {
System.out.println("Element is " + name);
}I downloaded sun's java_xml_pack-summer-02_01 and extracted the contents to e:\xml\sun and have changed my classpath environment variable to E:\XML\sun\jaxp-1.2_01:e:\XML\xp\xp.jar
How would I change my code for my exercise to work? I tried the following and I get 4 errors.
import java.io.*;
import org.xml.sax.*;
import org.xml.sax.helpers.DefaultHandler;
import javax.xml.parsers.SAXParserFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
public class BandReader extends ContentHandler {
public static void main(String[] args) throws Exception {
System.out.println("Here we go...");
//BandReader readerObj = new BandReader();
//readerObj.read();
//Use an instance of ourselves as the SAX event handler
DefaultHandler handler = new BandReader();
//Use the default (non-validating) parser
SAXParserFactory factory = SAXParserFactory.newInstance();
public void read () throws Exception {
//Parse the input
SAXParser parserObj = factory.newSAXParser();
parserObj.setDocumentHandler (this);
//Parser parserObj = new com.jclark.xml.sax.Driver();
//parserObj.setDocumentHandler (this);
parserObj.parse ("file:///d:/workspace/xml/bands.xml");
public void startDocument() throws SAXException {
System.out.println("Starting...");
public void endDocument() throws SAXException {
System.out.println("...Finished");
public void startElement(String name, AttributeList atts) throws SAXException {
System.out.println("Element is " + name);
} -
SOAP oracle xml sql utility class definition not found error
I have created a java class that connects to database using JDBC runs an sql statement and produces xml using Oracle XML SQL Utility class. The java class works perfectly when I deploy it as a soap web service and try to run through SOAP server it gives a SOAP error oracle/xml/sql/query/OracleXML/Query [java.lang.NoClassDefFoundError].
Can anyone help please.
Thanks
AlinaSounds like you have not included the xsu12.jar file in the server-side CLASSPATH.
This depends also on the xmlparserv2.jar and on the Oracle JDBC driver. Later versions
of XSU may also depend on the xdb.jar file, too. -
Help! Another "Entry Point Not Found" Error
Hello,
I purchased iPhone 4 earlier this week and went to synch it last night. Apple Updates updated and crashed several times, now iTunes won't even start. I already had it set up for my iPod, my iPad, and a prior iPhone, so just plugged my new iPhone in and went to town. iTunes did update all my apps before I used Apple Update. I was trying to get the OS updates for both my iPhone and iPad, but now it doesn't work. I tried downloading iTunes again and running the fix and it didn't work. I am runing Windows 7 64-bit.
Here is my error message:
iTunes.exe - Entry Point Not Found
The procedure entry point
kCMByteStreamNotification_AvailableLengthChanged could not be
located in the dynamic link library CoreMedia.dll
Then a second dialog box pops up that says:
iTunes
Itunes was not installed correctly. Please reinstall iTunes.
Error 7 (Windows error 127)
Please help!
Thanks, SeanHi vladdy007,
Please upgrade your OS to Win XP SP3. This would fix the problem. The minimum spec for running AI CS6 is Win XP SP3.
Thanks and Regards,
Nishant Kumar Thakur
Maybe you are looking for
-
Using InDesignCS3 on Portrait Monitor
We just had dual monitors installed and would like to have InDesignCS3 open in PORTRAIT view so that we could view an entire page. Unfortunately, we can move the IND screen to the second monitor and rotate the screen, but the image is still in landsc
-
Problems installing Nokia PC suite on xp pro SP1 w...
I have been trying to install various versions of PC Suite on my work laptop which runs xp pro SP1 to use with my E71. PC Suite 7.0 instructions say it does not work with SP1 (and i did try but would not install) I've tried 6.83 which installed but c
-
I'm trying to upgrade an ipad and in the system under general there is no software update. What do I do?
-
MySQL Data Source causes a "Failed to Generate Wrapper Class" error
Hi all, I've created a MySQL datasource but when I make it the source for a EJB I get the error above. I think the error occurs during deployment, rather than while building. It seems to be having problems with the Data Source URL but I've checked th
-
History Search by URL (rather than by keywords)
+** sorry if this had been covered before. If so, please kindly direct me to the discussions. I was unable to find it in any discussion. **+ Is it possible to search the Safari history list by URL? For instances, I want to search (and delete) anythin