How to specify java compiler options in JDeveloper ?

I am using JDeveloper 10.1.2. I downloaded and installed JDK 5.0.
In my "Project Properties"->"Libraries" I created a new "JDK 5.0" J2SE Version and pointed to the new JDK5.0 execuitable. So far so good.
Now I need to compile all my source code with -source=1.4 option. How do I specify java compiler option "-source=1.4" in JDeveloper ?
Thanks
Sachin

Even before compilig I am not sure that by just going to "Project Properties"->Libraries and creating a new J2SE, I now have the new compiler working with JDEveloper. How do I test this ?

Similar Messages

  • How to know java Compiler version?

    Hi all,
    could I know how to get the compiler version of java?
    javac -source 1.x says if compiler has support to the specified version or not, but I want a command to get the compiler version, like it should say 1.4 or 1.5 as it says after executing java -version.
    Thanx
    Reddy

    Maybe because it does not work with 1.4
    $ javac -version
    javac: invalid flag: -version
    Usage: javac <options> <source files>
    where possible options include:
      -g                        Generate all debugging info
      -g:none                   Generate no debugging info
      -g:{lines,vars,source}    Generate only some debugging info
      -nowarn                   Generate no warnings
      -verbose                  Output messages about what the compiler is doing
      -deprecation              Output source locations where deprecated APIs are used
      -classpath <path>         Specify where to find user class files
      -sourcepath <path>        Specify where to find input source files
      -bootclasspath <path>     Override location of bootstrap class files
      -extdirs <dirs>           Override location of installed extensions
      -d <directory>            Specify where to place generated class files
      -encoding <encoding>      Specify character encoding used by source files
      -source <release>         Provide source compatibility with specified release
      -target <release>         Generate class files for specific VM version
      -help                     Print a synopsis of standard options

  • Java compiler options with JSP

              Is there any way to specify compiler options to use with the JSP compiler through weblogic.properties? I'd like to get the JSPs compiled with the -g option. Thanks.
              Mike
              

              How about add
              J=-g
              to "weblogic.httpd.initArgs.*.jsp"?
              Jong
              "Michael Gilbode" <[email protected]> wrote:
              >
              >Is there any way to specify compiler options to use with the JSP compiler through weblogic.properties? I'd like to get the JSPs compiled with the -g option. Thanks.
              >
              >Mike
              

  • How to add java script option in firefox as this is not available in the menu of tools menu and content of firefox

    Dear sir,
    I am regular computer user and firefox is my default web browser. But it is seen that my web browser is not having the option of enable java scripts as I am learning web page designing. Could you please tell me how to add this option in my web browser on mozila as I am interested to work mozila all the time. I can add this by using internet but that is not always easy and also not sure when this option is enable or disable. Please guide me resolving my problem.
    Regards,
    Mohammad Hossain

    You can no longer do that via the user interface, but you need to check the related pref on the <b>about:config</b> page.
    The <b>javascript.enabled</b> pref should be true on the <b>about:config</b> page to enable JavaScript.
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config
    See also:
    *QuickJava: https://addons.mozilla.org/firefox/addon/quickjava/

  • How to specify java (jdk) home on Unix

    Hi
    On Windows, the file dmu/dmu/dmu.conf has the "SetJavaHome" parameter, and this works as the docs specifies.
    On Unix (Solaris), the docs states that thsi is specified in the file $HOME/dmu_jdk, but I cannot get this to work.
    And specifying JAVA_HOME and/or setting the jdk/bin catalog in first the PATH does not help.
    It consistently uses picks up my jdk version 1.5 located in the /usr/java catalog, regardless of the environment variables and and dmu_jdk file (if I create it manually).
    Am I doing something wrong?
    Br,
    Kim

    user12078891 wrote:
    Hi
    On Windows, the file dmu/dmu/dmu.conf has the "SetJavaHome" parameter, and this works as the docs specifies.
    On Unix (Solaris), the docs states that thsi is specified in the file $HOME/dmu_jdk, but I cannot get this to work.
    And specifying JAVA_HOME and/or setting the jdk/bin catalog in first the PATH does not help.
    It consistently uses picks up my jdk version 1.5 located in the /usr/java catalog, regardless of the environment variables and and dmu_jdk file (if I create it manually).
    Am I doing something wrong?
    Br,
    KimDo you need to change it permanently or temporary (to run a utility)?
    Regards
    Gokhan

  • How to specify -preview when launching via AppleScript

    I have an InDesign Server CS5.5.I have a shell script that waits for xml files to be placed into a certain directory on the server. When it sees a file in the folder it launches an applescript that controls InDesign Server. I need to know how to specify the -preview option for the InDesign Server binary so the files generated by the server will have previews when they are opened in InDesign client. The apple scripts look like this:
    tell application "InDesign Server"
         -- do some stuff
    end tell
    Where/how would I specify the -preview option. I see nothing referring to the -preview option in the Library for indesign.

    There's two ways to set it:
    1) in command line when you launch the executable, there's a preview option. I don't remember off hand the exact syntax.
    2) In the script itself (using Javascript syntax -- Applescript would be similar) app.serverSettings.imagePreview = true;
    Harbs

  • Image format compilation options

    The Pixel Bender spec (included with the toolkit) states:
    "Depending on compilation options, pixel channels may
    actually be 8-bit integers, 16-bit integers, or 32-bit
    floating-point values."
    However, I couldn't find any discussion on how to set such
    compilation options. Is this currently possible? I'm interested in
    creating a 32-bit floating point output image.

    Hi Joe,
    That bit of the spec. is misleading and should be changed in
    the next version. Assuming you're writing a Pixel Bender kernel for
    Flash your image data will always be 32 bit floating point.

  • How to compile java to exe by JDeveloper?

    How to compile java to exe by JDeveloper?

    You used to be able to use exegen to generate stand alone executables for Windows, but this no longer works in later versions of Windows. It works for Windows 98 and NT. For example
    exegen/main:schedserv /out:sched.exe schedserv.class scheduler.class
    will generate the executable sched.exe from the two class files.
    Probably MicroSoft decided to make life a bit harder for Java users.

  • Error in Java compilation: \s7u.log (The system cannot find the file specified)

    Hi there,
    I got an error when I tried to compile a group of sqlj and java files. The error below:
    ----------------------------------------------sqlj -status -passes -compile=true -ser2class -d=. -classpath=.;%CLASSPATH% E:\work\src\java\com\interadnet\persistence\*.sqlj E:\work\src\java\com\interadnet\persistence\*.java
    out [Translating 53 files]
    out [Reading file AdServerInformationType]
    out [Reading file AdsType]
    out [Reading file AgencyType]
    out [Reading file CampaigntocompletionType]
    out [Reading file CampaignType]
    out [Reading file ChannelType]
    out [Reading file ClientType]
    out [Reading file CompletionType]
    out [Reading file ContactType]
    out [Reading file CreativeType]
    out [Reading file FtpServerType]
    out [Reading file InsertioninstructionType]
    out [Reading file MediaServerType]
    out [Reading file SystemPropertyType]
    out [Reading file VendorType]
    out [Reading file AdServerInformationTypeRef]
    out [Reading file AdServerInformationView]
    out [Reading file AdsTypeRef]
    out [Reading file AdsView]
    out [Reading file AgencyTypeRef]
    out [Reading file AgencyView]
    out [Reading file CampaigntocompletionTypeRef]
    out [Reading file CampaignToCompletionView]
    out [Reading file CampaignTypeRef]
    out [Reading file CampaignTypeRefs]
    out [Reading file CampaignView]
    out [Reading file ChannelTypeRef]
    out [Reading file ChannelTypeRefs]
    out [Reading file ChannelView]
    out [Reading file ClientTypeRef]
    out [Reading file ClientTypeRefs]
    out [Reading file ClientView]
    out [Reading file CompletionTypeRef]
    out [Reading file CompletionTypeRefs]
    out [Reading file CompletionView]
    out [Reading file ContactTypeRef]
    out [Reading file ContactView]
    out [Reading file CreativeTypeRef]
    out [Reading file CreativeTypeRefs]
    out [Reading file CreativeView]
    out [Reading file FtpServerTypeRef]
    out [Reading file FtpServerView]
    out [Reading file InsertioninstructionTypeRef]
    out [Reading file InsertioninstructionTypeRefs]
    out [Reading file InsertionInstructionView]
    out [Reading file MediaServerTypeRef]
    out [Reading file MediaServerView]
    out [Reading file SystemPropertyTypeRef]
    out [Reading file SystemPropertyTypeRefs]
    out [Reading file SystemPropertyView]
    out [Reading file VendorTypeRef]
    out [Reading file VendorTypeRefs]
    out [Reading file VendorView]
    out [Translating file AdServerInformationType]
    out [Translating file AdsType]
    out [Translating file AgencyType]
    out [Translating file CampaigntocompletionType]
    out [Translating file CampaignType]
    out [Translating file ChannelType]
    out [Translating file ClientType]
    out [Translating file CompletionType]
    out [Translating file ContactType]
    out [Translating file CreativeType]
    out [Translating file FtpServerType]
    out [Translating file InsertioninstructionType]
    out [Translating file MediaServerType]
    out [Translating file SystemPropertyType]
    out [Translating file VendorType]
    out [Translating file AdServerInformationTypeRef]
    out [Translating file AdServerInformationView]
    out [Translating file AdsTypeRef]
    out [Translating file AdsView]
    out [Translating file AgencyTypeRef]
    out [Translating file AgencyView]
    out [Translating file CampaigntocompletionTypeRef]
    out [Translating file CampaignToCompletionView]
    out [Translating file CampaignTypeRef]
    out [Translating file CampaignTypeRefs]
    out [Translating file CampaignView]
    out [Translating file ChannelTypeRef]
    out [Translating file ChannelTypeRefs]
    out [Translating file ChannelView]
    out [Translating file ClientTypeRef]
    out [Translating file ClientTypeRefs]
    out [Translating file ClientView]
    out [Translating file CompletionTypeRef]
    out [Translating file CompletionTypeRefs]
    out [Translating file CompletionView]
    out [Translating file ContactTypeRef]
    out [Translating file ContactView]
    out [Translating file CreativeTypeRef]
    out [Translating file CreativeTypeRefs]
    out [Translating file CreativeView]
    out [Translating file FtpServerTypeRef]
    out [Translating file FtpServerView]
    out [Translating file InsertioninstructionTypeRef]
    out [Translating file InsertioninstructionTypeRefs]
    out [Translating file InsertionInstructionView]
    out [Translating file MediaServerTypeRef]
    out [Translating file MediaServerView]
    out [Translating file SystemPropertyTypeRef]
    out [Translating file SystemPropertyTypeRefs]
    out [Translating file SystemPropertyView]
    out [Translating file VendorTypeRef]
    out [Translating file VendorTypeRefs]
    out [Translating file VendorView]
    out [Compiling 53 Java files]
    err*** The following character string is too long:
    err***
    out Error in Java compilation: \s7u.log (The system cannot find the file specified)
    Any suggestion appreciated.
    Daniel Huang

    Having not seen this before, I assume that the issue is that the command line string is too long when Javac is invoked.
    Here are a few things to reduce the size of the command line:
    - do not use the CLASSPATH option, but set the CLASSPATH environment variable (you can to that in a .bat file)
    - do not provide the .java files but rely on the implicit make capability in both, the SQLJ translator and the Java compiler. (Note: you must mention all of the .sqlj files that your program requires, do not rely on implicit make to find all of those.)
    - you can perform the -ser2class conversion as a separate step (see the SQLJ FAQ), as well as the Java compilation
    - there may or may not be a facility in your operating system to increase the size of the environment (and this may or may not have an effect on the maximum command line length)
    - you could try to omit the -passes option and see if that helps (that may actually be where your invocation if failing in the first place, in that it cannot write to some temporary file).
    Let us know how it goes. Thanks!

  • How to enable ojc compiler in new oracle jdeveloper 11g IDE

    Hi,
    we can compile java files using ojc compiler in Jdeveloper 10g IDE.
    I need this option in New Jdeveloper 11g IDE.
    Can any one tell me how to enable the ojc compiler? ( I need detailed steps to enable ojc compiler)
    I got class version error while i compile using javac in new Jdeveloper 11g IDE.
    (Class file size also differ from both compiler)
    So that, I want ojc compiler in new Jdeveloper 11g IDE.
    Regards,
    Karthi
    Edited by: user12957451 on May 4, 2010 1:09 AM

    I guess you can't. The ojc compiler is not part of jdev 11g, javac is the tool of choice.
    Timo

  • How do I add -Xlint option to the EJB compilation process?

    Hello,
    I have a 4 server node clustered environment. I am running WebLogic
    Server 9 MP 2 on Windows server 2003 Enterprise Edition SP 2. I am
    running Sun JDK 1.5 update 11. When the EJBs are compiled Isee the
    following message in the server logs (for every EJB):
    ####<Nov 16, 2007 6:15:09 PM CST> <Info> <EJB> <machine1> <wlserver1>
    <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
    (self-tuning)'> <<WLS Kernel>> <> <> <1195258509358> <BEA-012033>
    <Compiling generated EJB classes produced the following Java compiler
    output:
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    I checked through the documentation, and the extra EJB compiler options
    don't offer the -Xlint option. I checked the Java documentation and it
    does support that option. My servers are using the default javac
    compiler. I have not figured out how I can add the -Xlint option to the
    server compilation process, in order to get the additional information I
    need to diagnose the problem. Please help.
    http://e-docs.bea.com/wls/docs92/ConsoleHelp/pagehelp/Corecoreserverserve
    rconfiggeneraltitle.html#advancedAttributes
    Thanks,
    pimy

        I love being able to have a group contact list on my device.
    You can go to Contacts>Click on the icon right below the contacts with 2 people>Select the green plus sign in the upper right hand corner>Create a group name and then go thru the contact list to add up to 20 contacts for the group.
    This will help you get the group contacts added again.
    Tamara H.
    Follow us on Twitter @VZWSupport

  • How to run a java program without Java Compiler

    I have a small project and I want share it with my friends but my friend'pc have not
    Java compiler.
    for example, I writen a application like YM, then 2cp can sent,receive messege. My cumputer run as Server, and my frien PC run as client.
    How can my friend run it? or how to create an icon in dektop tu run a java program..??..
    (sorry about my English but U still understand what i mean (:-:)) )

    To run a program you don't need a Java compiler. Just the Java Runtime Engine. That can be downloaded from the Sun website and comes with an installer.
    You could then turn your application into an executable jar file and start it somehow like jar myYM.
    There is also software that packs a Java program into an executable file. I've never used that but one that comes to my mind is JexePack. It's for free if you can live with a copyright message popping up every time you start the program.
    http://www.duckware.com/jexepack/index.html

  • How to use .dll compiled in Delphi in Java?

    Can anyone provide me information how to use .dll compiled in Delphi in Java? The .dll Delphi program may be non-OOP program.

    Hi
    If You want to write anything in PASCAL then simply write JNI code in C++ and call functions from this DELPHI DLL, but remember about changing the order of parameters etc when You call it. I had exactly the same problem, but it is possible, and we succeed.
    You will need exact description of input parameters required by PASCAL functions and of output parameters. Then construct in C++ objects wchich looks in memory exacly the same as they will look if You will be using PASCAL. Then PASCAL function will interprete this area in memory as known structure and will run.
    Maciek

  • How to run java signed applet in vista with changing IE security options

    how to run java signed applet in vista with changing IE security options. If i change the IE security settings to low. it works.
    without changing the security setting, how to run.

    j_nanaji9 wrote:
    how to run java signed applet in vista with changing IE security options. If i change the IE security settings to low. it works.
    without changing the security setting, how to run.Can't be done without changing the security setting.

  • How to convert oracle form fmb file to java swing file using Jdeveloper

    how to convert oracle form fmb file to java swing file using Jdeveloper.Please explain with detailes steps if possible or please give a link where it is available
    thanks
    Message was edited by:
    user591884

    There is no automatic way to do this in JDeveloper. I know there are some Oracle Partners offering forms to java conversion, I don't know how much of their tools are automated and done with JDeveloper. With JDeveloper+ADF you basically rewriting the Forms application from scratch (and using ADF is helpful during this process).

Maybe you are looking for