Compilation Errors related to Packages

Hi All,
I am a newbie in Java and had following query:
I am getting compilation issues while compiling following code
import java.util.Scanner;
import java.io.PrintStream;
public class Test
   public static void main (String args[])
      Scanner input = new Scanner( System.in );
      int Sum1, Sum2, Sum;
      System.out.println("Enter the first no: ");
      Sum1         = input.nextInt();
      System.out.println("Enter the second no: ");
      Sum2         = input.nextInt();
      Sum          = Sum1 + Sum2;
      System.out.printf( "Sum is %d\n:", Sum);
}Test.java:1: cannot resolve symbol
symbol : class Scanner
location: package util
import java.util.Scanner;
^
Test.java:10: cannot resolve symbol
symbol : class Scanner
location: class Test
Scanner input = new Scanner( System.in );
^
Test.java:10: cannot resolve symbol
symbol : class Scanner
location: class Test
Scanner input = new Scanner( System.in );
^
Test.java:23: cannot resolve symbol
symbol : method printf (java.lang.String,int)
location: class java.io.PrintStream
System.out.printf( "Sum is %d\n:", Sum);
^
4 errors
I have set my Enviromental Variable
1 > 'Path' to include : C:\j2sdk1.4.2_18\bin
2 > 'ClassPath' to include: .;C:\Program Files\Java\jre1.6.0_07\lib\ext\QTJava.zip
I am not sure as to why both the variables are different!!! Maybe something wrong happened while installing the latest version. And this might be the reason I am having issues while compiling program by including some of the packages.
My query is: What should be both the variables be set to? And do I need to uninstall the 1.4 version?
Regards,
java_learner

narayan_gop_mah wrote:
what do u mean by THIRD PARTY "EJP"?
I 'm helping right nowWell I'll say it.
narayan_gop_mah your site is rubbish. Please don't spam it any more.
That was the saddest comment follow-up I've seen in some time. You might want to make an effort to learn what the classpath is because it's not the same thing as your path, as you obviously don't know.
Actually I gotta be honest with you here, I made the mistake at looking at a few more entries. This is one of the worst hobby sites I have seen. A few posts are just totally incoherent and then you have tips like
The toString() method is one of the feature of java. It is the method of class String which is imported default on JVM from java.util.StringBrutal. If you want to make notes for yourself fine. If you want to do that on a blog, fine. But please don't ever think that you have some content there that's worth anyone else ever reading.

