Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error while compiling and building jar file

Status
Not open for further replies.

MaheshRathi

Technical User
Jan 17, 2002
62
IN
Hi,

I am trying to compile the ejb and generate the jar. I am getting following error. (I have tools.jar already in CLASSPATH).


[echo] =========================================
[ejbjar] Could not resolve ( publicId: -//Sun Microsystems, Inc.//DTD Enterpr
ise JavaBeans 2.0//EN, systemId: to a l
ocal entity
[ejbjar] building Search.jar with 13 files
[ejbc] Compiler class: 'com.sun.tools.javac.Main', not found
[ejbc] java.lang.ClassNotFoundException: com.sun.tools.javac.Main
[ejbc] at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
[ejbc] at java.security.AccessController.doPrivileged(Native Method)
[ejbc] at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
[ejbc] at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
[ejbc] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)

[ejbc] at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
[ejbc] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)

[ejbc] at java.lang.Class.forName0(Native Method)
[ejbc] at java.lang.Class.forName(Class.java:140)
[ejbc] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp
ilerInvoker.java:407)
[ejbc] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
er.java:329)
[ejbc] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
er.java:337)
[ejbc] at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:27
0)
[ejbc] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:4
76)
[ejbc] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:3
97)
[ejbc] at weblogic.ejbc20.runBody(ejbc20.java:519)
[ejbc] at weblogic.utils.compiler.Tool.run(Tool.java:146)
[ejbc] at weblogic.utils.compiler.Tool.run(Tool.java:103)
[ejbc] at weblogic.ejbc.main(ejbc.java:29)

[ejbc] ERROR: Error from ejbc: Compiler class: 'com.sun.tools.javac.Main',
not found


[ejbc] ERROR: ejbc couldn't invoke compiler


BUILD FAILED
file:M:/Mahesh.Rathi/Search/build_1.xml:101: Excep
tion while calling weblogic.ejbc. Details: Ejbc reported an error


Appreciate, if anybody can provide me some pointers. Please let me know if I have missed anything.

regards,
Mahesh
 
Have you the env variables set up like so :

JAVA_HOME=/usr/java/sdk
CLASSPATH=$JAVA_HOME/jre/lib:$JAVA_HOME/lib
PATH=$JAVA_HOME/bin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top