Contact Us
About Us
News
Home
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome,
Guest
. Please
login
or
register
.
January 09, 2009, 07:39:59 am
Username:
Password:
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Forgot your password?
Exception in thread "main" java.lang.NoClassDefFoundError: com/eviware/soapui/Cr
Welcome,
Guest
. Please
login
or
register
.
January 09, 2009, 07:39:59 am
News:
The Forums are up! Welcome to eviware.
Eviware Forum
soapUI
soapUI
Exception in thread "main" java.lang.NoClassDefFoundError: com/eviware/soapui/Cr
« previous
next »
Pages:
[
1
]
Author
Topic: Exception in thread "main" java.lang.NoClassDefFoundError: com/eviware/soapui/Cr (Read 457 times)
apoorva
Newbie
Posts: 16
Exception in thread "main" java.lang.NoClassDefFoundError: com/eviware/soapui/Cr
«
on:
July 28, 2008, 08:18:57 pm »
Hi All,
I created java program which create mockresponses for web service. I put java file (CreateWsdlProject.java) under com.eviware.soapui and I created bat file under dist_standalone\bin. along with xxxrunner.bat files. I set all classpath as well.
My bat file looks like this
set JAVA=..\jre\bin\java
rem init classpath
set CLASSPATH=soapui-2.0.2.jar
set CLASSPATH=%CLASSPATH%;..\lib\activation-1.1.jar
set CLASSPATH=%CLASSPATH%;..\lib\javamail-1.4.jar
...........
......
set CLASSPATH=%CLASSPATH%;..\lib\bcprov-jdk15-138.jar
rem JVM parameters, modify as appropriate
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx256m -Dsoapui.properties=soapui.properties
"%JAVA%" %JAVA_OPTS% -cp "%CLASSPATH%" com.eviware.soapui.CreateWsdlProject %*
But when I run this bat file it shows me error like
Exception in thread "main" java.lang.NoClassDefFoundError: com/eviware/soapui/CreateWsdlProject
I also make sure that class file is also available at above mentioned location..
Is there any other dependencies that I have to look..
I will appreciate if any input will be available.
Regards,
Jim
Logged
omatzura
Administrator
Hero Member
Posts: 1,666
Re: Exception in thread "main" java.lang.NoClassDefFoundError: com/eviware/soapui/Cr
«
Reply #1 on:
July 28, 2008, 11:04:14 pm »
Hi,
where have you put the compiled class file for your CreateWsdlProject class?
regards,
/Ole
eviware.com
Logged
apoorva
Newbie
Posts: 16
Re: Exception in thread "main" java.lang.NoClassDefFoundError: com/eviware/soapui/Cr
«
Reply #2 on:
July 28, 2008, 11:29:23 pm »
Hi Ole,
I put my class file under following path
soapui-2.0.2\target\classes\com\eviware\soapui\CreateWsdlProject.class
and my source file is under following path
soapui-2.0.2\src\java\com\eviware\soapui\CreateWsdlProject.java
and bat file which run CreateWSdlProject class is under
soapui-2.0.2\src\dist_standalone\bin\createprojectRunner.bat
Looking forward to hear from you.
Thanks,
Jim
Logged
apoorva
Newbie
Posts: 16
Re: Exception in thread "main" java.lang.NoClassDefFoundError: com/eviware/soapui/Cr
«
Reply #3 on:
July 29, 2008, 11:02:54 pm »
Hi,
I found the solution.. when we compile the project using maven.. It create target directory.. In this directory we can find soapui-VersionName.jar I am using soapui 2.0.2 so mine jar file is soapui-2.0.2.jar
This jar file contains information about all classes and u have to put the path of this file in classpath then and only then your class will be identify.
Does not matter whether u have class file in correct location or not.. make sure u have latest soapui-2.0.2.jar file in ur classpath
May be there is alternative solution also but this is working for me now
Regards,
Jim
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> eviware general
-----------------------------
soapUI
-----------------------------
=> soapUI
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Powered by SMF 1.1.2
|
SMF © 2006-2007, Simple Machines LLC
Loading...