Similar Messages

  • Compile error at call Package with type parameter

    Hello!
    I have a problem.
    I have a package PKG_ARRAY_PARAMETER. This package has a procedure with an array parameter.
    PACKAGE PKG_ARRAY_PARAMETER IS
    -- Define Record and Record-Table (array)
    TYPE my_rec is record
    ( v_column1 VARCHAR2(5));
    --Array from my_rec
    TYPE my_rec_table is table of my_rec
    INDEX BY BINARY_INTEGER;
    v_rectable my_rec_table;
    PROCEDURE my_array_proc(p_array my_rec_table);
    END;
    PACKAGE BODY PKG_ARRAY_PARAMETER AS
    PROCEDURE my_array_proc (p_array my_rec_table)IS
    v_index BINARY_INTEGER;
    v_count number;
    BEGIN
    v_count := 1;
    END;
    END;
    The package compiled without errors.
    The problem ist the call of the package procedure.
    DECLARE
         -- Define Record and Record-Table (array)
    TYPE my_rec is record
    ( v_column1 VARCHAR2(5));
    --Array from my_rec
    TYPE my_rec_table is table of my_rec
    INDEX BY BINARY_INTEGER;
    v_rectable my_rec_table;
    BEGIN
         v_rectable(1).v_column1:='aaa';
         PKG_ARRAY_PARAMETER.my_array_proc(v_rectable);
    --null;     
    END;
    I get the error "Error 306.... wrong number or types of arguments in call to 'MY_ARRAY_PROC'"
    Can anybody help me. I have no idea wh I get this error.
    Thanks

    As you have discovered, even if the definitions are identical Oracle treats them as different objects. I recommend "Oracle PL/SQL Programming" by Steven Feuerstein which has a couple of chapters on collections and specifically warns against this.
    I have that section bookmarked as I can never remember how to manipulate collections.

  • Compiling problem related to library conflict

    Hi everybody,
    As I used JDeveloper 10.1.3.0.3 to compile my program, I encounted a compiling problem.
    In my user library, I have a class named Number.
    In J2SE 1.5, there is also a class named Number at java.lang.Number.
    So as I compiled the program, the compiler always tried to find the java.lang.Number first, then I got the compiling errors related to the class java.lang.Number.
    I have added the jar file of my own package in the classpath, but I still got the compiling error.
    But If I directly use JDK instead of JDeveloper to compiler the program, there is no such kind of problem.
    Can somebody help me with that.
    I really apprecaite your help.
    William

    Looks like I've been dumbed down by Java simpliciy. I'm referencing some source code that calls a function from this particular library. When I am compiling my code that makes the same call, I assume I need that library to be called out for the linker (link.exe). Do I also need any other libraries that this library calls and so on? How do I determine that the extent of what I need. The source code I'm referncing does include a make file. This was to create and exe file. Is it possible that I can edit this and have it make a dll instead?

  • JAXWS Webservice from WSDL - Compilation errors in schemas

    Hello,
    I am creating a webservice (Java EE1.5 JAX-WS ) from wsdl .
    When I build the artifacts in JDeveloper, I get few compilation errors related to schemas.
    Error(5412,31): com.service.gsrl.FingEvntType.FINGEVNTENTR.ROLEPLYR is already defined in com.service.gsrl.FingEvntType.FINGEVNTENTR
    •     GSRL_Vers7_Rls21.xsd and DALGSRLService.wsdl both define a ROLE_PLYR and FINGEVNTENTR element.
    There could be a conflict when mapping this to Java class names.
    Not sure if there is a way around in JAX-WS and if this is a bug.
    Any one faced this ort of issue? How to resolve this??
    Appreciate your help.
    Thanks,
    Ram

    There are few problems with your WSDL
    1. targetNamespace in schema section is missing trailing '/', it should be 'http://10.25.98.19:8080/dart/'
    2. in portType section 'fault' element is missing 'wsdl:' prefix, it should be '<wsdl:fault>'
    3. in binding section type is wrong, it should be 'tns:DartServicesImpl'
    4. Also fault element is wrongly defined in binding section it should be
    <wsdl:fault name="DARTException">
    <soap:fault name="DARTException" use="literal"/>
    </wsdl:fault>
    Hope this helps.

  • Compiling error - trying to build fbsplash

    hey all. Trying to compile fbsplash, and keep getting this error;
    make --silent all-recursive
    Making all in libs
    Making all in src
    CREATE fbsplash.h
    Making all in .
    daemon_cmd.c: In function 'cmd_log':
    daemon_cmd.c:346: warning: incompatible implicit declaration of built-in function 'strndup'
    daemon_cmd.c:348: warning: incompatible implicit declaration of built-in function 'strndup'
    /usr/bin/ld: cannot find -lfreetype
    collect2: ld returned 1 exit status
    make[4]: *** [fbsplashctl] Error 1
    make[3]: *** [all-recursive] Error 1
    make[2]: *** [all] Error 2
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2
    ==> ERROR: Build Failed.
    Aborting...
    I have the libfreetype, as shown here:
    ls -l /usr/lib/libfree*
    -rwxr-xr-x 1 root root 259150 2008-07-06 16:34 /usr/lib/libfreebl3.so
    lrwxrwxrwx 1 root root 30 2008-07-07 23:52 /usr/lib/libfreetype.so -> /usr/lib/libfreetype.so.6.3.18
    lrwxrwxrwx 1 root root 30 2008-07-07 23:52 /usr/lib/libfreetype.so.6 -> /usr/lib/libfreetype.so.6.3.18
    -rwxr-xr-x 1 root root 595471 2008-07-07 23:53 /usr/lib/libfreetype.so.6.3.18
    any help appreciated. I know its out of date and everything, but this seems to be a compiler error, not a package thing? or i'm just wrong. Don't just suggest splashy either, thats not what i want - i'm trying to get a background on my terminal. Sorry for the grumpy tone, but i've been battling with this and trawling the web for about 5 hours now, and its 1am...

    it compiled, but i get the same kernel panic when i use this on the end of my boot line:
    splash=verbose,theme:darch console=tty1
    And the error is:
    kinit: nuking initramfs contents, directory not empty
    Kernel Panic - not syncing: attempted to kill init
    Also, just trying to run "/etc/rc.d/fbsplash start" gives me "line 6: splash_check not found"
    again, any help appreciated.

  • Compilation error : package "coins" does not exist

    Hi
    I am new to Jva, though not new to programming.
    I want to run a program I downloaded from internet But I cant since I got the following error
    SimpleMain.java20 package coins does not exist.
    import coins.HirRoot;
                  ^(it points class HirRoot)
    My GUESS is that I have to tell the compiler that I have my HirRoot class file somewhere. But I don't know how.
    This is what I did:
    I am at directory:
    downloads/COINS/coinsBKP/examples/ And I want to compile SimpleMain.java inside of it
    I have my classes (.class files) at directory:
    downloads/COINS/coinsBKP/classes/coins/and Its source files (.java files) at directory:
    donwloald/COINS/coinsBKP/src/coins/I input :
    javac -d ../classes/coins/ SimpleMain.javaAnd I got many many errors.
    What can I do?
    btw I have tried also
    javac -d ../classes/ SimpleMain.java
    javac -d ./classes/ SimpleMain.javaand didn't work
    Please help me, Any help will be greatly appreciated.

    Thanks for your answer.
    But I still could not compile it ...
    I did this...enriquez-guillermos-macbook:examples nacho$ javac -Xlint:unchecked -d ../classes/ -cp ../classes/ SimpleMain.java
    SimpleMain.java:188: cannot find symbol
    symbol  : method setOptionalParam()
    location: interface coins.sym.Subp
          lPrintf.setOptionalParam();
                 ^
    SimpleMain.java:911: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List
          lList.add(hir.intConstNode(0));
                   ^
    SimpleMain.java:914: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List
          lList.add(lExpRepeat);
                   ^
    1 error
    2 warnings
    enriquez-guillermos-macbook:examples nacho$ As you suggested, I checked setOptionalParam() method. and it wasn't in Subp.java but it was found it in SubpImpl,java.
    So How can I do this?
    In C something like this might solutionate this problem...
    #import "SubpImpl.java" but in java?
    Also, I've noticed that SubpImpl is a Subclass of Subp so, importing or including a subclass "header" in the mother class file does not make sense Does it?
    Is this a program problem or is the way I am compiling it?

  • Related to error handling and Packages

    I was asked the following question for an interview
    Suppose u have an application that makes use of many user-defined packages. How can u trace a specific (application) error to a particular Package?
    Please share ur views.
    Thanks in advance..

    Pls check the following script --
    SQL>
    SQL> create or replace package uu_test
      2  is
      3  begin
      4    test
      5  end;
      6  /
    Warning: Package created with compilation errors.
    SQL>
    SQL> select * from user_errors
      2  where type = 'PACKAGE';
    NAME                           TYPE           SEQUENCE       LINE   POSITION
    TEXT
    UU_TEST                        PACKAGE               1          3          1
    PLS-00103: Encountered the symbol "BEGIN" when expecting one of the following:
       end function package pragma private procedure subtype type
       use <an identifier> <a double-quoted delimited-identifier>
       form current cursorHope this will fullfill your requirement.
    Regards.
    Satyaki De.

  • Play Framework - Compilation error[object inject is not a member of package javax]

    I would like to add to the table "Person" when you press the button "Add a Person" but I get an error:
    play.PlayExceptions$CompilationException: Compilation error[object inject is not a member of package javax]
    at play.PlayExceptions$CompilationException$.apply(PlayExceptions.scala:27) ~[na:na]
    at play.PlayExceptions$CompilationException$.apply(PlayExceptions.scala:27) ~[na:na]
    at scala.Option.map(Option.scala:145) ~[scala-library-2.11.1.jar:na]
    controller is in the class Application:
    package controllers
    import play.api._
    import play.api.mvc._
    import play.api.data.Form
    import play.api.data.Forms._
    import play.api.libs.json.Json
    import models._
    import javax.inject._
    class Application @Inject() (db: DB) extends Controller {
      def index = Action {
       Ok(views.html.index())
      val personForm: Form[Person] = Form {
       mapping(
       "name" -> text
       )(Person.apply)(Person.unapply)
      def addPerson = Action { implicit request =>
       val person = personForm.bindFromRequest.get
      db.save(person)
      Redirect(routes.Application.index)
    I do not know how to add a library javax.inject-1.jar ?
    Is there another solution . Thank for you help in this matter.

    If this is still an outstanding issue, and you have a valid CSI, a BDB support license, please access MOS (MyOracle Support) and review Note 1198943.1: "Building BDB XML 2.5.16 with STLPort on Solaris using Sun Studio". If you cannot access MOS, drop me an e-mail at andrei dot costache at the obvious domain, and I will send the details.
    Regards,
    Andrei

  • First package - created with compilation errors

    I'm working my way through Learning Oracle PL/SQL, the O'Reilly book, the 2002 edition, page 92. These procedures work fine stand-alone but when one calls the other, when mxb_add_books calls mxb_add_book_copy, in a package I get compilation errors:
    Create or replace package mxb_book
    As
    procedure mxb_add_book_copy (isbn_in in varchar2, barcode_ID_in in varchar2);
    procedure mxb_add_books (isbn_in in varchar2, barcode_ID_in in varchar2, title_in in varchar2,
    author_in in varchar2, page_count_in in number, summary_in in varchar2 default null, date_published_in in date default null);
    end mxb_book;
    create or replace package body mxb_book
    as
    /* private procedure for use only in this package body */
    Procedure assert_notnull (tested_variable in varchar2)
    Is begin
    If tested_variable is null
    Then
    Raise value_error;
    End if;
    End assert_notnull;
    procedure mxb_add_book_copy (isbn_in in varchar2, barcode_ID_in in varchar2)
    is
    begin
    assert_notnull(isbn_in);
    assert_notnull(barcode_id_in);
    insert into MXB_book_copies_TEMP(isbn,barcode_id)
    values (isbn_in, barcode_id_in);
    exception
    when dup_val_on_index
    then
    null;
    end mxb_add_book_copy;
    End;
    procedure mxb_add_books (isbn_in in varchar2, barcode_ID_in in varchar2, title_in in varchar2,
    author_in in varchar2, page_count_in in number, summary_in in varchar2 default null, date_published_in in date default null)
    as
    begin
    /* check for reasonable inputs */
    if isbn_in is null then
    raise value_error;
    end if;
    /* put a record in the "books" table */
    insert into MXB_books_TEMP(isbn, title, summary, author, date_published, page_count)
    values (isbn_in,title_in, summary_in, author_in, date_published_in, page_count_in);
    /* if supplied, put a record in the "book_copies" table */
    if barcode_id_in is not null
    then
    mxb_add_book_copy (isbn_in, barcode_ID_in)
    end if;
    end mxb_add_books;
    end mxb_book;

    welcome to the forum.
    please read this to improve your posts:
    SQL and PL/SQL FAQ
    *[edit]*
    --you're missing a ; before your last end if and <tt>END mxb_book; </tt> in the last line should be <tt>END mxb_book_body;</tt>.--
    There is an additional <tt>end;</tt> after <tt> END mxb_add_book_copy;</tt> and the missing ; before your last end if .
    bye
    TPD
    Edited by: T.PD on 14.12.2011 18:13

  • Using package getting compiler error

    I have a project at c:\myproject
    I have a file name as b.java in c:\myproject
    I have a sub-directory named as com\sski\ in c:\myproject
    In that subdirectory there is a file a.java (package of a.java is com.sski) which is using class b.
    I have compiled b.java successfully, But I am unable to compile a.java
    I am getting compiler error cannot resolve symbol
    Sourece of a.java is as follow package com.sski;
    //import b;
    public class  a
         public static void main(String[] args)
              b obj = new b();
              System.out.println("Inside a.java: " +obj);
    }i have even tried using import b;
    then i get error as '.' expected
    how do i successfully compile a.java, where do i place b.java.
    i dont want to put b.java inside any package.

    b.class is not being found in your classpath. If you are compiling in C:\myproject, b.class should end up in C:\myproject, since you are not putting it in a package (which, IMO, is a bad idea). This assumes that you are not using the -d <destination> command line option in the javac command line.
    To compile a.java, you need to use the -classpath command line option, as follows:
    javac -classpath C:\myproject a.java
    or
    javac -classpath . a.java (note the dot).
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Package's name  compilation error

    This compilation of the code fails :
    package JARUPRUE;
    public class JARUPRUE {
        public void getKey() {
               JARUPRUE jr = new JARUPRUE.JARUPRUE();
    JARUPRUE/JARUPRUE.java:6: cannot find symbol
    symbol  : class JARUPRUE
    location: class JARUPRUE.JARUPRUE
            JARUPRUE jr = new JARUPRUE.JARUPRUE();This code compiles OK changing the package name, if the new name is not the same as the class name !!!
    This is a real problem for us because the new IBM sqlj precompiler generates code like this. Really, our programs package structure has the same name (class and package) and the code generated by the precompiler causes this. We have hundred of programs with the same package and class name.
    Is this a bug? How could we address this issue?

    Thanks for your response.
    I can't see it, you do?. No, but I'm not looking really.I was talking about the sqlj's command output, where I can't see an option to fix the problem.
    >
    Maybe it's something about your source code?
    In any case I find it impossible to believe that a language rule that was always present and started being correctly enforced in 1997 is unknown to IBM's authors of their SQLJ preprocessor.Every single .sqlj source file, when precompiled, generates this java code (at the end of the source file):
    class JARUPRU5_SJProfileKeys                                                                                                          
      private java.lang.Object[] keys;                                                                                                                                                
      private final sqlj.runtime.profile.Loader loader = sqlj.runtime.RuntimeContext.getRuntime().getLoaderForClass(getClass());                                                      
      private static JARUPRU5_SJProfileKeys inst = null;                                                                                                                              
      public static java.lang.Object getKey(int keyNum)                                                                                                                               
        throws java.sql.SQLException                                                                                                                                                  
        synchronized(JARUPRU5.JARUPRU5_SJProfileKeys.class) {                                                                                                                                  
          if (inst == null)                                                                                                                                                           
            inst = new JARUPRU5_SJProfileKeys();                                                                                                                                      
        return inst.keys[keyNum];                                                                                                                                                     
      private JARUPRU5_SJProfileKeys()                                                                                                                                                
        throws java.sql.SQLException                                                                                                                                                  
        keys = new java.lang.Object[1];                                                                                                                                               
        keys[0] = JARUPRU5_DBHOS_HCTX.getProfileKey(loader, "JARUPRU5.JARUPRU5_SJProfile0");                                                                                          
    } ... as you can see the code "synchronized(JARUPRU5.JARUPRU5_SJProfileKeys.class)" is the code that fails and its generated automatically and we cannot handle it. DB2 9.5 builds this code, while previous versions don't. I think that nobody in the world uses SQLJ (really a thing of the past) and at the same time nobody use packages as classnames.
    We have modified our build scripts to remove the package name from that line (before calling javac) and thus, continue with the migration of our applications.
    Thanks for your ideas.

  • Compiler Error Message: CS0433

    Compiler Error Message: CS0433: The type 'CrystalDecisions.Web.CrystalReportPartsViewer' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Web\11.5.3700.0__692fbea5521e1304\CrystalDecisions.Web.dll' and 'c:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Web\10.2.3600.0__692fbea5521e1304\CrystalDecisions.Web.dll'
    Support Information:
    Windows Server 2003
    Crystal 9,10 and 11 support required based on reports and web configuration.
    This error relates to the following configuration:
    Visual Studio 2005
    Crystal .Net that comes with VS2005 SP2 (10.2.3600.0)
    Web application deployment.
    I am told that some Web.Config settings would fix this, but no one has been to specific.
    Thanks
    -Jonathan

    Been over those files many times today actually. Thanks for the suggestion though. Apparently this type of issue is a known issue when you have multiple DLL's in the assembly cache with regards to how Crystal is laid out.
    My Web.Config has no refference to either assembly, the project reference only refferences 10.2.3600.0 DLL's, Specific Version is set to true on all of them. The only way around this problem from what I have read is to use some sort of Web.Config adjustment, and the only article that even slightly goes into this is:
    http://blogs.gotdotnet.com/richarde/archive/2005/09/02/468187.aspx
    As you can see by that article, Microsoft is not only aware of this problem, but have had to do work arounds in the Web.Config themself to get around it. The problem is, I do not know the xmlns to use for Crystal, the depenentAssembly information, or even the assemblyIdentity to use in this case.
    What I need is the <runtime> variables for atleast version 10.2.3600.0 and 11.5.3700.0 along with 11.5.3300.0, some of my reports are directly created inside of VS 2005 C# .Net and need to be displayed in a web project, others are created in VS 2003 and used in an application layer and those are fine, but finally, I have Crystal XI R2 reports (several people creating these) which are displayed on a web page via <assemblies> tags within those sub project websites.
    The sticker at the moment is the VS2005 C# projects. I would LOVE to just shove a package at VS 2005 to force it to upgrade from 10.2.3600.0 to 11.5.3700.0, then it wouldn't matter as much, but Microsoft won't support me, they consider this a Business Objects issue. What I am looking for is the Web.Config <runtime> setttings.
    <runtime>
       <assemblyBinding xmlns="????">
            <dependentAssembly>
                 <assemblyIdentity name="???" publicKeyToken="???" />
                 <bindingRedirect oldVersion="??" newVersion="??" />
            </dependentAssembly>
       </assemblyBinding>
    </runtime>
    One for me to get past this issue.. Or some sort of upgrade to VS 2005 to bring it up to Crystal XI R2 package level, or some direction there of.

  • JSP compiler Error

    Hi,
    we are running a EP 7.0 on SP 13. I have copied the standard theme, and now I am trying to  customize it. But if I click on the "Navigation Panel" Link I get the following:
    Portal Runtime Error
    An exception occurred while processing your request
    Exception id: 03:54_15/11/07_0013_926913750
    See the details for the exception ID in the log file.
    No I had a look in j2ee/cluster/server/0/log/systeme/server.log:
    Version: 1.5
    Guid: 00144F2A247C006A0000002900002CB300043EF89D0DF800
    Time: 2007 11 15 15:36:54:592
    SourceName: /System/Server
    Application: sap.com/irj
    Location: com.sap.portal.prt.runtime.servlet_jsp
    User: Administrator
    Session: 337
    Transaction:
    DSRComponent: P01AS1_P01_926913750
    DSRUser: Administrator
    DSRTransaction: 18ac4290938811dcb5f300144f2a247c
    ThreadName: SAPEngine_Application_Thread[impl:3]_14
    GroupId:
    GroupLevel: 0
    GroupIndent: 0
    Severity: Error
    Relatives: /System/Server
    MsgType: Plain
    MsgCode:
    ResourceBundle:
    Text: >>> JSPCompiler >>> ERROR in Compiling :JSPFileInfo :1525783928
    JSP File : /NWDI/P01/usr_sap/P01/JC92/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/com.sap.portal.ur.preview/jsp/previews/prtl/tln.jsp
    Class Name: sapportalsjsptln
    Java File : /NWDI/P01/usr_sap/P01/JC92/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/com.sap.portal.ur.preview/work/jsp/previews/prtl/_sapportalsjsp_tln.java
    Package Name : jsp.previews.prtl
    Class File : /NWDI/P01/usr_sap/P01/JC92/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/com.sap.portal.ur.preview/work/jsp/previews/prtl/_sapportalsjsp_tln.class
    Is out dated : false [email protected]e35d7
    My problem is that I can not find the reason for this. OK I have an error with the JSP Compiler, but where can I find what error I have?

    Hi!
    I found the reason in another trace file. The problem was no less memory.
    After we fixed this problem. Everything worked again.
    Best,
    Stephan

  • Internal Compiler Error

    I am getting the dreaded "Internal Compiler Error" message when trying to build a particular jpr. I have figured out the class ultimately causing the problem. When I remove the class, the jpr compiles fine. When I compile the file by itself, it compiles fine. I haven't been able to narrow down the error to a particular block of code. I can probably work privately with someone to track this down, but I don't think I'll be at liberty to submit the full class file (government and all that jazz). Also, Oracle's site won't let me change my e-mail address on my profile. I'll monitor this thread, but for quicker responses, please cc me at: [email protected] Thank you.

    Hi,
    Thanks for taking the time to report this.
    OJC allowing final static members in an inner class is a known bug (3461673).
    However, the bug does not specifically indicate that this causes an internal error when compiling a project containing a class with such code. In fact, several usages of static member variables have crept into JDeveloper's own code because of this compiler bug, and we have not seen this cause an internal error. This leads me to believe that the problem you're seeing is related to bug 3461673, but that the final static member is not the only issue.
    Just to isolate the test case: Can you reproduce this with a simple project? In the project, create a single java file containing a class and an inner class with a static final member. I used the following code and could not reproduce the problem:
    package mypackage1;
    public class SimpleTest
      private class InnerClass
        private static final int _innerStaticFinal = 5;
    }Thanks,
    Brian

  • Please help suggestions for solving built-only compiler error: 'The VI is not executable. The full development version of LabView is required tofix this error.'

    We have develoepd a software tool and build it on regular basis. It currently runs error free when compiled in the editor, but when we built it and run the executable stand alone we get the error.
    'The VI is not executable. The full development version of LabView is required tofix this error.' plus a broeken error.
    This menas an compiler error that is not present in the editor but in the stand alone version. We tried to identify errors as suggested in several posts in this forum, but so far unsuccesfull.
    As the editor and its compiler do not see the error  and are running fine and the stand alone version just syas 'find the error in the editor' in this case LabView is of no help.
    Can anyone suggest a sensible or 'good practice ' way of searching for the source of this error?
    Our project  comprises hundreds of Vis over several libraries.
    Thanks,
    Chris

    Thanks Craig for all your suggestions.
    We seem to have located the problem in a new vi just added to the package causing conflicts by using the same vi names as other vis already present in the package. Excluding this vi removed the error.
    It seems related to a conflict by having two vis with the same name, which was mentioned by LabView and interactively resolved when running the main vi from the editor. When successfully building the main vi the builder did not mention this conflict and reported a successful build, but when trying to run the executable it gave the cryptic error. The error caused us problems because there was no hint for the cause, just the suggestion to solve this in the editor, while at the same time in the editor the VI was running fine.
    We will post about this in detail after we have positively proven that this actually was the case.
    The .net version issue was already checked.
    Performance was the same on all machines we tested on including the dev machine.
    Debugging was tried nut did not help as the vi could not run (broken arrow). We assumed that debugging only helps in running faulty functioning vi''s. We did not check for broken arrows in sub-vis (after connecting), that could have helped, although our application has hundreds of our own vis.
    In relation to your remark: 
    'Are you using many classes? Have you verified that the proper access scopes are set for functions calling those vis?'
    Could you elaborate on setting access scopes. We were not aware of this option in LabView, although we realize this is a basic element of the underlying c code.
    Ragrds,
    Chris

Maybe you are looking for

  • Provident Fund Calculation Indian Payroll

    Hi Gurus, Could any one can explain how PF is calculated in Sap or please correct me if i am wrong. Suppose my Basic is 25000/- per month EE Contribution 12% i,e.: 3000/- ER Contribution 8.33% towards pension plan: 2082.5/- ER PF Contribution 3.67%:

  • PO with double freight

    Hi all, this is the problem. The customer created a PO with two lines of freight condition in the header of the PO, one with no value with the vendor A and one equal to 2000 eur with the vendor B. The PO has 6 lines: two of these (with the same mater

  • How do I save a Spreadsheet generated by Reportserver as xls file

    Hi to all, I have to implement a form that is able to generate 3 or 4 or even more Excel files (depends which one the user has chosen)and I have some Problems, so I hope any one can help me here. 1. I want to start the reports sequential. I tried lik

  • Issue with Negative Value for Total valuated stock 0VALSTCKQTY.

    Hi Experts, we loaded the Cube with datasources 2LIS_03_BX, 2LIS_03_BF and 2LIS_03_UM. We mapped the quanity field from 2LIS_03_BF in transformation either into Key figures "Quantity issued from valuated stock" (0ISSVALSTCK) or "Quantity received int

  • Dynamic Date Calculation for Current Date - 1

    I am trying to create a variant with a dynamic date calculation attribute. I am following the instructions as they are posted to the web but I get an error message. I want to get all data EQ to the current date -1 In the object for selection screen I