BO BI 4.0 java sdk NoClassDefFoundError IException
We are upgrade current system BO XI R2-->BO BI 4.0. Everything is ok in windows environment.
After we deploy web app to websphere unix environment, we get java exception:
java.lang.NoClassDefFoundError: com/businessobjects/foundation/exception/IException
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
java code like this:
try{
ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr(); <---java error (NoClassDefFoundError:IException)
// Enter your CMS logon info here
enterpriseSession = sessionMgr.logon(CE_User, CE_Pwd, CE_APS, CE_Auth);
// Save Session Manage to session
session.setAttribute("ceSession", enterpriseSession);
}catch(SDKException se){
log.error("Exception:", se);
unix Websphere 6.1.0.35
IBM JDK 1.5.0_26-b03
jar list:
09/29/2011 09:38 AM 116,039 aspectjrt.jar
09/29/2011 09:38 AM 123,895 bcm.jar
09/29/2011 09:38 AM 724,814 biarengine.jar
09/29/2011 09:38 AM 3,673 ceaspect.jar
09/29/2011 09:38 AM 6,273,791 cecore.jar
09/29/2011 09:38 AM 289,963 celib.jar
09/29/2011 09:38 AM 22,918 ceplugins_core.jar
09/29/2011 09:38 AM 669,318 cereports.jar
09/29/2011 09:38 AM 648,664 certjFIPS.jar
09/29/2011 09:38 AM 71,369 cesearch.jar
09/29/2011 09:38 AM 44,861 cesession.jar
09/29/2011 09:38 AM 3,749 ceutils.jar
09/29/2011 09:38 AM 60,588 clientlogic.jar
09/29/2011 09:38 AM 133,437 coarsegrain.jar
09/29/2011 09:38 AM 1,313,469 corbaidl.jar
09/29/2011 09:38 AM 2,177,493 cryptojFIPS.jar
09/29/2011 09:38 AM 4,602,867 CrystalReportsSDK.jar
09/29/2011 09:38 AM 2,052,529 ebus405.jar
09/29/2011 09:38 AM 104,220 freessl201.jar
09/29/2011 09:38 AM 375,087 jsafe.jar
09/30/2011 11:53 AM 19,923 jstl.jar
09/29/2011 09:38 AM 126,699 logging.jar
09/29/2011 09:38 AM 118,348 ras21sdk.jar
09/29/2011 09:38 AM 43,750 SL_plugins.jar
09/29/2011 09:38 AM 429,588 ssljFIPS.jar
09/29/2011 09:38 AM 570,525 TraceLog.jar
09/29/2011 09:38 AM 32,013 webreporting-jsf.jar
09/29/2011 09:38 AM 1,115,675 webreporting.jar
09/29/2011 09:38 AM 119,804 xpp3.jar
web.xml:
<web-app>
<context-param>
<param-name>crystal_image_uri</param-name>
<param-value>crystalreportviewers</param-value>
</context-param>
<servlet>
<servlet-name>ReportViewerServlet</servlet-name>
<servlet-class>ReportViewerServlet</servlet-class>--our
code
</servlet>
<servlet>
<servlet-name>CrystalReportViewerServlet</servlet-name>
<servlet-
class>com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ReportViewerServlet</servlet-name>
<url-pattern>/ReportViewerServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>CrystalReportViewerServlet</servlet-name>
<url-pattern>/CrystalReportViewerHandler</url-pattern>
</servlet-mapping>
</web-app>
I am also getting NoClassDefFoundError as mentioned below, I have tried restarting the server multiple times adjusting the system variables Don't know why BO setup does not update correct environment settings anyway I have setup windows 2008 environment variables as follows, Please correct me if they are wrong:
CLASSPATH to D:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64\jdk\jre\lib
JAVA_HOME to D:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64\jdk\jre
D:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0
\java\lib>dir PKC*.jar
Volume in drive D is Data
Volume Serial Number is 0CBE-A9BC
Directory of D:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Ent
erprise XI 4.0\java\lib
12/21/2011 01:30 PM 5,913 PKCS12Tool.jar
1 File(s) 5,913 bytes
0 Dir(s) 534,696,849,408 bytes free
D:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0
\java\lib>"D:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterp
rise XI 4.0\win64_x64\jdk\jre\bin\java" PKCS12Tool.jar -alias mywin -storepass a
dmin1 -dname CN=xyz
Exception in thread "main" java.lang.NoClassDefFoundError: PKCS12Tool/jar
Caused by: java.lang.ClassNotFoundException: PKCS12Tool.jar
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: PKCS12Tool.jar. Program will exit.
D:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0
\java\lib>echo %CLASSPATH%
D:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0
\win64_x64\jdk\jre\lib
D:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0
\java\lib>echo %JAVA_HOME%
D:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0
\win64_x64\jdk\jre
D:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0
\java\lib>
I want to create these files for setting up SSO with BEx Web & Portal Integration. I have updated BO SP2 patch 10 successfully. Also wondering where to find the SBOP 4.0 SP2 Patch 10 updated information.
Similar Messages
-
Installation Problem - Java SDK 1.4.1
I have a problem with installing Java on my machine at home that you may be able to help me with.
Here are the Details: 1) I installed the most recent java SDK on my machine. 2) I set the Autoexec file with the correct PATH statement. 3) Set the correct CLASSPATH statement 4) The "Java -Version" statement gives the correct reply that it is version 1.4.
Below is my AutoExec.bat file
SET windir=C:\WINDOWS
SET winbootdir=C:\WINDOWS
SET COMSPEC=C:\WINDOWS\COMMAND.COM
SET PATH=C:\PROGRA~1\MICROS~3\OFFICE;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\ATF
SET CLASSPATH=C:\J2SDK1_4\LIB\TOOLS.JAR;.;
SET PROMPT=$p$g
SET TEMP=C:\WINDOWS\TEMP
SET TMP=C:\WINDOWS\TEMP
Problem: Trying to compile a simple "HelloWorld" Program with "javac Helloworld.java" produces the error "Bad Command or File name".
Issues: Command Line in Windows ME requires 8.3 format. Inserts tilde "~" and a number into the names of the files. even using a short name such as "HelWrld.java" inserts a tilde because of the "java" extension. Have tried using a "jav" extension but that does not work as the error is the same.
Question: How can I get rid of the "Bad Command or File Name"?My First Java Progam (for Windows with Java 2 SDK v1.4.1)
Follow these instructions EXACTLY.
1. Download and install the Java 2 SDK, Standard Edition. You can find it here:
http://java.sun.com/j2se/downloads.html
Select the download for your operating system and be sure to download the SDK (rightmost column) and not the JRE. (The JRE is only the Java Runtime Environment, which does not include the Java compiler and other tools needed for software development).
2. Read the README and installation instructions! Read these instead of asking questions about installation etc. in the Java forums.
README for Java 2 SDK v1.4.1: http://java.sun.com/j2se/1.4.1/README.html
Java 2 SDK v1.4.1 for Windows installation: http://java.sun.com/j2se/1.4.1/install-windows.html
Things to note:
- After installing, add the bin directory of the SDK to your PATH environment variable. For example, if you installed the SDK in C:\j2sdk1.4.1_01, add the directory C:\j2sdk1.4.1_01\bin to your PATH. (If you don't know what an environment variable is and how to set it, read the documentation of Windows; if you're using Windows XP, this might be useful: http://support.microsoft.com/default.aspx?scid=KB;EN-US;q310519& ).
3. Open Notepad and type in your first program:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
Save this program somewhere with the filename "HelloWorld.java".
Things to note:
- The case of text is important. Don't type "Helloworld", "helloworld" or anything else. Also the case of the filename is important (even though Windows has case-insensive filenames!).
- Watch out that Notepad doesn't append ".txt" to the filename. The file should be named "HelloWorld.java", not "HelloWorld.java.txt".
4. Open a command prompt and go to the directory that contains the file "HelloWorld.java" (with the CD command).
5. Compile the progam with the following command:
javac HelloWorld.java
Things to note:
- If you get something like "Unknown command: javac" or "Bad command or filename", you did not (correctly) add the bin directory of the SDK to the PATH (see step 2).
6. Run the program. If you didn't get any compile errors, you now have a new file "HelloWorld.class" in the same directory. Run the program with the following command:
java HelloWorld
Things to note:
- If you get: "Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld/class", you have typed "java HelloWorld.class". Leave off the ".class" at the end. You are typing a class name here, not a filename.
- If you get something like: "Exception in thread "main" java.lang.NoClassDefFoundError: helloworld (wrong name: HelloWorld)", you have typed the class name wrong. Note that the case is important (i.e., don't type "helloworld" but "HelloWorld")!
- You don't need to set any classpath here. In Java 1.4, the current directory is included in the classpath automatically. For older versions of Java, you may need to add the current directory (".") to the classpath, like this:
java -classpath . HelloWorld
7. Congratulations with your first working Java program. Now follow these links:
Java Tutorial
http://java.sun.com/docs/books/tutorial/
New to Java Programming Center
http://developer.java.sun.com/developer/onlineTraining/new2java/
FAQ
http://java.sun.com/products/jdk/faq.html
How Classes are Found
http://java.sun.com/j2se/1.4/docs/tooldocs/findingclasses.html
Setting the class path
http://java.sun.com/j2se/1.4/docs/tooldocs/win32/classpath.html
JavaTM 2 SDK Tools and Utilities
http://java.sun.com/j2se/1.4/docs/tooldocs/tools.html
Jesper -
Java.lang.NoClassDefFoundError: Exception in thread "main"
Hello People,
I am aware that this topic has been raised before. I have browsed through all the postings of this particular question, but i have not found the solution.
While compilign i get no errors but this is what i get when i run the java program.
java.lang.NoClassDefFoundError: Exception in thread "main"
Tool completed with exit code 1
The following is my path and classpath files under autoexec.bat
SET PATH=%PATH%;C:\j2sdk1.4.0_03\bin
SET CLASSPATH=.;%CLASSPATH%;C:\j2sdk1.4.0_03\bin
These are the settings i have in MY COMPUTER properties/environments
SYSTEM VARIABLES
Variable - classpath
Value - C:\Program Files\TextPad 4
USER VARIABLES
Variable - PATH
Value - C:\j2sdk1.4.0_03\bin
SYSTEM VARIABLES
Variable - path
Value - C:\PROGRA~1\PVCS\VM\win32\bin;C:\WINNT4\system32;C:\WINNT4;C:\WINNT4\system32\nls\ENGLISH;C:\WINNT4\system32\nls;C:\Program Files\Rational\common
USER VARIABLES
Variable - PATH
Value - C:\j2sdk1.4.0_03\bin
I hope this infromation will help.
Thanks
Regards,
ShahSET PATH=%PATH%;C:\j2sdk1.4.0_03\bin
SET CLASSPATH=.;%CLASSPATH%;C:\j2sdk1.4.0_03\bin
These are the settings i have in MY COMPUTER
properties/environments
SYSTEM VARIABLES
Variable - classpath
Value - C:\Program Files\TextPad 4I am concerned that the classpath in the autoexec.bat is different from what you posted under System variables. What version of Windows are you running? autoexec.bat is used by 98. Others use the system variables. The classpath you show for autoexec.bat looks OK but the classpath you show for system variables looks wrong. It should be the same as what you show for autoexec.bat You do not need the sdk\bin directory in your classpath unless you plan to put classes there.
The NoClassDefFound error means that the java.exe command could not find the class that you specified. You did not post the command that you entered. You may have specified the class wrong. Otherwise, it is probably a classpath problem. -
Crystal report XI R2 - ClientDocument java.lang.NoClassDefFoundError
Post Author: Mauro.Garlaschelli
CA Forum: JAVA
I downloaded Crystal Report XI R2 and i deployed the CrystalReportsSample web application into my Tomcat.
When I try to view the example the following error is thrown:javax.servlet.ServletException: com/crystaldecisions/sdk/occa/report/application/ClientDocument
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.view.viewreport_jsp._jspService(viewreport_jsp.java:123)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
java.lang.NoClassDefFoundError: com/crystaldecisions/sdk/occa/report/application/ClientDocumentcom.crystaldecisions.report.web.ServerControl.<init>(Unknown Source)com.crystaldecisions.report.web.viewer.ReportServerControl.<init>(Unknown Source)com.crystaldecisions.report.web.viewer.CrystalReportViewerBase.<init>(Unknown Source)com.crystaldecisions.report.web.viewer.CrystalReportViewer.<init>(Unknown Source)com.crystaldecisions.report.web.viewer.taglib.ViewerTag.a(Unknown Source)com.crystaldecisions.report.web.viewer.taglib.ServerControlTag.if(Unknown Source)com.crystaldecisions.report.web.viewer.taglib.ViewerTag.byte(Unknown Source
Any help ?
Thanks in advance,
MauroPost Author: Ted Ueda
CA Forum: JAVA
That class is in rasapp.jar file - if you're using the Java Reporting Component, I recommend following the deployment guide found here:
http://support.businessobjects.com/communitycs/technicalpapers/cr_xi_r2_jrc_deployment.pdf.asp
that lists the required jar files.
Sincerely,
Ted Ueda -
Argh! "java.lang.NoClassDefFoundError"! help!
I am a student and only just started programming in Java. When I installed the SDK on my home computer i discovered that everytime i try and run a program i have written, no matter how basic, i get a "java.lang.NoClassDefFoundError". I did a search on the forum and found lots of stuff about something called classpath, but i have no idea what it is or how to do it, despite the explanations ive read. If someone could please take me through it step by step id be VERY greatful.
I'm running it on Windows XP home edition.
Thanks alot
JonI tried the tutorial you showed me, thanks. However, it doesnt seem to have worked, when i did the "set CLASSTEST=" in the directory i was in then it worked, but only temporarily. But when I tried changing the Path variable in Environment Variables (Control Panel\System --> Advanced --> Environment Variables, it didnt seems to work. I added "C:\j2sdk1.4.2_02\bin" to both the user variables and system variables.
Anyway, this is what I tried, from the beginning...
I wrote the code in TextPad, the code is as follows -
public class HelloWorld {
public static void main( String[] args ) {
System.out.println( "hello world" );
(as i understand, it couldnt be any simpler!)
I then compiled this in TextPad and got no errors.
I then tried then run it, also through TextPad (Tools --> Run Java Application) and got this error (word for word) -
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
Press any key to continue . . .
I also tried running it from the command prompt and just got the same error, even when i switched to the right directory (C:\Documents and Settings\Jon\Desktop\Uni_stuff). The commands i entered were "java HelloWorld".
If anyone can help me with this, id be greatful as its getting pretty urgent.
Thanks
Jon Britton -
Reg:- Exception in thread "main" java.lang.NoClassDefFoundError
Hi Friends,
I am trying to connect to Central Management Server using Java.I have created a sample program.I set class path as
D:\j2sdk1.4.2_14\lib;D:\Program Files\Business Objects\common\3.5\java\lib\rebean.wi.jar;D:\Program Files\Business Objects\common\3.5\java\lib\rebean.jar;D:\Program Files\Business Objects\common\3.5\java\lib\ceplugins.jar;D:\Program Files\Business Objects\common\3.5\java\lib\cesession.jar;D:\Program Files\Business Objects\common\3.5\java\lib\cecore.jar;D:\Program Files\Business Objects\common\3.5\java\lib\celib.jar;D:\Program Files\Business Objects\common\3.5\java\lib\.;.
Source Code Sample.java
import com.crystaldecisions.enterprise.ocaframework.ServiceNames;
import com.crystaldecisions.sdk.exception.SDKException;
import com.crystaldecisions.sdk.occa.infostore.IInfoStore;
import com.crystaldecisions.sdk.occa.pluginmgr.*;
import com.crystaldecisions.sdk.plugin.*;
import com.crystaldecisions.sdk.plugin.desktop.report.*;
import com.crystaldecisions.sdk.plugin.desktop.user.*;
import com.crystaldecisions.sdk.framework.*;
import com.businessobjects.rebean.wi.LogicalOperator;
import com.crystaldecisions.sdk.occa.infostore.*;
import com.businessobjects.rebean.wi.*;
import java.util.*;
import java.lang.StringBuffer;
import java.io.*;
public class Sample1
public static void main(String[] args)
System.out.println("After Method Call");
String Juname = "Administrator";
String Jpwd = "";
String Jcms = "hst-pcs4892:6400";
String Jauth = "secEnterprise";
SDKException Jfailure = null;
boolean JloggedIn = true;
IEnterpriseSession JenterpriseSession=null;
// If no session already exists, logon using the specified parameters.
if (JenterpriseSession == null)
try
/* Attempt logon. Create an Enterprise session
* manager object.
ISessionMgr JsessionMgr = CrystalEnterprise.getSessionMgr();
// Log on to BusinessObjects Enterprise.
JenterpriseSession = JsessionMgr.logon(Juname, Jpwd, Jcms, Jauth);
String JlogonToken = JenterpriseSession.getLogonTokenMgr().getDefaultToken();
catch (SDKException error)
System.out.println("Exception Occured");
JloggedIn = false;
Jfailure = error;
//System.out.println(JloggedIn);
I am getting the following error
Exception in thread "main" java.lang.NoClassDefFoundError: com/crystaldecisions/thirdparty/org/omg/CORBA/TRANSIENT
at com.crystaldecisions.enterprise.ocaframework.ServiceMgrFactory.getServiceMgr(Unknown Source)
at com.crystaldecisions.sdk.occa.security.internal.m.<init>(Unknown Source)
at com.crystaldecisions.sdk.occa.security.internal.SecurityFactory.makeSecurityMgr(Unknown Source)
at com.crystaldecisions.sdk.framework.internal.d.<init>(Unknown Source)
at com.crystaldecisions.sdk.framework.internal.CEFactory.makeSessionMgr(Unknown Source)
at com.crystaldecisions.sdk.framework.CrystalEnterprise.getSessionMgr(Unknown Source)
at Sample1.main(Sample1.java:46)
Please help me resolve this.
Regards,
Sriram.
[email protected]Hi Cotton,
First let me thank you for responding to this
thread.I gave the class path where all these are
availableJava disagrees with you.
Do you know which jar com.crystaldecisions.thirdparty.org.omg.CORBA/TRANSIENT is supposed to be in? -
I'm kinda new to this.... Everything works fine on my Desktop machine (XP Pro), but I've tried twice now to install the SDK (1.5.0_05) on my laptop (XP Home) and here's the problem.
When I create a simple classs (see example below) and compile it, everying goes ok and I get the FileName.class result. But when I try to run it ("C:\Documents and Settings\ .... \java directory > java FileName") I get the following error statement.
Exception in thread "main" java.lang.NoClassDefFoundError: FileName
What do I do to fix this?Hello,
I have the same problem but I'm using Jbuilder. I allways get this error:
java.lang.NoClassDefFoundError:
Test Exception in thread "main"
I don't even have a class called Test but whichever project I run gives this error. Even simple hello world programs. This question has been asked before but I couldn't find any real answers. Someone mentioned class paths but I don't know how to test this.
Is anyone familiar with Jbuilder project options? I have JRE and JSE installed. Thanks. -
Exception in thread "main" java.lang.NoClassDefFoundError: HW
I am very new to java. Tried to take the time to learn but got wrapped up in other things. Now I am back to learn and here is what I am getting. I don't know if it has anything to do with java required files being in a different directory or what. I have my java sdk files in C:\Program Files\Java\jre1.6.0_05\ and the source file is in C:\Java
Here is more information.
My Error at runtime:_
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp
My actions in the shell:_
C:\Java>javac HW.java
C:\Java>java HW
Exception in thread "main" java.lang.NoClassDefFoundError: HW
Caused by: java.lang.ClassNotFoundException: HW
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
My Source:_
* The HelloWorldApp class implements an application that
* simply prints "Hello World!" to standard output.
class HW {
public static void main(String[] args) {
System.out.println("Hello World!"); // Display the string.
}My Error at runtime:_
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp
Exception in thread "main" java.lang.NoClassDefFoundError: HW
Caused by: java.lang.ClassNotFoundException: HWO_o
That's two different errors.
Try to execute with:
java -cp . HW -
I'm getting this error
java.lang.NoClassDefFoundError: com/sun/j3d/utils/applet/MainFrame
at HelloUniverse.main(Compiled Code)
I receive this error when I try to run the demos that are in the /usr/java1.1/demo folder.
I followed the directions to install java3d. I installed the java3d binary in the top part of
the JDK directory then ran the binary. Everything installed o.k., but I cannot run
any of the demos. I also have J2SE 1.2.2_05a, JDK 1.1.8_10, and.
JRE 1.1.8_10 installed. My operating system is SunOS 5.6, Solaris 2.6. My workstation
is an Ultra 5 with 374mb ram.
Here is part of the install intructions.
Place the java3d1_2-solsparc.bin file into the top level directory
of the JDK you wish to install Java 3D into. Execute the
java3d1_2-solsparc.bin file (ex: sh java3d1_2-solsparc.bin).
After installation, you may remove this file.
The Java 3D(TM) SDK includes several demo programs that can
verify correct installation. Assuming your Java 2 SDK is installed
at ~/Solaris_JDK_1.2.2_05, try the following:
cd ~/Solaris_JDK_1.2.2_05/demo/java3d/HelloUniverse
java HelloUniverse
Note: Many more demos are available under the demo/java3d/
directory. Some of the demos require a maximum memory
pool larger than the default in java. To increase the
maximum memory pool to 64 meg, add the following command
line options to java or appletviewer:
java: -mx64m
appletviewer: -J-mx64m
You do not need to include the J3D jar files in your CLASSPATH,
nor do you need to include the J3D shared libraries in your PATH.
You should include "." in your CLASSPATH or ensure that CLASSPATH
is not set.
I'm not sure how to set set/unset the CLASSPATH and I'm not sure if I was supposed to
place the binary file in the /usr/java1.1 or /usr/java or /usr/java1.2 directory.
Can anyone help?
tomjones-- If jar size isn't an issue, I recommend using thick "weblogic.jar" instead of the thin "wl*.jar" jars. The thick jar is a better performer, is used by more customers, and has more features. Otherwise:
-- It might help to use the thin client jars from a later service pack - several service packs have been released since SP2, or you might even try using jars from a recent 9.2 SP or even 10.0.
-- Also, check to see if the 1.4.2 JVM is up-to-date and/or try switching from the Sun JVM to the JRockit JVM (or vice-versa).
-- Finally, it might help to check if your XP environment matches your Linux environment (JVM command-line, classpath, etc).
-- Also: The IIOP newsgroup may also have some advice. The thin client uses the IIOP protocol even when a "t3:" URL is specified by the application.
Tom -
Java SDK Help Needed URGENTLY!
Hi, as part of my uni course I am required to learn Java. Until now, I have only used it at uni and everything works fine. However, I decided to download Java 2 SDK from the Sun website (version 1.3.1_01).
I am using Textpad as the editor and just installed Java by running the 32mb installer file. Textpad works fine and Java was installed to c:\jdk1.3.1_01
Now, i created this simple program (from my tutorial notes) in Textpad:
// The code below is held in a file called Exmpl1.java
// This is Example1
// The program requires you to type in your name.
// Your name and a welcome message are then output to the screen
import java.io.*;
class Exmpl1M
static BufferedReader keyboard = new
BufferedReader (new InputStreamReader(System.in));
static PrintWriter screen = new PrintWriter(System.out,true);
public static void main (String[] args) throws IOException
String name; // The place to store data entered from the keyboard
// Prompt to the user of the program
screen.print("Please enter your name ");
screen.flush();
// Get the data (a name) entered at the keyboard
name = keyboard.readLine();
screen.print("\n\nHello " + name );
screen.println(" - Welcome to programming with Java\n\n");
String lab; // The place to store data entered from the keyboard
screen.print("What lab are you working in? ");
screen.flush();
// Get the data (a lab) entered at the keyboard
lab = keyboard.readLine();
screen.println("\n\n" + lab + "is a nice place to work!" );
} // End of method main
} // End of class Exmpl1M
I know this file works ok because i have tested it on the uni computers. The Exmpl1M.class file is created where the Exmpl1M.java file is stored. It will compile fine using the Tools>Compile Java menu option.
Now, here is the problem: when i go to Tools>Run Java Application, I get the message
"Exception in thread "main" java.lang.NoClassDefFoundError: Exmpl1M
Press any key to continue..."
Now, seeing as how i am new to Java, i have no idea why i am getting this message. Should I have changed any settings when i installed Java? I'm guessing it may have something to do with "method main" in the coding, but we have always been told to put this but not told why.
Please help cause i need to be able to write the progs at home tooIs the name of the class the same as the class file
Maybe you mixed up Exmple1 and Exmpl1M
If this is ok then try this:
I do not know Textpad so
open Terminal/Console/DOS-Box go to directory where your Exmpl1.class file is located.
Type in
java Exmpl1
If the program runs now some configuration in Textpad is wrong.
Horst
Hi, as part of my uni course I am required to learn
Java. Until now, I have only used it at uni and
everything works fine. However, I decided to download
Java 2 SDK from the Sun website (version 1.3.1_01).
I am using Textpad as the editor and just installed
Java by running the 32mb installer file. Textpad works
fine and Java was installed to c:\jdk1.3.1_01
Now, i created this simple program (from my tutorial
notes) in Textpad:
I know this file works ok because i have tested it on
the uni computers. The Exmpl1M.class file is created
where the Exmpl1M.java file is stored. It will compile
fine using the Tools>Compile Java menu option.
Now, here is the problem: when i go to Tools>Run Java
Application, I get the message
"Exception in thread "main"
java.lang.NoClassDefFoundError: Exmpl1M
Press any key to continue..."
Now, seeing as how i am new to Java, i have no idea
why i am getting this message. Should I have changed
any settings when i installed Java? I'm guessing it
may have something to do with "method main" in the
coding, but we have always been told to put this but
not told why.
Please help cause i need to be able to write the progs
at home too -
Following Java SDK tutorial getting exception.
Hi guys,
I am following the tutorial below on learning how to use the sdk. I pretty mch copy and pasted the cody, imported all the jar files, there's no red marks or syntax errors.
http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/wwhelp/wwhimpl/common/ht ml/wwhelp.htm?context=sdkHelp&file=Introduction.1.1.html
I am getting the following runtime exceptions when I run the program. My server is up and running and I am sure I am using at correct URL since I can go to it in my browser and log in to ther server.
com.adobe.edc.sdk.SDKException
: The following class could not be found. Check the classpath for required jars: javax/ejb/EJBException -- An error occured while performing this operation(error code bin: 1, hex: 0x1)at com.adobe.edc.sdk.impl.ExceptionHandler$IllegalStateExceptionTranslator.getSDKException(
ExceptionHandler.java:388)at com.adobe.edc.sdk.impl.ExceptionHandler.throwException(
ExceptionHandler.java:438)at com.adobe.edc.sdk.impl.ExceptionHandler.throwException(
ExceptionHandler.java:397)at com.adobe.livecycle.rightsmanagement.client.impl.scf.SCFConnection.registerPolicy(
SCFConnection.java:112)at com.adobe.livecycle.rightsmanagement.client.impl.PolicyManagerImpl.registerPolicy(
PolicyManagerImpl.java:83)at CreatePolicy.main(
CreatePolicy.java:49)Caused by: java.lang.NoClassDefFoundError:
javax/ejb/EJBExceptionat com.adobe.idp.dsc.clientsdk.ServiceClientFactory.evaluateMessageDispatcher(
ServiceClientFactory.java:587)at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(
ServiceClient.java:215)at com.adobe.livecycle.rightsmanagement.client.impl.scf.SCFConnection.registerPolicy(
SCFConnection.java:107)... 2 more
Caused by:
java.lang.ClassNotFoundException: javax.ejb.EJBExceptionat java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(
Native Method)at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 5 moreThe problem you're experiencing is due to your JNDI configuration not matching the JavaDB database where you created the tables.
If you look at the config for DerbyPool in the Admin Console, you'll see that DerbyPool points to:
jdbc:derby://localhost:1527/sun-appserv-samples
In the Admin Console click Resources->Connection Pools->DerbyPool, then click Additional Properties (9.1) or look at the page (9.0).
You can either modify DerbyPool's config to point to:
jdbc:derby://localhost:1527/BookDB
Or you can create the tables in sun-appserv-samples. The create-tables ant task included with the Java EE 5 Tutorial will create the tables in the correct database.
-ian -
Java.lang.NoClassDefFoundError: Simulation Help please!
java.lang.NoClassDefFoundError: Simulation
at SimulationController.setEnv(SimulationController.java)
at EnvironmentController.setEnv(EnvironmentController.java)
at EnvironmentController.openFile(EnvironmentController.java)
at MBSGUIFrame$1.actionPerformed(MBSGUIFrame.java)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Exit code: 0
No Errors
This occurs when I try to run a data file through a case study program that I need for my examinations. I'm using RealJ 3.51, with SDK 1.4.2_09 The case study launches fine, and when I open the .dat file, I can see the fish which should begin to move, but that is when I get that error.Trying to guess... Does that class have a package or something?
-
Java.main.NoClassDefFoundError
hi everyone ,
I get this error.
java.main.NoClassDefFoundError
when i compile the simplest things.
I think the problem is with my java environment.
i believe initially i got an error that said something in my registry.
HKEY_LOCAL_MACHINE/Software/JavaSoft/Java Runtime environment
current version is 1.1 when it should be 1.3
I changed it to 1.3 now i get this error .
java.main.NoClassDefFoundError
I think my environment is not set up properly.
any ideas ?
StephenI put the same java file on another computer (my desktop computer) -- it ran properly without giving the problem.
Here is history of the laptop computer
i installed the sdk and jre for 1.3_02
I have been using it to run my jsp and beans with JRUN
I have been able to compile and run servlets, jsp pages and java beans properly.
Now I try to run a smiple java program that simply says hello world and it doesn't run.
it compiles well but gives the error .
java.main.NoClassDefFoundError
Any ideas ??
Stephen -
Hey
I just got a new computer with Windows XP on it and I installed Java SDK on it. I can compile my programs but I can't run them i get this:
Exception in thread "main" java.lang.NoClassDefFoundError: hate
even though there is a .class file. I was wondering if anybody have the same problem?
ThanksDo a "echo %CLASSPATH%" at the DOS prompt...You should see the directory in which you installed Java...
Example:
CLASSPATH=c:\j2sdk1.4.1;.; where (".") = the current directory.
Your JVM cannot find the class file because you have not set the CLASSPATH enviroment variable. Your PATH enviroment variable sounds like it is ok because your OS(Windows, etc) is able to find the java, javac, jar, etc commmands.
Hope this helps. -
Exception in thread "main" java.lang.NoClassDefFoundError
Am using java 1.3.1 on Red Hat Linux 7.1
i get this error
Exception in thread "main" java.lang.NoClassDefFoundError
while running a simple program HelloWorld.java
helpWhen you use the "java" command, the only required argument is the name of the class that you want to execute. This argument must be a class name, not a file name, and class names are case sensitive. For example, "java HelloWorld.java" won't work because the class name isn't HelloWorld.java, it's HelloWorld. Similarly, "java helloworld" won't work because a class defined as "public class HelloWorld {" is not named helloworld due to case sensitivity. Finally, the .class file must be in a directory that is in the Classpath - that's where java.exe searches to find the file that contains the class.
Maybe you are looking for
-
Required replace BSEG with BSAK BSIK BSIS BSAS for report performance
Hi Experts i m optimizing a report in which data is extracting from BSEG , 5 time so i reduses the performance of report so i want replace BSEG with BSAK BSIK BSIS BSAS for the same data what I am getting now . this is report of Purchase of item. cod
-
Here is a clean way to retrieve Save As… feature in Pages --(SCRIPT Pages_save_a_copy] Enregistrer le script en tant que Script : Pages_save_a_copy.scpt déplacer le fichier créé dans le dossier <VolumeDeDémarrage>:Utilisateurs:<votreCompte>:Bibliothè
-
As a school teacher, I viewed the student's movie project in edit mode and I known it was there. The student was attempting to burn the project to a disc to back it up and it disappeared. The raw video clips are still sitting there but the edited pro
-
For some reason my internet is too slow for me watch videos. I want to know how to add recipes to recipe box. There is no where in the app where I can click that says add recipe. All I can do is look at the very few recipes that came with it. Help!
-
I want to connect my ancient [os x 10.5.8] mac to bravia tv and get sound. Any tips? Thanks!