Exception in thread "main" java.lang.NoClassDefFoundError: Test
Hi,
I have just installed J2SE 1.4.2 on my computer, and I am trying to compile and run a simple test program.
public class Test
public static void main (String[] args)
System.out.println("This is the skeleton for a program.");
I think it compiles ok but when i try to run it I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: Test
Is there something else I need to install, or a setting that needs to be changed?
If anyone has any idea I would really appreciate it. Thanks
You also need to set your $CLASSPATH variable to the directory you have for class files. Set it to like CLASSPATH=/directory/classdirectory/:. and export CLASSPATH. You need to put these two in your profile file.
your profile should be reloaded for the variable to get set. Or you could set the variable on the command line before you run your program.
I hope this solves your problem. Most of the time this is the problem's solution.
Similar Messages
-
Exception in thread "main" java.lang.NoClassDefFoundError: test/java
why do i get this error every time i try and run my code?
Sounds like you have a file test.java
compile it:
javac test.java
produces test.class
run it:
java test
sounds like you were trying something like this:
java test.java (WRONG) -
I am trying to develop a web service client for amazon webservice.but i am getting this error while running the app. Can anyone please help me. I have installed the JWSDP and but could not understand why i have to locate all the jar files in the classpath?Please help.
===== error=========================================
C:\abr\classes>java -classpath c:\abr\test.jar;C:\abr\jaxrpc-api.jar;C:\abr\jaxrpc-impl.jar;C:\abr\jaxrpc-spi.jar;c:\abr\classes\amazon.jar;C:\abr\mail.jar;C:\a
br\saaj-api.jar;C:\abr\activation.jar;c:\abr\FastInfoset.jar;%classpath% Client
[b]Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/stream/XMLS
treamWriter
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at 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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at 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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at com.sun.xml.rpc.client.StreamingSender._writeRequest(StreamingSender.
java:672)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:87)
at amazon.AmazonSearchPort_Stub.authorSearchRequest(AmazonSearchPort_Stu
b.java:988)
at Client.main(Client.java:21)I'm assuming you're using JWSDP 1.6 as I see Fastinfoset.jar in your list. You are missing some jar files in your classpath there. The best way to know what you need is to look at the release notes for JWSDP 1.6. Since you're building a web serivce start with the table in there and lookup JAX-RPC. It'll show you what jar files are needed and what other libraries are needed. Now depending on what you're doing you don't really need all those.
For sure you're missing jsr173_api.jar which is where I believe that class you need is located. This is in the JWSDP_1_6\sjsxp\lib directory. You will probably need the other jar thats in there too. Best bet is to follow the dependancy chart in the release notes.
This should get you going.
Ryan -
Exception in thread "main" java.lang.NoClassDefFoundError: Emp/class
Dear all,
It occur 'Exception in thread "main" java.lang.NoClassDefFoundError: Emp/class' error when I test a oracle java sample.I've already SET CLASSPATH=C:\ORACLE\JDBC\LIB\CLASSE~1.ZIP.
following is the source code:
import java.sql.*;
class Emp
public static void main (String args [])
throws SQLException
// Load the Oracle JDBC driver
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
// Connect to the database
// You must put a database name after the @ sign in the connection URL.
// You can use either the fully specified SQL*net syntax or a short cut
// syntax as <host>:<port>:<sid>. The example uses the short cut syntax.
Connection conn =
DriverManager.getConnection ("jdbc:oracle:oci8:@localhost:1521:orcl",
"scott", "tiger");
// Create a Statement
Statement stmt = conn.createStatement ();
// Select the ENAME column from the EMP table
ResultSet rset = stmt.executeQuery ("select ENAME from EMP");
// Iterate through the result and print the employee names
while (rset.next ())
System.out.println (rset.getString (1));
Can you tell me what should also be set in classpath?
thanks in advance.You are right, the program is absolutely correct and I've run it before.but why set PATH=%PATH%;C:\ORACLE\JDBC\LIB\CLASSE~1.ZIP?I don't think it is correct.
I've ever run this jdbc program before and remeber only set classpath(path is also be set only for run executable program, for example set path=%path%;c:\j2sdk\bin),
I think the only difference with before is:
1,oracle version is changed from enterprise version to personal version
2,OS is changed from NT to windows 98
but i dont know if it lead to problem and can you give me some advice? -
Exception in thread "main" java.lang.NoClassDefFoundError: Hello
Hi @ all!
I'm a newbie and maybe for advanced developers my problem is just a tiny one, but I can't solve it. So everytime I want to run my Hello.class in a DOS window with the commandline: java Hello, it print this error:
Exception in thread "main" java.lang.NoClassDefFoundError: Hello
Who can I solve it???This is a common problem and everybody has had it! The Java runtime cannot find your class.
- make sure that your compilation worked and the "Hello.class" file exists.
- To test whether this is a classpath problem, navigate to the directory where "Hello.class" is located and then run "Java Hello" again (assumes you are not yet using packages). If it works, then add the directory to your classpath and you should be able to run from anywhere.
- if it doesn't work, post again with the error.
Good Luck -
Exception in thread "main" java.lang.NoClassDefFoundError: Xms512m
when i change memory arguments , i am getting the following error and the server is not starting.
JAVA Memory arguments: Xms512m -Xmx512m -XX:MaxPermSize=128m
WLS Start Mode=Production
CLASSPATH=:/home3/bea9/patch_weblogic922/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home3/bea9/jdk150_07/lib/tools.jar:/home3/bea9/weblogic92/server/lib/weblogic_sp.jar:/home3/bea9/weblogic92/server/lib/weblogic.jar:/home3/bea9/weblogic92/server/lib/webservices.jar::/home3/bea9/weblogic92/common/eval/pointbase/lib/pbclient51.jar:/home3/bea9/weblogic92/server/lib/xqrl.jar::
PATH=/home3/bea9/weblogic92/server/bin:/home3/bea9/jdk150_07/jre/bin:/home3/bea9/jdk150_07/bin:/home3/bea8/weblogic81/server/bin:/weblogic/bea/scripts:/home3/bea8/jdk142_05/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/langtools/bin:/opt/imake/bin:/opt/perf/bin:/opt/ignite/bin:/opt/OV/bin/OpC:/opt/hpnp//bin:/opt/resmon/bin:/usr/sbin/diag/contrib:/opt/pred/bin:/opt/sec_mgmt/spc/bin:/opt/graphics/common/bin:/opt/OV/bin:/opt/ssh/bin:/opt/aCC/bin:/opt/sec_mgmt/bastille/bin:.:/u01/app/oracle/product/8.1.7/bin
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http://hostname:port/console *
starting weblogic with Java version:
java version "1.5.0.07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0.07-_20_mar_2007_05_31)
Java HotSpot(TM) Server VM (build 1.5.0.07 jinteg:03.20.07-04:39 PA2.0 (aCC_AP), mixed mode)
Starting WLS with line:
/home3/bea9/jdk150_07/bin/java -server Xms512m -Xmx512m -XX:MaxPermSize=128m -da -Dplatform.home=/home3/bea9/weblogic92 -Dwls.home=/home3/bea9/weblogic92/server -Dwli.home=/home3/bea9/weblogic92/integration -Dweblogic.management.discover=false -Dweblogic.management.server=http://localhost:9001 -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/home3/bea9/patch_weblogic922/profiles/default/sysext_manifest_classpath -Dweblogic.Name=TEST -Djava.security.policy=/home3/bea9/weblogic92/server/lib/weblogic.policy weblogic.Server
Exception in thread "main" java.lang.NoClassDefFoundError: Xms512m
$
The server is starting fine with domain variables without changing the memory arguments in the managed server startup scripts.
But when i changed the mem args in the server startup script , this is the error and server is not starting.
the domain env is set and weblogic server version 9.2
Here is the arguments i changed in the startup script, the server is starting with out these arguments with domain set memory arguments. Any body please help
USER_MEM_ARGS="Xms512m -Xmx512m -XX:MaxPermSize=128m"
export USER_MEM_ARGSI think you are missing a character '-'
USER_MEM_ARGS="Xms512m -Xmx512m -XX:MaxPermSize=128m"Add this character like follows
"-Xms512m -Xmx512m -XX:MaxPermSize=128m" -
Error complie "Exception in thread "main" java.lang.NoClassDefFoundError"
Dear All,
I have the following problem can not compile the code below.
Here my settings and the code.
Thanks for the help.
My java version.
===============================================
D:\bea\jdk150_22\bin>java -version
java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
Java HotSpot(TM) Client VM (build 1.5.0_22-b03, mixed mode)
===============================================
I use a bat to compile the code
===============================================
set JDK_HOME=D:\bea\jdk150_22
set PATH=%JDK_HOME%\bin;%PATH%
set CLASSPATH=%CLASSPATH%;D:\oracle\product\10.2.0\client_1\jdbc\lib\classes12.jar
rem ---- compile
javac GetDBOracle.java
rem ---- testing
java GetDBOracle
rem ---- add to jar
jar cf GetDBOracle.jar GetDBOracle.class
===============================================
My java code
===============================================
import java.sql.*;
import java.io.*;
public class GetDBOracle {
public static String GetDBOracle(String Parm1, String Parm2) throws SQLException
String myResult = "";
// Load Oracle driver
DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
// Connect to the local database
Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:@localhost:ORCL", "ORC", "ORC2010");
// Query the employee names
Statement stmt = conn.createStatement ();
ResultSet rset = stmt.executeQuery ("SELECT JAVA_GET_VALUE('"Parm1"','"Parm2"') FROM DUAL");
// Print the name out
while (rset.next ()) {
myResult = rset.getString (1);
//close the result set, statement, and the connection
rset.close();
stmt.close();
conn.close();
return myResult;
public static void main(String args[])
try {
System.out.println(GetDBOracle("XXI", "12000"));
} catch (Exception e) {
System.out.println(e.getMessage());
===============================================
Erro
===============================================
Exception in thread "main" java.lang.NoClassDefFoundError: GetDBOracle
===============================================What happened to this Error complie "Exception in thread "main" java.lang.NoClassDefFoundError" ?
-
I have a simple server program and a simple client program to test axis - soap-rpc style method using Topcat Apache 4.1.
I am getting errors while running my client program (for both methods - .jws as well as .wsdd)
Here is the errors:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/discovery/tools/DiscoverSingleton
at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)
at org.apache.axis.utils.Options.<clinit>(Options.java:35)
==================================
I AM USING FOLLOWING CLASSPATH:
c:\Axis\lib\axis.jar;
c:\Axis\lib\axis-ant.jar;
c:\Axis\lib\commons-discovery-0.2.jar;
c:\Axis\lib\commons-logging-1.0.4.jar;
c:\Axis\lib\jax-1_1-fr-qname-class.jar;
c:\Axis\lib\jaxrpc.jar;
c:\Axis\lib\log4j-1.2.8.jar;
c:\Axis\lib\saaj.jar;
c:\Axis\lib\wsdl4j-1.5.1.jar;
c:\Axis\lib\activation.jar;
C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar
==================================
Based on the others recommendation I read I have changed some other version of "COMMANS-LOGGING.JAR", but still I am getting same errors.
Can anyone help me what may be wrong?
Help me!commons-discovery-0.2.jar was fine in my classpath.
Here is the solution:
My classpath did not include . (dot) for the default classpath.
After adding .; (dot) in the beginning of the classpath, the issue was solved.
Thanks -
Exception in thread "main" java.lang.NoClassDefFoundError: JdbcExample1 (wr
Tthe program is getting compiled fine . After that I am giving hte command
java JdbcExample1
The error messge that comes is :
Exception in thread "main" java.lang.NoClassDefFoundError: JdbcExample1 (wrong name: com/stardeveloper/example/JdbcExample1)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at 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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
MY computer settings
Java is installed in : c:\jdk1.3
Classpath is
C:\com\stardeveloper\example;C:\Documents and Settings\abhijeet\Desktop;c:\jdk1.3\bin;c:\jdk1.3\lib\tools.jar;c:\jdk1.3\jre\lib\ext\mysql-connector-java-3.1.12-bin.jar;C:\com\stardeveloper\example\JdbcExample2\mysql-connector-java-3.1.12-bin.jar;c:\jdk1.3\bin;c:program files\java\j2re1.4.2_11\bin\;C:\jdk1.3\jre\bin;%CLASSPATH%;
CODE is :
package com.stardeveloper.example;
import java.sql.*;
public class JdbcExample1 {
public static void main(String args[]) {
Connection con = null;
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
con = DriverManager.getConnection("jdbc:mysql:///test", "root", "desertgot123");
if(!con.isClosed())
System.out.println("Successfully connected to MySQL server...");
} catch(Exception e) {
System.err.println("Exception: " + e.getMessage());
} finally {
try {
if(con != null)
con.close();
} catch(SQLException e) {}
}Thanks a lot all.....the code has started working but the reason for its running and non running remain unclear...
1)When you give the command java JdbcExample1 inside the directory structure c:\com\startdeveloper\example ,it does not work
\2) Including c:\ in the classpath also did not help
3) Now after removing c:\ from the classpath and then going ot the c:\ i gave the command java com.stardeveloper.example.JdbcExample1. Voila it stated working.
Some advice needed from you all guys..the way out to buil a databas e driven website seems seriously very complicated if this keeps happening.IS there any GUI based tool hat can help.
Thanks a lot
abhijeet -
Exception in thread "main" java.lang.NoClassDefFoundError: JdbcExample1/
Dear all ,I am getting the following eror message while using JDBC to connect to MYSQL
Exception in thread "main" java.lang.NoClassDefFoundError: JdbcExample1/class
The code comiles fine but when i run it the error comes.
The java code used is as follows and it is in the directory c:\com\stardeveloper\example
The classpath is set as
classpath= .;c:\jdk1.3\lib\tools.jar;c:\jdk1.3\jre\lib\ext\mysql-connector-java-3.1.12-bin.jar;C:\com\stardeveloper\example\mysql-connector-java-3.1.12-bin.jar
JAVA_HOME= C:\jdk1.3
Java is installed in : C:\jdk1.3
The mysql-connector-java-3.1.12-bin.jar is in the folder wher the code is i.e. C:\com\stardeveloper\example
THE CODE IS AS FOLLOWS:
package com.stardeveloper.example;
import java.sql.*;
public class JdbcExample1 {
public static void main(String args[]) {
Connection con = null;
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
con = DriverManager.getConnection("jdbc:mysql:///test", "root", "desertgot123");
if(!con.isClosed())
System.out.println("Successfully connected to MySQL server...");
} catch(Exception e) {
System.err.println("Exception: " + e.getMessage());
} finally {
try {
if(con != null)
con.close();
} catch(SQLException e) {}
Please help
Thanks in advance
Regards
AbhijeetClasspath is C:\com\stardeveloper\example;C:\Documents and Settings\abhijeet\Desktop;c:\jdk1.3\bin;c:\jdk1.3\lib\tools.jar;c:\jdk1.3\jre\lib\ext\mysql-connector-java-3.1.12-bin.jar;C:\com\stardeveloper\example\JdbcExample2\mysql-connector-java-3.1.12-bin.jar;c:\jdk1.3\bin;c:program files\java\j2re1.4.2_11\bin\;C:\jdk1.3\jre\bin;%CLASSPATH%;
the program is getting compiled fine . After that I am giving hte command
java JdbcExample1
The error messge that comes is :
Exception in thread "main" java.lang.NoClassDefFoundError: JdbcExample1 (wrong n
ame: com/stardeveloper/example/JdbcExample1)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at 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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source) -
Exception in thread "main" java.lang.NoclassDefFoundError:javax/actiovation
c:\>java Emailer
Exception in thread "main" java.lang.NoclassDefFoundError:javax/actiovation/DataSource
at Main.<inti><Main.java:36>
at Main.<inti><Main.java:51>
am getting the following error wen am try to run my code..
i think am havin problem in settin the classpath for
authentication.jar file
and if poissible give me full code for sending email from maa system
can any one tell me how to set the class path for the jar file and wer to download the jar file
thanks in advance
byeimport java.util.*;
import java.io.*;
import javax.mail.*;
import javax.mail.internet.*;
import com.sun.mail.smtp.SMTPMessage;
public class Emailer
String subject;
String body;
public Emailer()
public void sendEmail(String fromEmailAddr, String toEmailAddr, String ccEmailAddr, String aSubject, String aBody) throws AddressException
subject = aSubject;
body = aBody;
Properties eMailConfigProps = new Properties();
eMailConfigProps = System.getProperties();
eMailConfigProps.put("mail.from",new InternetAddress(fromEmailAddr));
eMailConfigProps.put("mail.smtp.host", "59.175.161.22");
eMailConfigProps.setProperty("mail.smtp.port", "25");
eMailConfigProps.put("mail.transport.protocol", "59.175.161.22");
Session session = Session.getInstance(eMailConfigProps, null);
MimeMessage message = new SMTPMessage(session);
try
message.addRecipient(Message.RecipientType.TO, new InternetAddress(toEmailAddr));
message.addRecipient(Message.RecipientType.CC, new InternetAddress(ccEmailAddr));
message.setSubject(subject);
message.setText(body);
Transport.send(message);
catch (MessagingException ex)
System.err.println("Cannot send email. " + ex);
public static void main(String args[])
Emailer objEmailer = new Emailer();
try
objEmailer.sendEmail("[email protected]","[email protected]","[email protected]","Test Mail","Hi am working...");
catch(javax.mail.internet.AddressException e)
e.printStackTrace();
wen am trying to execute the about code .. itss showing the following error
plz wat r the changes that i should do in that coding..
even i got the code from this forum only
plz tel me
this is the error am getting :
c:/>java Emailer
cannto send email. javax.mail.MessagingException : Could not connect to SMTP host :192.168.15.100,port :25;
nested exception is :java.net.ConeectException :Connecton refused:connect
tis is the error am getting ..
pplzz anyone help
wat r the changess that i should do in maa programm .. wat is the ipaddress and port no i should put ..wer can i get these 2..
thanks in advance
bye -
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp
I have set the path, classpath and also compiled the HelloWorldApp.java file and my main is public static void main.
public class HelloWorldApp
public static void main(String[] args)
// Display "Hello World!"
System.out.println("Hello World!");
I still get this error
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldAppFor better understanding:
I have set the classpath in the autoexec.bat following:
set CLASSPATH="C:\TEST;.;";
and I have a userdefined class in c:\jdk1.3.1_01\jre\lib\ext\myclass.jar
compiling works, but when I run the program in c:\TEST\Hello.java I get the java.lang.NoClassDefFoundError Message.
My source code looks like this:
import myclass.*;
public class Hello extends MyClass{
public static void main(String[] args) {
System.out.println("Hello"); -
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.
-
Hi,
system i am using for Oracle SOA is :
Windows 64 Bit
i5 Processor
6 GB RAM
29 GB on C Drive is already free after installation of all SOA related products.
I have installed wlserver_10.3 for SOA 11g Development purpose and followed exact installation sequence and procedure as mention in oracle documentation
i created domain also and every thing look correct but after installation procedure there are "Additional actions required just after every thing installed" :
setting memory limit
starting weblogic server (Admin Server)
starting weblogic managed server
and so on
now Problem is when i execute C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin startWebLogic.cmd
as mention in oracle documentation i am getting following error message : (i have only included last error lines instead of complete console log)
oConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1036\profiles\default\
sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_oepe180\profiles\default\syse
xt_manifest_classpath;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sysext_ma
nifest_classpath;C:\Oracle\MIDDLE~1\patch_adfr1111\profiles\default\sysext_manif
est_classpath weblogic.Server
Listening for transport dt_socket at address: 8453
Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m
Caused by: java.lang.ClassNotFoundException: vXmx512m
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: ++Xmx512m. Program will exit.
Now to resolve this what i already tried are :
I change JAVA_HOME and PATH to jdk6 which came with web logic installer
Location is at :
JAVA_HOME : C:\Oracle\Middleware\jdk160_29
PATH : C:\Oracle\Middleware\jdk160_29\bin
The above dose not include any space between path
I ran the startWebLogic.cmd and got same error
After that I also added
CLASSPATH : C:\Oracle\Middleware\jdk160_29\lib\tool.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\Middleware\jdk160_29\bin
WL_HOME: C:\Oracle\Middleware\wlserver_10.3
I ran the startWebLogic.cmd and got same error
I also used earlier path which I used with eclipse when I was working on other java development.
JAVA_HOME : C:\Program Files\Java\jdk1.7.0_21
PATH : C:\Program Files\Java\jdk1.7.0_21\bin
I ran the startWebLogic.cmd and got same error
Then I also gave PATH: C:\Oracle\Middleware\wlserver_10.3\server\lib (including the existing one using ; )
I ran the startWebLogic.cmd and got same error
Now may be there is a file called setSOADomainEnv.cmd in
< C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin\ setSOADomainEnv.cmd>
That include some values for memory set :
set JAVA_OPTIONS=%JAVA_OPTIONS%
set DEFAULT_MEM_ARGS=-Xms512m –Xmx512m
set PORT_MEM_ARGS=-Xms512m –Xmx768m
if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM
set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=128m -XX:MaxPermSize=768m
set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=768m
now as I change the red highlighted value to 512 value because I have less memory resource and I checked in installation documentation to change the above red highlighted value to 512 original is 1024 which is too high and it was crating problem and showing memory space problem so I change it to 512 and now I am not getting that memory space problem error but may be the above error is related with change value in setSOADomainEnv.cmd file or not
Following are my domain, weblogic and soa home directory path and all these path are exactly what it suppose to be according to Oracle Installation Documentation:
WebLogic :
C:\Oracle\Middleware\wlserver_10.3
C:\Oracle\Middleware\coherence_3.7
C:\Oracle\Middleware\oepe_11.1.1.8.0
SOA Oracle Home Directory :
C:\Oracle\Middleware\Oracle_SOA1
OSB Home Location :
C:\Oracle\Middleware\Oracle_OSB1
Domain name : soa_div_domain
Domain Location : C:\Oracle\Middleware\user_projects\domains
Application Location : C:\Oracle\Middleware\user_projects\applications
Domain Location: C:\Oracle\Middleware\user_projects\domains\soa_div_domain
form here i am trying to start weblogic : C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin\startWebLogic.cmd
Please tell me any body want more details.
Thanks.I think you are missing a character '-'
USER_MEM_ARGS="Xms512m -Xmx512m -XX:MaxPermSize=128m"Add this character like follows
"-Xms512m -Xmx512m -XX:MaxPermSize=128m" -
Hi,
I have created a class JaxmClient.java. When I compile the class with appropriate jar files assigned to -classpath it compiles successfully with no errors. But when I run the classe "java JaxmClient" it produces the following exception:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/soap/SOAPElement
Can someone help me I am knew to this technology.
Thanks in advanceI tried to use in my execution all the jar files that I used for compilation.
java -cp jaxm-jar; etc.jar Request
but it still gives me this execption
Exception in thread "main" java.lang.NoClassDefFoundError: Request
I am in the right directory where is the Request.class file is and it is present in this directory....
Thanks appreciate your help...
Maybe you are looking for
-
Error while Driving a view using parameters from other view
Hi, I have created a report with streamlist and Barchart view.Driving option is used in streamlist to drive the barchart. The driving works well untill i dont use any filters in the Streamlist.Once i use parameters in streamlist , the driving works o
-
How to sync MS Exchange shared calendars and allow permissions?
Hi Everyone, We have a SBS2008 and MS Exchange with which we have a BYOD (Bring Your Own Device) policy to work. We are having some issues in syncing shared calendars for conference room bookings as well as some other issues. We have an iPhone 5s and
-
I recently had to buy a new computer and want to transfer my playlists to my new computer
I recently had to buy a new computer and want to move my playlists from my old one. The playlists include both purchased tracks and tracks uploaded from my cd collection. My old os is Windows XP and my new os is Windows 8 if that is of any relevanc
-
ITunes won't open, different from other problems
Yeah. I don't have Norton (I do have the windwows firewall and stuff, but I already have it on the allowed list) and I've tried deleting the file. I double click on iTunes (I've even tried from the actual .exe file in the program files) and I get the
-
PCI-6220 Analog output to Biometrics DataLOG?
Hello all, I am trying to send an analog signal to our Biometrics DataLOG device. Currently, I have the PCI-6220 card installed and am running the signals through a BNC-2111 DAQ. I am getting no output from our card through our DAQ, any suggestions