[Solved] How to use Oracle Java 6 for specific applications

I use an IDE called PyCharm. On its download page, it recommends using Java 6 instead of OpenJDK. I currently have jdk7-openjdk installed, and from what I had read in the Arch Wiki on Java, it should be possible to install Oracle Java 6 along side OpenJDK 7.
However, after installing jdk6-compat and jre6-compat, I still see that I am running OpenJDK 7 when I run the following:
% java -version
java version "1.7.0_09"
OpenJDK Runtime Environment (IcedTea7 2.3.3) (ArchLinux build 7.u9_2.3.3-1-x86_64)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
...even after I have set JAVA_HOME and added /opt/java6/bin to my path.
How can I get PyCharm (or other applications) to use Oracle Java 6 instead of OpenJDK?
Thanks, and apologies if I've posted in the wrong place.
Other information that might be helpful:
Running zsh as default shell
Using Gnome 3 as DE
Last edited by Nikorasu (2012-11-17 20:54:33)

I found the solution.
For Pycharm, I just needed to add an environment variable PYCHARM_JDK. For running specific applications, I asked this question on the Unix / Linux StackExchange and got an answer there.
Also, after running PyCharm in Java 6... I would not recommend it. OpenJDK works fine
Last edited by Nikorasu (2012-11-17 20:55:01)

