Configuring JDev to use javac from JDK

Is there anyway to make JDevleoper use Javac from JDK. We are seeing some discrepancies in the code generated by ojc.
Thanks.
Suhas.

Starting with JDeveloper 9.0.3 Preview Release, you can use ANT to build your project
and with ANT you can use Javac.

Similar Messages

  • Use JAXP 1.3 with javac from JDK 1.4.2?

    I can use JAXP 1.3 with java from 1.4.2 SDK, by setting java.endorsed.dirs, e.g. java -DJava.endorsed.dirs=.... Is there a way to do the same with javac?
    Or, can I compile java with JDK 1.4 that makes use of classes from JAXP 1.3?
    Note that I can't rely on putting jars in the endorsed directory, it must be configurable.

    I was just apprehensive about the fact that my 3G turned into a very slow and almost useless device when I upgraded to 4.0 and later versions... and feared that the 3GS would be the same.

  • How to configure Firefox to use cert from smart card reader on Sun Ray 3 Plus

    I have a Sun Ray 3 Plus configured so the user needs a smart card to login (CAC card) and bring up a Java Desktop on the Sun Ray Server (Solaris 10 SPARC).
    Now I am trying to get Firefox to read the certificate from the smart card reader but not sure how to go about doing that.
    From searching online, it seems like I have to load a module in Firefox:
    Edit -> Preferences -> Certificates -> Security Devices
    But what file do I load? I'm assuming it is a file that's part of the SUNWut package?

    I try to test bumblebee with:
    optirun glxgears
    but I get this error:
    Xlib: extension "GLX" missing on display ":8".
    Error: couldn't get an RGB, Double-buffered visual

  • Use javac in JDeveloper

    Hi!
    I have developed an Applet based tool using the VisualCafe as my IDE. Now, I want to change my IDE to JDeveloper . But, I am not able to compile the same code in JDeveloper. It does not create Inner classes and giving compilation error.
    I want to use the standard Sun Java Compiler. Can any one of you direct me, how I can configure, such that when I buid it should use which compiler I have poited out/configured?
    Thanks,
    Ashok

    There is currently, no way to change the internal compiler. If you want to use javac in JDev 9.0.3, create an ANT build file in your project and use javac from within the ANT file.

  • 802.1x using authentication from NT Domain Controller instead of Radius

    I would like to know if it's possible to configure 802.1x using authentication from NT Domain Controller, instead of using Radius or Tacacs.

    It is possible to use MS AD, generic LDAP, Novell NDS for authentication, it's fairly common.
    The issue is "How do get the device to talk to the authentication source ... (AD, DC, NDS, LDAP)?"
    The answer is RADIUS.
    You can configure RADIUS to pull authentication from a variety of source (depending on the RADIUS - many/most can use any of the LDAP-based systems).
    So, yes, certainly you can use the Microsoft AD, but you need RADIUS to connect the two systems (the 802.1x device and the AD server).
    If cost is the issue, try freeRADIUS (www.freeradius.org) - it's fully featured (can use LDAP, AD, NDS, Certificates, etc), it's free, and configuration is much easier than it looks ....
    Good Luck
    Scott

  • Using javac and XP

    Hello,
    I am using Windows XP Home Edition and j2sdk1.4.1_01.
    I am getting the following error message upon trying to use javac from the command prompt:
    'javac' is not recognized as an internal or external command,
    operable program or batch file.
    Below is my output upon trying to use javac. I have also provided my current path. Also, as you can see javac.exe is present in the bin directory.
    How do I enable javac from any directory? The instruction Sun provides doesn't seem to work for XP!
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings>path
    PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.1_01\bin
    C:\Documents and Settings\>javac
    'javac' is not recognized as an internal or external command,
    operable program or batch file.
    C:\Documents and Settings\>java
    Usage: java [-options] class [args...]
    (to execute a class)
    or java -jar [-options] jarfile [args...]
    (to execute a jar file)
    where options include:
    -cp -classpath <directories and zip/jar files separated by ;>
    set search path for application classes and resources
    -D<name>=<value>
    set a system property
    -verbose[:class|gc|jni]
    enable verbose output
    -version print product version and exit
    -showversion print product version and continue
    -? -help print this help message
    -X print help on non-standard options
    Here is my <C:\j2sdk1.4.1_01\bin> directory below. As you can see javac.exe is present in the bin directory:
    C:\Documents and Settings>cd ../j2sdk1.4.1_01\bin
    C:\j2sdk1.4.1_01\bin>dir
    Volume in drive C is IBM_PRELOAD
    Volume Serial Number is 6C67-7C74
    Directory of C:\j2sdk1.4.1_01\bin
    01/16/2003 03:21 PM <DIR> .
    01/16/2003 03:21 PM <DIR> ..
    09/30/2002 02:08 AM 28,794 appletviewer.exe
    09/30/2002 02:08 AM 28,792 extcheck.exe
    09/30/2002 02:08 AM 16,384 HtmlConverter.exe
    09/30/2002 02:08 AM 28,794 idlj.exe
    09/30/2002 02:08 AM 28,775 jar.exe
    09/30/2002 02:08 AM 28,796 jarsigner.exe
    01/16/2003 03:21 PM <DIR> java
    09/30/2002 02:08 AM 24,672 java.exe
    09/30/2002 02:08 AM 28,789 javac.exe
    09/30/2002 02:08 AM 28,795 javadoc.exe
    09/30/2002 02:08 AM 28,789 javah.exe
    09/30/2002 02:08 AM 28,785 javap.exe
    09/30/2002 02:08 AM 24,674 javaw.exe
    09/30/2002 02:08 AM 28,798 jdb.exe
    09/30/2002 02:08 AM 28,792 keytool.exe
    09/30/2002 02:08 AM 28,788 kinit.exe
    09/30/2002 02:08 AM 28,788 klist.exe
    09/30/2002 02:08 AM 28,786 ktab.exe
    09/30/2002 02:08 AM 28,806 native2ascii.exe
    09/30/2002 02:08 AM 28,811 orbd.exe
    09/30/2002 02:08 AM 28,798 policytool.exe
    09/30/2002 02:08 AM 28,780 rmic.exe
    09/30/2002 02:08 AM 28,786 rmid.exe
    09/30/2002 02:08 AM 28,798 rmiregistry.exe
    09/30/2002 02:08 AM 28,797 serialver.exe
    09/30/2002 02:08 AM 28,823 servertool.exe
    09/30/2002 02:08 AM 28,813 tnameserv.exe
    26 File(s) 728,003 bytes
    3 Dir(s) 21,616,312,320 bytes free
    C:\j2sdk1.4.1_01\bin>
    As you can see javac.exe is present in the bin directory. How do I enable javac from any directory? The instruction Sun provides doesn't seem to work for XP!
    Thanks, Harvey

    These 2 tests have different errors, and therefore have different solutions.
    I either get:
    C:\Documents and Settings\SHEILA.IBM-IDIYAYPGDZV>cd
    ../../j2sdk1.4.1_01\bin\java
    c hello.java
    The system cannot find the path specified., The error message indicates that MSDOS can not find ../../j2sdk1.4.1_01\bin\javac. Perhaps this is just a typo in your post, but ../../ won't work in MSDOS, at least on my machine. It has to be ..\..\ but when I try the same command adapted for my system and correct the /, it works. (By 'works' I mean the javac.exe is found.)
    C:\Documents and Settings\Walt>..\..\j2sdk1.4.0\bin\javac
    or
    C:\j2sdk1.4.1_01\bin>javac hello.java
    error: cannot read: hello.java
    1 error
    when everything is C:\j2sdk1.4.1_01\bin.In this case, MSDOS found the javac.exe file and executed it. The error message is from the javac compiler and it means the compiler looked in C:\j2sdk1.4.1_01\bin and could not find a file named hello.java. Use the command "dir" and make sure that the file hello.java exists in this directory - especially make sure that the file is not named hello.java.txt
    Going back over your posts, it appears that you have set your Path correctly, so perhaps the "cannot read:" error was the main problem.

  • How to install and configure WebLogic 10.3 to use 64-bit JDK?

    Hi,
    Is there a preferred/supported way to configure WebLogic to use the 64-bit JRockit that comes with JRockit Mission Control?
    I can't find any official documentation about how to configure WebLogic to use a 64-bit JDK. From other forum posts I can tell we need to use the 64-bit JRockit that is bundled with JRockit Mission Control (available at [http://www.oracle.com/technology/software/products/jrockit/index.html]) but then we are kind of stuck - the configure script which let me select a JDK for a domain doesn't seem to let me re-configure an existing domain, and I can't find anything within the admin console that would let me set the JDK to use.
    I was able to rename the existing jrockit_160_05 directory to e.g. jrockit_160_05_original and then rename the jrmc directory to "jrockit_160_05", effectively taking the place of the JDK being used but this seemed like a bad way to do it. I also found via Google this page: [http://java.sodeso.nl/application-servers/bea-weblogic/how-can-i-change-the-jdk-installation-that-weblogic-uses] which basically says to modify the JAVA_HOME environment variable in the start scripts, but this seems like the same thing.
    With the plethora of products and the different ways they are bundled, combined with all the documentation about everything, I thought I would find something but I keep coming up blank. Does anyone have suggestions or pointers?
    Thanks,
    KaJun

    Make sure your environment configuration is supported here:
    http://www.oracle.com/technology/software/products/ias/files/fusion_certification.html
    Then, you need to have the correct 64bit JDK installed. Sounds like you have done that.
    Then download and run the generic platform installer as described here with your 64bit supported JDK:
    http://download.oracle.com/docs/cd/E12839_01/doc.1111/e14142/start.htm#i1077535
    Notice how the link you post has the generic installer for all the 64bit JVM rows, but the other installer for the 32bit JVMs on the 64bit OS?

  • How to use javac to replace deprecated wsgen or apt in JDK 7?

    I am using jax-ws RI for web service and generating web service artifacts using wsgen.
    When I use wsgen or apt to generate web service artifacts in JDK 7 with following command.
    wsgen -s src -cp CLASS_PATH -d OUTPUT_DIRECTORY  com.sun.WebServiceSEI
    displays following warning message
    The apt tool and its associated API contained in the package com.sun.mirror have been deprecated since JDK 7 and are planned to be removed in the next major JDK release. Use the options available in the javac tool and the APIs contained in the packages javax.annotation.processing and javax.lang.model to process annotations.
    How can I generate web service artifacts using javac instead of wsgen or apt ?
    Edited by: user11128702 on Feb 6, 2012 1:54 AM
    Edited by: user11128702 on Feb 6, 2012 1:57 AM

    Hi Frank
    >After correcting one error in the given source (could never run that way), I get the JCO marked as deprecated as well. So this source code there seems to be a left over from NW 2004?
    Not exactly. The deprecation means that the JCo API version is 2.X while JCo 3.0 is already available. However, this does not mean that you cannot use the "com.sap.mw.jco.JCO". I know lots of projects running even on 7.11 and 7.20 that still use the JCo 2.X.
    >Is the destination service itself also depricated?
    No, no, no.
    >So I found out JCO is now depricated and I should use SAP Java Resource Adapter instead. Can I combine it with destination service or is there something similar as in web dynpro? For Ehp 1 I found this adaptive RFC package, but seems not to be available in 7.10?
    Java Resource Adapter is just a new JEE container for JCo API. Still it's also has some problems. So I'd not recommend you to use it.
    >What I clearly want to avoid is to give any user, password or system parameters in the source code as I'm used from Web Dynpro. Can I use the web dynpro mechanism maybe somehow?
    Use JCo 2.X + Destination Service. Ignore the API deprecation.
    BR, Siarhei

  • JDev 10.1.3 and JDK1.2.2 use javac problem

    I have an old application that I need to compile in 1.2.2, and have tried the "use javac" checkbox on the project properties compile page. The compiler seems to run, but there is an intential error in the code. I put it there, because the class file didn't seem to get generated. I tried this on command line, and apparently '-source' is an invalid option in 1.2.2.
    E:\jdk1.2.2\bin\javac.exe -J-mx512m -verbose -source 1.2 -target 1.2 -encoding Cp1252 -g -classpath E:\jdk1.2.2\jre\lib\rt.jar;E:\jdk1.2.2\jre\lib\i18n.jar;E:\jdk1.2.2\jre\classes;E:\app\codebase;E:\oracle\jdev1013\j2ee\home\lib\ojsp.jar;E:\oracle\jdev1013\j2ee\home\jsp\lib\taglib\ojsputil.jar;E:\oracle\jdev1013\j2ee\home\oc4j.jar;E:\oracle\jdev1013\j2ee\home\lib\oc4j-internal.jar;E:\oracle\jdev1013\j2ee\home\lib\servlet.jar;E:\oracle\jdev1013\jdev\lib\ojc.jar -sourcepath E:\app\src -d E:\PTC\Windchill\codebase @C:\DOCUME~1\gteft\LOCALS~1\Temp\javac30279.tmp
    [1:53:55 PM] Successful compilation: 0 errors, 0 warnings.
    Has anyone else run into this?
    Any help or thoughts on how to adjust this behavior for 1.2.2's javac would be appreciated.

    Thank you for responding. I am aware of (and frustrated by) issues and limitations due to this application's dependancies on an aging platform, and would upgrade if it were my choice. The dependancy is in the vendor's API, and not in code that I can change.
    As the invalid option was not captured as a message or counted as an error, I thought that perhaps this could be a potential issue for using javac with any version.
    I was hoping to see if there were additional settings controlling the command line options that I couldn't find.
    Thanks,
    Greg

  • Why I can't use javac? and why my program doesn't pop up cmd window?

    I have 2 questions here:
    1) I try to compile my HelloWorld.java using command prompt,
    javac HelloWorld.java
    But it won't work; by right it should create a HelloWorld.class. When I go to Configure/Options/JDK Profile, it is already showing JDK version 1.6.0_07. My environment variables show User variables and System variables with C:\Program Files\Java\jdk1.6.0_07\bin. This is where my JDK is stored, but I don't know why I can't use javac. It keep saying
    'javac' is not recognized as an internal or external command, operable program or batch file
    2) Why is it when I run my java script using JCreator, the print out appear in the box below in JCreator and not in command prompt? How can I make it pop up on command prompt window?

    Things tend to move fasterYep... until something goes wrong... then you're completely stuffed, because you have no idea what's actually happening, because the idjit IDE is hiding all the gory details... it doesn't even tell you what it's doing, let alone how it's doing it, or what to do when it fails.
    Another argument for the command line is that it's simple. There are 16 distinct dialogues involved in adding a new jar to a library in jBuilder... There may well be less than 16 characters in the equivalent edition to the equivalent build command line. That's an extreme case, I admit, but it goes to disprove the notion that IDE's are simpler for noobs.
    Also, it's easier to get help on command line usage... because it's all text based you can just copy & paste the problematic command and it's output, and the eggspurts (tm) can do likewise with a response... and there are limited number of command lines out there... and *nix, windows, and mac cover maybe 99.5% of java users... and the eggspurts are likely to know all three (colectively if not as individuals) fairly well, because they deal with them all day every day.
    My belief is that noob's are better off at the command line until such time as they need (not just want to play with) a visual debugger... at which time its time to download netbeans and eclipse, and see which one suits you better... if you have money to splurge I'd also evaluate intelliJ... But avoid jBuilder, 2008 is total carp! The FREE eclipse is (IMHO) "nicer to use", and it has a LOT less bugs.
    Cheers. Keith.

  • Changing from jdk 1.3 to j2sdk1.4.1_01

    Hi!
    I have a problem with the use of java 1.4.1_01 on Windows XP.
    When i installed jdk 1.3, i set the PATH-variable in the autoexec.bat file in the following way:
    PATH = C:\jdk1.3\bin
    Everything was OK, all the jdk-tools (compiler, interpreter etc) could get used from any folder.
    Then i installed j2sdk1.4.1_01 without uninstalling jdk 1.3.
    In order to use the new version, i changed the PATH-setting:
    PATH = C:\j2sdk1.4.1_01\bin
    Then i wrote an application with JCreator LE and had no problems to compile and run it with by JCreator.
    Now i created a batch-file to start my application, but when i open it to run my application, i get an error that the file to run cannot be found.
    When i tried to start "javac" from MSDOS, i got the error that "javac" cannot be found (although "java" is found, but not usable to run the application; starnge, isn�t it?)
    Why can i run applications with JCreator? Does it use an isolatede setting of PATH?
    How can i set the path, so that i can run my java - applications from any place from MSDOS (in order to create batch-files to start them)??
    Pleas help me.
    Thank you very much

    autoexec.bat on Windows XP??
    Read this on how to set environment variables in Windows XP:
    How to manage enviroment variables in Windows XP
    http://support.microsoft.com/default.aspx?scid=KB;EN-US;q310519&
    Jesper

  • Configuring WSAD 5.1.2 with JDK 5

    Hello
    How can we configure WSAD 5.1.2 with JDK 5. Currently It is working with JDK 1.4. Can anyone please help
    Thanks

    Do you really want to do this? WAS 5.1.2 does not have support from IBM if you change the jdk - atleast that I am aware of. You can change the jdk in wsad 5.1.2. But none of the servers are set up for jdk 5. If you want to just write the code to jdk 5 standards I can tell you how to include the libraries in WSAD. But don't shoot yourself in the foot... look at Rational's new IDE I think that is the next gen IDE that uses eclipse 3.0, and WAS 6.0 - I believe that WAS 6.0 has jdk 5...
    Just reply... IF you still want to change I can point you in the right direction.

  • Error: Project is not set up to use at least JDK 6

    Hi All,
    I am working on Jdeveloper11g with java SE version 1.6.0_05 (Default).
    Today i tried to change JAVA SE Version from Roject properties-> to JDK1.5
    And i am getting below error.
    Error: Project is not set up to use at least JDK 6.
    Please let me know can we change the Version from 1.6 to 1.5
    if yes what are the necessary steps I need to follow.
    Thanks for all help.
    Jaydeep

    I got answer form below post
    use of 1.5 java SE not permited in JDev 11.1.1.1
    Jaydeep

  • Configuring JDev with ARCS

    Hi All,
    We have completed project with JDev
    Now we want to arcs in the java,XML files to ARCS source area
    How to configure JDev to arcs-in to a source control area
    Any help
    Thanks
    -Praveen

    This patch was available under generic platform, now i see that the option is removed from metalink.
    This path was available, we are using it in one of our instances.
    Let me talk to the DBA here and understand how to get the path now from oracle.
    And patch number need not necessarily be 7 digits, it can be 6 digits as well.
    Thanks
    Tapash

  • How to get useful data from request?

    Hello.
    I am looking for creating a management tool for a web site. All I want is that is there any ready to use API or package or open source project for retrieving user�s information? I just mean that is there any easy to use way in java to get useful data from a client (for example location, his or her system configuration and information �).
    Thanks.

    If you dump all the data from request (see the javadoc, and especially the "header methods" ) you'll see the data you can get are quite simple.
    The only thing you can try to rely on are ;
    - the IP address from the sender (when reversed to DNS, you can sometime use the tld to locate the country it comes from. Yet, you'll get many .com name, so it's not that significant. it may also give you the IAP used). Note that if the user is using a proxy, it's the proxy IP that you'll collect
    - the User-Agent header : from this, you can guess the OS and the browser used
    - the Referer header : usefull to get where your user comes from (where they found a link to your site)
    - the Cookie header : if you're using a servlet container with session id stored in cookie, you should see the Cookie header appear on the second request to your site. That helps finding out wether your user accep cookie or not (from a server point).
    Besides these, i don't think you can get any other useful data without asking your users on a form. Note that it's the client that decides to send Referer, User-Agent or Cookie headers. Those are not mandatory to the Http Protocole and some browser allow their user to fool their content (butmore than 90% of the widespread browsers don't)

Maybe you are looking for

  • Can you actually claim for headphones replacement?

    I'm in the UK and I've been trying to use Online Service Assistant to claim for malfunctioning earphones (with remote) according to Apple replacement program. But every try ends right after submiting all details, delivery, billing address and paycard

  • Uploading photo's from my iPhone 4 to my Mac Mini?

    have a Mac Mini & an iPhone 4. Before the recent software updates, I used to plug the phone into the mac & iPhoto would open & ask me if I wanted to upload my photos, before it went to iTunes. Since the software updates, for the Mac & iOS5 on the pho

  • How to view images from Pictures Folder using iPhoto?

    Right now when I click an image in the Pictures folder, the image is automatically opened using Preview. I want to view images directly from my Pictures folder, and have them open to iPhoto. Is that possible? I just want to be able to view/sort my ph

  • Install Camera Raw 4.6 manually on a Mac

    I would like to install Camera Raw 4.6 for my Adobe Photoshop CS3, but I am unable to use the Adobe Updater (doesn't work at all - another story though). How will I be able to do this manually? Im on a MacBook Pro with Snow Leopard and Photoshop 10 w

  • How to run a process in background?

    hallo, I'm starting a process with runtime.exec() like this: Runtime r = Runtime.getRuntime(); String[] conv = new String[1]; conv[0] = "executablepath"; Process p=r.exec(conv); Now I want that the application does not appear and run in background. H