Javac Error

when running javac i get this error
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
to me that looks like my JDK or something to that nature did not startup cause i ran javac on a file i know worked i recently have gotton a new compter and included the javac path which was C:\Program Files\Java\jdk1.5.0_05\bin in my ENV variables and i can see the javac is working well trying to work anyone got some advice?

No im trying to go outside of jdeveloper and compile the code .Do you suggest to compile within jdev?
I guess i should be in a java forum or something to that nature
Message was edited by:
vande

Similar Messages

  • [javac] Error loading: C:\bea\jdk1.6.0_24\jre\bin\client\jvm.dll

    Hi,
    I was curious about the following error:
    [javac] Error loading: C:\bea\jdk1.6.0_24\jre\bin\client\jvm.dll
    Could someone let me know why this randomly occurs?
    Thanks

    >
    Thanks. Thats all the information I have on the error... Inquiring if anyone seen this before or know what could cause this.
    >
    If all you are inquiring about is whether anyone has seen that before then the answer is yes.
    If instead you want help finding out what is causing it in your case then you have to provide information about what it is you are doing when it shows up. Does it show up everytime you cold boot your computer? Only when you check you email?
    Give us the specifics.

  • Are javac error messages documented with comprehensive explanations

    Hi all:
    Are the error messages which javac produces documented?
    Can anyone recommend a source which explains exactly what the message is trying to tell the beginner?
    Often the meaning of the message is clear. But frequently one looks at the message and wonders exactly what the compiler is trying to tell you and how to go about fixing it.
    By the way, I am using JDK 1.3.1. I did try searching the forum because I am sure this question has been asked but I couldn't phrase the query so that it gave a reasonable number of items to look at.
    Thanks all
    Bill

    One good tutorial on the meaning of the the various common javac error messages can be found here: http://mindprod.com/errormessages.html
    Roedy's stuff is usually quite accurate and reasonably up to date. You might also want to peek around the rest of his Java Glossary - it's got a lot of great info.
    Chuck

  • Running JAVAC error

    Helli Friends
    I'n installed JDK1.2 on my computer(because of the big size of the newest jdk I can't download the latest version). And my OS is Win XP SP2. Installing will be finished completely and successfully. But the problem is that when I run JAVAC to compile my written codes, I get this windows error:
    javac.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
    What is the reason and what should I do to solve this problem?
    Regards

    Sorry, but java 1.2 also misses much.
    On XP setting the folder in the Windows Explorer for a java 1.4 to compressed saved from 48MB to 33MB. Some software distributions on CD come with their own JDK.
    There seems to be in the internet a free online-compilation site, got no idea whether that would be something.

  • Javac error in tomcat 5.5.7

    I'm using tomcat 5.5.7 with the compatibility jar to JDK 1.4.1.
    I've replaced the jasper-compiler-jdt.jar under $CATALINA_HOME/commons/lib with ant.jar.
    When I try to enter a jsp page I get the following error:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    I saw in the log that the classpath seems to be truncated (see the bold lines)
    Any idea how to fix it?
    Mar 8, 2005 9:11:09 AM org.apache.jasper.compiler.AntCompiler generateClass
    SEVERE: Javac exception
    Error running javac.exe compiler
         at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:446)
         at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:43)
         at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:936)
         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
         at org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:213)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: CreateProcess: javac.exe -classpath "D:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\bootstrap.jar;D:\Program Files\Apache Software Foundation\Tomcat 5.5\work\Catalina\localhost\Aharon;D:\Program Files\Apache Software Foundation\Tomcat 5.5\shared\classes;D:\Program Files\Apache Software Foundation\Tomcat 5.5\common\classes;D:\Program Files\Apache Software Foundation\Tomcat 5.5\common\i18n\tomcat-i18n-en.jar;D:\Program Files\Apache Software Foundation\Tomcat 5.5\common\i18n\tomcat-i18n-es.jar;D:\Program Files\Apache Software Foundation\Tomcat 5.5\common\i18n\tomcat-i18n-fr.jar;D:\Program Files\Apache Software Foundation\Tomcat 5.5\common\i18n\tomcat-i18n-ja.jar;D:\Program Files\Apache Software Foundation\Tomcat 5.5\common\endorsed\xercesImpl.jar;D:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\ant.jar;D:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\commons-el.jar;D:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\jasper-compiler.jar;D:\Program Files\?
         at java.lang.Win32Process.create(Native Method)
         at java.lang.Win32Process.<init>(Unknown Source)
         at java.lang.Runtime.execInternal(Native Method)
         at java.lang.Runtime.exec(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:831)
         at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:436)
         at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:450)
         at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:443)
         ... 26 more

    Sorry to state the obvious, but did you check the release notes?
    ===================
    Dependency Changes:
    ===================
    Tomcat 5.5 is designed to run on J2SE 5.0 and later, and requires
    configuration to run on J2SE 1.4. Make sure to read the "RUNNING.txt"
    file in this directory if you are using J2SE 1.4.

  • Javac - Error Message

    Does anyone know what the following error message refers to?
    C:\>javac HelloWorld.java
    error: cannot read: HelloWorld.java
    1 error
    Thanks!

    Open a DOS window and CD to the directory where you think your source code file is. Then do a DIR command. Make sure the file exists and is named what you think. If the source code defines a class named HelloWorld, then it should be saved in a file named HelloWorld.java.
    If you use a text editor like Notepad, it may have saved the file with a .txt extention - HelloWorld.java.txt - even though you put HelloWorld.java into the SaveAs dialog. If this is your problem, a quick work around is to put quotes around the file name in Notepad's SaveAs dialog. Or, add .java as a text file name extention.
    Can't take credit...Post by atmguy

  • Javac error during compilation

    I am using j2sdk1.4.2_08 with ant and get following error on solaris 8 (I have installed J2SE Solaris 8 Recommended Patch Cluster):
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 10 occurred at PC=0xFE7A24FC
    Function=[Unknown. Nearest: ZIP_Open+0x69C]
    Library=/.../j2sdk1.4.2_08/jre/lib/sparc/libzip.so
    Current Java thread:
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:112)
    at java.util.zip.ZipFile.<init>(ZipFile.java:72)
    at com.sun.tools.javac.v8.code.ClassReader.openArchive(ClassReader.java:
    at com.sun.tools.javac.v8.code.ClassReader.list(ClassReader.java:1218)
    at com.sun.tools.javac.v8.code.ClassReader.listAll(ClassReader.java:1339)
    at com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:1361)
    at com.sun.tools.javac.v8.code.ClassReader.complete(ClassReader.java:1052)
    Has anyone else seen this error? I can post the entire error log if needed.
    Thanks,
    --dhiraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Please use code tags around your posted code, it makes it much easier to read.
    I see a couple of issues.
    First, you are calling javac from the binary directory it is in - is that also where you put your code? If your code is in java's \bin directory - that's generally bad practice.
    If java is correctly installed, you should be able to call javac from anywhere, because the java \bin directory will be in your path.
    Also, the ProtTestChild code indicates that it is in package xyz - so the file has to be in a directory named xyz, and you have to call the compiler from the directory that contains this xyz directory. So, for example, if the java file is in C:\myJavaCode\xyz, you need to be in C:\myJavaCode, and type the command "javac xyz\ProtChildTest.java".
    Try that, see if it works. I don't use the command line much anymore, so I could be wrong.

  • Javac error, compiling

    I have never compiled a class file, and have just go this error,
    dose it mean that I stuffed up in my script or javac isnt workin properly.
    ________________________________________________dos_____________
    C:/j2sdk1.4.1_03\bin>javac AVIPviewer.java
    AVIPviewer.java:1414: cannot resolve symbol
    symbol : class JSObject
    location : class AVIPviewer
    private JSObject jswin;
    ^
    Note: AVIPviewer.java uses or overrides a deprecated API.
    Note: Recompile with -deprecation for details.
    2 errors
    thanxs
    simon

    sorry the second part of the error in the middle was:
    AVIPviewer.java:147:cannot resolve symbol
    symbol : variable JSObject
    loaction: class AVIPviewer
    jswin = JSObject.hetWindow(this);

  • AMIE:javac error when trying to import devices from Zenworks

    Hi.
    Service Dek 6.5, Zenworks 11.1. I'm trying to import device information from zenworks into Service Desk using AMIE. I can connect to the Zenworks database fine in the, but when I click import I get an administrator alert: "javac is not available. Make sure you are using the JDK"
    This is reported as an informational alert rather than an error. Synchronisation in progress is reported, but when it completes nothing appears to have been imported.
    I've tried ZENworks Configuration Management v11.1 (LiveTime Software Inc.) Import and ZENworks Configuration Management v11.1 - Hardware (LiveTime Software Inc.) import.
    Can anyone advise please?
    Many Thanks
    Osh..

    Am 20.12.2011 14:06, schrieb Sector osh:
    >
    > Hi.
    >
    > Service Dek 6.5, Zenworks 11.1. I'm trying to import device information
    > from zenworks into Service Desk using AMIE. I can connect to the
    > Zenworks database fine in the, but when I click import I get an
    > administrator alert: "javac is not available. Make sure you are using
    > the JDK"
    >
    > This is reported as an informational alert rather than an error.
    > Synchronisation in progress is reported, but when it completes nothing
    > appears to have been imported.
    >
    > I've tried ZENworks Configuration Management v11.1 (LiveTime Software
    > Inc.) Import and ZENworks Configuration Management v11.1 - Hardware
    > (LiveTime Software Inc.) import.
    >
    >
    > Can anyone advise please?
    >
    > Many Thanks
    >
    > Osh..
    >
    >
    You have to install the JDK without JRE!
    (You have to deselect JRE during JDK installation, else the
    NSD-installer takes the JRE-path and not the JDK-path.)
    HTH
    Hans-Dieter

  • Javac Errors

    I installed the J2SE 5.0 JDK and I put the C:\Program Files\Java\jdk1.5.0_02\bin
    into the PATH variable and javac worked but when I tried to type a file on there called C:\Documents and Settings\Owner> javac Example1.java,a Java file I saved as text using notebook and I received this error:
    error cannot read: Example1.java
    1 error on Windows XP
    How can I fixed this?
    Thanks,
    Stephen Maize

    Do you have the file, C:\Documents and Settings\Owner\Example1.java?
    Sometimes this is caused from Notepad appending .txt to the end of your file name when you save the file in Notepad. If you use the dir command from the C:\Documents and Settings\Owner directory, you should see Example1.java, not Example1.java.txt. You can not rely on seeing the .txt from a Windows folder view (unless you have the right folder options).
    You can put "" around the file name when you save it in Notepad to keep Notepad from putting .txt at the end.

  • Javac error: Can't read my .java-file

    Hi,
    sorry for my stupid question, but I have problems compiling my java code.
    Before, I used NetBeans to compile the code and I had no problems with it. Now I have to use the javac command (with the same *.java-files) and it does not work.
    It's running on Linux. In my current working directory, I have the file
    image/transfer/smallserver/RequestProcessor.java
    So I type
    javac image.transfer.smallserver.RequestProcessor.java but I get this error:
    error: can't read: image.transfer.smallserver.RequestProcessor.javaPlease, can anyone tell me, what's wrong with this?
    Thank you for your help
    Susanne

    I set all possible classpathes. It makes no difference.
    If I try it a different way, I get other errors concerning the files I want to import. These files are located in image/transfer/client.
    I tried to use smallserver as working directory, simply with the command
    javac RequestProcessor.javaI get
    Class image.transfer.client.ImageObject not found in importI tried it with the same working directory as before with "/" instead of "." in the path name. I get
    error: Invalid class file format: ./image/transfer/client/ImageObject.class, wrong version: 46, expected 45and addionally the message from above (ImageObject not found)

  • Javac error with classpath, but java works

    after setting class path, for example, i build a hello.java under c:\dev and i put it in the classpath,
    i goto c:\dev\ and typed javac hello.java, then i got hello.class, then i goto d:\
    and type java hello, it prints the string correctly, but if i type javac hello.java under d:\, it gave error: cannot read hello.java, but in the classpath, c:\dev is correctly set and commond java can run the hello.class from d:\, so why canot javac do the same.
    does that mean i have to go to the directory where the .java file is in to compile?

    It's true, class path only helps javac find other classes to include with your class. You must either compile in the source path, specify the source path in the file name or best choice, use ANT.

  • Javac "error: cannot read ..." windows 2000

    I have installed jdk1.4.1 on my ibm with windows 2000. Whenever I try to compile a program, I get the message "error: cannot read: filename.java 1 error" Please let me know where I am making a mistake. Thank you.

    No, you place the "" around the name when you save it. This prevents the .txt from being added to the name. This won't allow it to be compiled. I "solved" the problem another way by saving it with All Files and I type in filename.java. This works fine, but I do wonder why the .txt is added on my Windows 2000 machine, but not my Windows XP machine.

  • How do I see javac compiler errors during JSP precompile?

              I played with all the options that "weblogic.jspc"
              supports. I couldn't get the javac compiler errors to
              show up when there is a problem with the generated
              Java file.
              Interestingly the same JSP when compiled automatically
              by the weblogic server, the javac errors show up in
              the output.
              Any tricks? or ideas?
              thanks
              

              In WL 5.1, earlier service packs would sometimes not show the errors. Get sp6 or later.
              mike
              "Mahesh Vellanki" <[email protected]> wrote:
              >
              >
              >I played with all the options that "weblogic.jspc"
              >supports. I couldn't get the javac compiler errors to
              >show up when there is a problem with the generated
              >Java file.
              >
              >Interestingly the same JSP when compiled automatically
              >by the weblogic server, the javac errors show up in
              >the output.
              >
              >Any tricks? or ideas?
              >
              >thanks
              >
              

  • Error while building sample application "Developing an Order Application"

    hi ,
    I tried to create a simple Mobile application using the instructions for "Tutorial: Developing an Order Application for Handhelds" given at :-
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/46/7294498d870ad3e10000000a11466f/frameset.htm
    For the same , by using TCdoe SDOE_WB i created a new SWCV named ORDER_TAKER,
    with a Data Object - > ORDER
    added Data Object header node -> ORDERHEADER
    The ORDERHEADER contains the following fields:
    ORDERID          CHAR8
    CUSTID             CHAR4
    LONGTEXT       CHAR32
    SERVICEUNIT   CHAR32
    CREATED_ON  DATS
    CREATED_AT  TIMS
    As per the tutorial I created  Mobile Service Component as "order_sv". under which created Data Objects , and a service name orderService . Now when I copied the code of Defining the Custom Methods , I am getting following error while building the MSC........
    Line: -----
    * [javac] Compiling 8 source files to C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\classes
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:43: cannot find symbol
         [javac] ERROR: symbol  : class Order_svModel
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:           if( !(((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).getOrderOrderheaders().size() > 0))
         [javac] ERROR:                   ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:43: cannot find symbol
         [javac] ERROR: symbol  : class Order_svModel
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:           if( !(((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).getOrderOrderheaders().size() > 0))
         [javac] ERROR:                                                                ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:43: cannot find symbol
         [javac] ERROR: symbol  : variable OcaRoot
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:           if( !(((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).getOrderOrderheaders().size() > 0))
         [javac] ERROR:                                 ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:45: cannot find symbol
         [javac] ERROR: symbol  : class OrderOrderheader
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               OrderOrderheader order = ((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).createOrderOrderheader();
         [javac] ERROR:               ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:45: cannot find symbol
         [javac] ERROR: symbol  : class Order_svModel
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               OrderOrderheader order = ((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).createOrderOrderheader();
         [javac] ERROR:                                          ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:45: cannot find symbol
         [javac] ERROR: symbol  : class Order_svModel
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               OrderOrderheader order = ((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).createOrderOrderheader();
         [javac] ERROR:                                                                                ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:45: cannot find symbol
         [javac] ERROR: symbol  : variable OcaRoot
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               OrderOrderheader order = ((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).createOrderOrderheader();
         [javac] ERROR:                                                        ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:49: cannot find symbol
         [javac] ERROR: symbol  : method valueOf(java.lang.String)
         [javac] ERROR: location: class java.util.Date
         [javac] ERROR:               order.setCreatedOn(Date.valueOf("2007-06-30"));
         [javac] ERROR:                                      ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:50: cannot find symbol
         [javac] ERROR: symbol  : variable Time
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               order.setCreatedAt(Time.valueOf("08:45:00"));
         [javac] ERROR:                                  ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:73: cannot find symbol
         [javac] ERROR: symbol  : class Order_svModel
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               order = ((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).createOrderOrderheader();
         [javac] ERROR:                         ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:73: cannot find symbol
         [javac] ERROR: symbol  : class Order_svModel
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               order = ((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).createOrderOrderheader();
         [javac] ERROR:                                                                      ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:73: cannot find symbol
         [javac] ERROR: symbol  : variable OcaRoot
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               order = ((Order_svModel)OcaRoot.getInstance().getModel(Order_svModel.class)).createOrderOrderheader();
         [javac] ERROR:                                       ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:77: cannot find symbol
         [javac] ERROR: symbol  : method valueOf(java.lang.String)
         [javac] ERROR: location: class java.util.Date
         [javac] ERROR:               order.setCreatedOn(Date.valueOf("2007-07-05"));
         [javac] ERROR:                                      ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:78: cannot find symbol
         [javac] ERROR: symbol  : variable Time
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               order.setCreatedAt(Time.valueOf("10:00:00"));
         [javac] ERROR:                                  ^
         [javac] ERROR: C:\workspace.jdi\LocalDevelopment\t\13A34929B4F509E8F4914E0DFB74D38E\gen_oca\com\sap\demo\order_sv\service\impl\OrderService.java:80: cannot find symbol
         [javac] ERROR: symbol  : variable OcaRoot
         [javac] ERROR: location: class com.sap.demo.order_sv.service.impl.OrderService
         [javac] ERROR:               OcaRoot.getInstance().commit();
         [javac] ERROR:               ^
         [javac] 30 errors *
    Line: -----
    Please help...........
    Ekam
    Edited by: Ekam Preet Singh on Sep 29, 2011 10:32 AM

    Hi,
    Please have a look at this thread,
    Re: Error in CompatibilityMode
    Regards,
    Saravanan K

Maybe you are looking for