Similar Messages

  • Older java for specific applications only

    I have 1.5.0 and 1.6.0 java installed on Snow Leopard. If I drag the 32 bit 1.5.0 (aka J2SE 5.0) version to the top of the preferences list for apps, then Fonality HUD works as well as it did before I upgraded to Snow Leopard. If I leave the 64 bit 1.6.0 (aka Java SE 6.0) at the top, it crashes almost immediately. (And the 32 bit 6.0 does not make it work.)
    But I don't want to make the downrev version my default java for all applications!
    I tried uncommenting the 1.5.0 line in the Info.plist for HUD, per the comments there, but that did not work.
    How can I tell this application to use 1.5.0 instead of 1.6.0 without affecting any other java apps I might want to run?
    TIA

    Apparently it runs 1.5 if you install it, for example http://wiki.oneswarm.org/index.php/OSX_10.6_SnowLeopard, which actually references the very application that I'm trying to make work: HUD.
    And it DOES work just fine, following those instructions. I just don't like the idea of running 1.5.0 as my default java for all my applications when most of them will run fine (better!) with the official version of java for Snow Leopard.
    Isn't there a way to tell one application to use a specific version of java? Does JAVA_HOME still do this? I tried that and failed, but maybe I did not set it to the correct value - the java command in 1.5.0 or something else?

  • [SOLVED] How to use GPT GUIDs for referencing partitions in /dev?

    Hi all,
             I wanted to know whether it is possible to use Unique Partition GUID of a GPT partition to setup /dev/disk/by-part-uuid (something like that) and using that path in the bootloader config's 'root= ' kernel parameter.
    It is possible to obtain those GUIDs from gdisk (or maybe from blkid in util-linux-ng - not sure). But how to make udev setup /dev/disk/by-part-uuid like dir with these GUIDs.
    Main info http://marc.info/?l=linux-hotplug&m=129425482207292&w=2 and http://git.kernel.org/?p=linux/kernel/g … b78fc0e100 (currently in 2.6.37 only - but this commit will not work since in Arch initramfs is used). Thanks in advance.
    Last edited by skodabenz (2011-06-11 12:26:08)

    Encypted partitions (not that I use). Also searching will be faster (although not noticable), as parsing partition table is faster than parsing each filesystem and obtaining UUID. See http://www.mail-archive.com/grub-devel@ … 15218.html and http://www.mail-archive.com/grub-devel@ … 15228.html
    Last edited by skodabenz (2011-01-08 21:17:39)

  • How to use oracle fusion middleware for integration project ?

    hi all,
    in my projects, customer (a bank) already has many applications (bankend & frontend) that are complicatedly connected. I intend to use oracle fusion middleware to integrate all applications and make adding new applications in the future easier. I have worked through documents in the oracle website but I still have no idea how to use oracle fusion middleware to address the requirement, besides oracle fusion middleware includes a bundle of applications I don't know which one I would need.
    could anyone give me some instructions ? appreciate your help.
    thank very much,

    Hi,
    For this short description of environment, could be ODI is a incredible tool to help you...
    Take a look into my blog that has a lot of concepts and "how to do" instructions.... http://odiexperts.com
    However to try help you, what are the used technologies?
    Where are you from?
    Cezar Santos
    http://odiexperts.com

  • How to use the Java embedding activity in BPel

    hi all,
    How to use the java embedding activity in BPEL
    pls can u provide sample example

    1 Use [Oracle BPEL Process Manager Client Java API Reference|http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28986/overview-summary.html] and especially [com.collaxa.cube.engine.ext|http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28986/com/collaxa/cube/engine/ext/BaseBPELXExecLet.html]
    Instead of System.Out.println use addAuditTrailEntry(java.lang.String message)
    2. If you want to import a package write in code (Source View) of bpel process
    +<bpelx:exec import="package_name"/>+ for example +<bpelx:exec import="java.util.regex.Matcher"/>+
    example 1:
    String bodyAsString;
    StringBuffer myStringBuffer = new StringBuffer();
    try {
    bodyAsString = (String)getVariableData("BodyString");
    addAuditTrailEntry("bodyAsString1: "+ bodyAsString);
    Pattern pattern = Pattern.compile("goodDay");
    Matcher matcher= pattern.matcher(bodyAsString);
    while (matcher.find()) {   
    matcher.appendReplacement(myStringBuffer, "shitDay");
    matcher.appendTail(myStringBuffer);
    bodyAsString = myStringBuffer.toString();
    addAuditTrailEntry("bodyAsString2: "+ bodyAsString);
    } catch (Exception ex) {
    addAuditTrailEntry("Failed+bodyAsString",ex.getMessage());
    I put in code (Source View) the following
    <bpelx:exec import="java.util.regex.Matcher"/>
    <bpelx:exec import="java.util.regex.Pattern"/>
    example2:
    Object temp;
    try {
    temp = ((XMLElement)getVariableData("inputVariable","payload","/ns2:FiscalisMessage/ns2:Body")).getChildNodes().item(1);
    setVariableData("AdjReceipt",temp);
    addAuditTrailEntry("ok",temp.toString());
    catch (Exception ex) {
    addAuditTrailEntry("Failed :",ex);
    I put in code (Source View) the following
    <bpelx:exec import="oracle.xml.parser.v2.XMLElement"/>

  • How to compile Oracle java strored procedure in Putty

    I have created a java strored procedure , which would be invoked by oracle function.
    This java stored procedure is get compiled via SQL plus. While compiling by the use of putty , it shows lots of compilation error .
    How to compile Oracle java strored procedure in Putty??

    You'll need to add the j2ee.jar to your classpath. Usually you'll have to add some jars from your app server to your classpath as well.
    For example (using weblogic):
    javac -classpath c:\java\j2ee\j2ee1.3.1\lib\j2ee.jar;c:\tools\appserver\weblogic\wl7.1\lib\weblogic.jar
    HelloServlet.java

  • Using Oracle Paser for schema validation

    Hi,
    I am trying to use oracle parser for schema validation. I get hold of oracle parser using jaxp api. Below is the code snippet. When i set the attribute to turn the schema validation on, orale parser does not recognize this jaxp attribute . How can i do schema validation using oracle's xml parser implementaion that i get using jaxp?
    String JAXP_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
    String W3C_XML_SCHEMA = "http://www.w3.org/2001/XMLSchema";
    javax.xml.parsers.DocumentBuilderFactory factory = javax.xml.parsers.DocumentBuilderFactory.newInstance();
    factory.setValidating(validate);
    factory.setNamespaceAware(true);
    factory.setAttribute (JAXP_SCHEMA_LANGUAGE,W3C_XML_SCHEMA);
    javax.xml.parsers.DocumentBuilder builder = factory.newDocumentBuilder();
    Thanks

    DOMParser domParser=new DOMParser();
    domParser.setValidationMode(XMLParser.SCHEMA_VALIDATION);
    domParser.setXMLSchema(SchemaUrl);
    DefaultHandler handler=new DefaultHandler();
    DOMParser.setErrorHandler(handler);
    Parse the XML document to validate with the XML schema.
    domParser.parse(XmlDocumentUrl);

  • How to use Oracle partitioning with JPA @OneToOne reference?

    Hi!
    A little bit late in the project we have realized that we need to use Oracle partitioning both for performance and admin of the data. (Partitioning by range (month) and after a year we will move the oldest month of data to an archive db)
    We have an object model with an main/root entity "Trans" with @OneToMany and @OneToOne relationships.
    How do we use Oracle partitioning on the @OneToOne relationships?
    (We'd rather not change the model as we already have millions of rows in the db.)
    On the main entity "Trans" we use: partition by range (month) on a date column.
    And on all @OneToMany we use: partition by reference (as they have a primary-foreign key relationship).
    But for the @OneToOne key for the referenced object, the key is placed in the main/source object as the example below:
    @Entity
    public class Employee {
    @Id
    @Column(name="EMP_ID")
    private long id;
    @OneToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ADDRESS_ID")
    private Address address;
    EMPLOYEE (table)
    EMP_ID FIRSTNAME LASTNAME SALARY ADDRESS_ID
    1 Bob Way 50000 6
    2 Sarah Smith 60000 7
    ADDRESS (table)
    ADDRESS_ID STREET CITY PROVINCE COUNTRY P_CODE
    6 17 Bank St Ottawa ON Canada K2H7Z5
    7 22 Main St Toronto ON Canada     L5H2D5
    From the Oracle documentation: "Reference partitioning allows the partitioning of two tables related to one another by referential constraints. The partitioning key is resolved through an existing parent-child relationship, enforced by enabled and active primary key and foreign key constraints."
    How can we use "partition by reference" on @OneToOne relationsships or are there other solutions?
    Thanks for any advice.
    /Mats

    Crospost! How to use Oracle partitioning with JPA @OneToOne reference?

  • How do I update Java for Adobe Flash CS3?

    Hi,
    When I ran Secunia Software Inspector today it told me that
    the version of Java I have installed on my computer is out of date.
    It tells me that it is finding 3 out-of-date files:
    Once here:
    C:\Program Files\Java\jre1.6.0_04\bin\java.exe
    Twice here:
    C:\Windows\System32\java.exe
    and three times here:
    C:\Program Files\Adobe\Adobe Flash CS3\JVM\bin\java.exe
    I updated Java via the Sun website and consequently the first
    and second warnings disappeared when I reran the Software
    Inspector.
    The software inspector however is still finding an
    out-of-date Java version here:
    C:\Program Files\Adobe\Adobe Flash CS3\JVM\bin\java.exe
    Question is: How do I update Java for Adobe Flash CS3?
    Is it adequate to copy the updated file "java.exe" from
    "C:\Program Files\Java\jre1.6.0_04\bin\" to "C:\Program
    Files\Adobe\Adobe Flash CS3\JVM\bin\" or do I need to do anything
    else?
    Any help will be much appreciated.

    Hi
    I have the same problem of you, and the same dont find a
    solution. Me it's Kaspersky Anti Virus (AV) which find this
    problem.
    So (and I dont know if this solution is perfect), but I open
    Flash CS3 with the Java update choiced and apparently Flash
    fonctionnely well and Kaspersky dont find this
    prob now. But I dont never use Java in Flash (or without that
    I know that..), and same, I dont know at what Java is used in Flash
    I think that "JRE v 1.6.0_04" and more recent Java version is
    not good, because it's not quite the same Java application that in
    Flash CS3, In Flash CS3 it's "J2RE" and
    not "JRE".
    The history of all Java versions (and this) is here (
    http://java.sun.com/products/archive/)
    (but in all this versions... seriousely it's a true shambles !)
    If you want the last version for J2RE in this archives it's v
    1.4.2.18 but the last version is J2RE 1.4.2.19 but dont again in
    this archives
    (search on Java site, maybe first page ? I dont remember
    where I to find it...). But the problem... it's that this last
    version (19) is always detected bad by my AV...
    So I decide to use just the next version (v 1.5) and last
    version in this series (in archives site) which is the "JDK/JRE -
    5.0 v 5.0.16" but again named "Java 2 Platform
    Standard Edition (J2SE) 5.0 Update 16" in this dowload next
    archives page
    http://java.sun.com/products/archive/j2se/5.0_16/index.html),
    so well again named "Java 2" in this page (that which dont
    the case for the equivalent same download page for Java 6...)
    (Choice "JRE 5.0 Update 16" in this page)
    For instal "JRE 5.0 Update 16":
    1) Supp all files and folders in "JVM" (Java Virtual Machine)
    folder in Flash CS3 (but dont supp this folder, empty now) and save
    this contents in archive in you have
    affraid.
    2) dl "JRE 5.0 Update 16", directly in this page if you want:
    (https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/View ProductDetail-Start?ProductRef=jre-1.5.0_16-oth-JPR@CDS-CDS_Dev
    eloper)
    3) In install, choice "personal instal" (or +/- the same
    terms) and choice the "JVM" folder of you Flash CS3
    and AV dont detect this version same a bad file

  • HT1338 how do i update java for my computer

    how do i update java for my computer

    Welcome to the Apple Support Communities
    To install the most recent Java version for Mac OS X Snow Leopard, open  > Software Update. If it tells you that you are running the most recent version, you are using the most recent Java version for Snow Leopard

  • How to use Oracle refcursor dataset output parameter from SP

    Can I request for help on how to use Oracle Output parameter from a stored procedure as a source. I need the output tobe stored in a flat file
    Thanks
    Abhijit
    Message was edited by:
    Abhijit77

    yes I would like to use it for ODI.. I would like the ouput of the refcursor to be fed to a text file using ODI. How to handle the records returned by the refcursor and map with txt file.

  • How to use Oracle maps in APEX??

    I am developing one application in APEX 3.2. I need to use Oracle Map for the same.
    How to integrate Oracle maps with Apex ?? Can any one help me for this ?
    Thanks

    Nagesh.Patil wrote:
    Hi All,
    I want to use oracle workflows in my apex application.
    can anybody tell me how can I get this ?
    Thanks in advance..
    Database version : 11g XE
    Apex version : 4.0
    Nagesh Patil
    Oracle Workflow is only available as a component of EBS. It has never been available on, and is not certified for Oracle 11g, nor any version of XE.

  • How I use 802 small for HP 1050 J410

    how I use 802 small for  HP 1050 J410

    Hi debesh,
    Welcome to the HP Forums!
    To replace your ink cartridges in the HP Deskjet 1510, please see this guide, Replacing the Cartridges for HP Deskjet 1510, Deskjet 2540, Deskjet Ink Advantage 1510, and Deskjet ....
    For future reference, here is your printer's user guide as well. HP Deskjet 1510 All-in-One Printer User guides.
    Hope this is what you were looking for, and have a great day!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Can any one suggest me how to use drawPixels method for 40 series devices

    Hello!
    I am using drawPixels method of DirectGraphics class the code I have written is :-
    Image offscreen=DirectUtils.createImage(width,height,0x00000000);// width and heights are integer value
    public final int MODEL=DirectGraphics.TYPE_INT_8888_ARGB ;
    Graphics offgra = offscreen.getGraphics();
    DirectGraphics directgraphics = DirectUtils.getDirectGraphics(offgra);
    directgraphics.drawPixels(imgData,false,0,width,0,0,width,height,0,MODEL); // imgData is a int array(int imgData[]) which contains required pixels of image.
    The above code is working fine with NOKIA 60 series device but when i use it with NOKIA 40 series device it gives java.lang.IllegalArgumentException.
    same time if i use :-
    directgraphics.drawPixels(imgData,false,0,width,0,0,width,height,0,DirectGraphics .TYPE_USHORT_4444_ARGB ) ;
    // imgData is a short array(short imgData[]) which contains required pixels of image. i have used different formet here.
    it works fine with 40 series device,
    can any one suggest me how to use drawPixels method for 40 series devices with format
    DirectGraphics .TYPE_INT_8888_ARGB .

    If Remote wipe is activated it can't be undone. And Once the Wipe is done, the device can nö longer be tracked.
    Sorry.

  • How to build ear files for ADF application using Ant task

    How to build ear files for ADF applications using Ant. The ojdeploy ant task can not find application-level deployment profiles. I am trying to automated build and release for ADF application.
    Any help is highly appreciated.
    Thanks
    Shiva

    Hi Timo
    Thanks for your reply.
    I have successfully created ear file using ojdeploy on jenkins. however when am trying to auto deploy using WLDeploy ant task am getting the following
    error :
    weblogic.application.ModuleException: :oracle.mds.config.MDSConfigurationException:MDS-01335: namespace "/oracle/webcenter/quicklinks/scopedMD" mapped to metadata-store-usage "WebCenterFileMetadataStore" but its definition was not found in MDS configuration
    Please advise how to handle this.
    As am a newbie to ADF, could you please advise if it is possible for the ADF application deployments can be automated for different environments using jenkins due to this MDS dependencies.
    Appreciate your help.
    Thanks
    Shiva

Maybe you are looking for

  • Dual Monitor and Full screen playback in Color 1.0

    So, I was wondering if somebody could help me out. I have 2 screens, one is a 23" ACD other is a 23" dell. I am going to be color correcting with my Matrox MXO setup on the 23"ACD. Whenever I do full screen playback the waveform monitor and vectrosco

  • Changing audio output

    Is there an easier way to change my audio output device then opening system preferences and opening audio prefernces?  Maybe a way to get a drop down menu on the menu bar next to the volume slider or something?

  • Blackberry ID is not responding

    I did a security wipe on my bb q5 device, after the phone turned on, i selected a language, choose a wifi connection , swipe left to choose my country and agree to terms and conditions, but the agree to terms page won't load, it takes me to the homep

  • Installing problems with dbws calling utility

    when iam installing the dbws calling utility i get this error: loadjava -u sys/change_on_install -r -v -f -genmissing -s -grant public dbwsclientws.jar dbwsclientdb101.jar synonym : util/packing/wsclient/Banner The following operations failed class o

  • Print separations on non-PS printer (inkjet)

    This must have been brought up but for the life of me I can't find anything conclusive on it. I don't have a PS printer (a multi-purpose inkjet) but want to print separations. I wan't to print my own t-shirt stencils and even check work (on paper) be