"Official ArchLinux" way to override version with java-runtime-common

Since the latest update to java-runtime-common it's no longer possible to override the default Java version using the JAVA_HOME environment variable. This means that to use a different version you have two options:
* Change the default version each time you want a different version, thus forcing every Java app to use that other version
* Edit the PATH such that the $JAVA_HOME/bin of the desired overriding Java environment is ahead of the wrapper, thus bypassing java-runtime-common altogether
Is there some "official" way to run with the non-default version while still using the ARchLinux official tool?
How should this be implemented in packages/AUR that require a specific version or versions of the JRE/JDK?
Thanks!

nomorewindows wrote:Sure, it's a command called archlinux-java
I already know about that command, it's nothing to do with running java in a particular version as a once-off thing. It's used to set the default java version, and to retrieve a list of versions.
To explain again, I need to have a default version set, but sometimes I want to run a different version. Previously I could just do something like this:
env JAVA_HOME=/usr/lib/jvm/java-7-oracle INSERT_COMMAND_HERE
Now that doesn't work anymore. How are we "officially" meant to be doing it now, as the only way I can see now is to just bypass the wrapper by inserting the new JAVA_HOME in the PATH before everything else.
Last edited by Phreakazoid (2014-10-13 02:05:24)

Similar Messages

  • [svn:fx-trunk] 8968: sync api versions with flash runtime data

    Revision: 8968
    Author:   [email protected]
    Date:     2009-07-31 13:18:19 -0700 (Fri, 31 Jul 2009)
    Log Message:
    sync api versions with flash runtime data
    Modified Paths:
        flex/sdk/trunk/modules/asc/src/java/macromedia/asc/embedding/avmplus/ActionBlockEmitter.j ava
        flex/sdk/trunk/modules/asc/src/java/macromedia/asc/util/APIVersions.java

    Sorry to dig this out, but i just ran exactly into the same problem using a 7600GT. Reverting the appropriate libraries to 9.2.4 lead to a segfault in Compiz, deleting the libvdpau_nouveau files, however worked perfectly - thanks cro for the hint. But I guess, this is not a permanent solution, is there a better way to fix it? Maybe a bug report mentioning the problem would be of some use?
    Bug reported: https://bugs.archlinux.org/task/39975
    Last edited by PhotonX (2014-04-20 11:59:36)

  • PROBLEM with JAVA RUNTIME ENVIRONMENT

    HI I installed Limewire & everything but then it said I need a Java Run Time Environment so I downloaded it & installed it but it STILL says the same message:
    Sorry, Limewire could not locate a suitable Java Runtime environment. Please download and install one from http://java.sun.com/getjava/download.html
    I HAVE tried restarting my comp and uninstalling it and reinstalling and verifying it on the internet or whatever but it said it couldn't find it on my comp but another part of their webbie says i have the latest version! How do i fix it?
    I have Windows XP and internet explorer so i don't have ANY idea? Can anyone help? thanx xx

    Why is the Registry invalid? Unless you can assure that this is the only error, it's probably better to uninstall Java and reinstall it, that way any additional errors can also be resolved.

  • Current best practice with Java Runtime?

    I'd rather just live without Java Runtime, but it looks like one of my kids needs it for a school website.  I guess I have to install it and educate/monitor everyone on using and disabling it.  On a machine with multiple user accounts can it be enabled/disabled on a machine wide global basis, or is it only on a user/browser-preferences level?  What complications are there, if any with multiple users?  I assume it helps to be browsing in a non-admin account?

    It's been enabled on all my OSs and I suffer no issues. You could use if for the school app and then disable it in Safari's prefs if you're really worried about it.

  • Not able to open windows application With Java Runtime .exec class

    Hi,
    We have created a folder with mkdir() function. The folder has some
    text and doc files and i want to open them using java runtime API.
    I am unable to open the files using the syntax
    try {
    Process p=Runtime.getRuntime().exec("cmd /c \ "" + file.getPath());
    p.exitValue();
    catch(Exception e)
    e.printStackTrace();
    This code works perfectly for folders created directly in Win XP without using
    mkdir.
    Also the return values of of class Process is 1 which we understood as illegal thread state. But I still havent got a clue how to fix it.
    Appreciate quick feedback :) Thanks ;)

    First off you're missing a quote (add '+ "\"" after file.getPath()). But the larger problem is that this will attempt to execute these files and they aren't directly executable (you said they're text and document files). Do you really want to execute them?
    If you just want to read them then something like
    BufferedReader ir = new BufferedReader(new FileReader(file))
    would be more appropriate.

  • Installing earlier versions of Java RunTime

    I have an application (Remote Viewer for an Dell IP KVM) that requires Java RunTime 1.5.0_11.
    It worked great until I updated my Leopard install and at some point it replaced the JRE.
    I've been looking for a JRE for 1.5.0._11 for Mac but Sun only offers it for every other OS.
    On Apple's site I can only find it for OS 10.4.
    Does anyone have any idea where I can find FRE 1.5.0_11 for OS 10.5.7?
    Thanks,
    Mike

    In your Utilities folder there should be a Java folder in which is a utility named Java Preferences. See if you are able to switch to another version of Java.

  • Need help with Java Runtime Environment pop-up for Yosemite OS X.

    Java Runtime Environment is disabling my Safari but does not effect Firefox. After installing the 8.40 update of Java and jumping through all the hoops I still get the JRE needs to be installed pop-up message.

    Most likely, you have a web plugin that depends on the Java runtime distributed by Apple, such as the Facebook video calling plugin or the "NexDef" plugin for watching baseball streams. If you no longer need the plugin, remove it, including its automatic update mechanism (if any) according to the developer's instructions. Otherwise, install Java.

  • Weblogic Server version with ADF runtime

    Expert,
    May I know which the latest version of Weblogic Server can support ADF runtime? Thanks!
    Rgds!

    No, there is no support for 12c jet. You have to wait for this till next year. There will be at least one more 11.1.1.x and 11.1.2.x version before we get 12c with ADF support.
    I'll try to keep the list up to date (which it is right now).
    Timo

  • Need HELP with JAVA RUNTIME Environment

    Hi,
    I just download J2EE, J2SE, and Ant from sun site. I am having problem to compile java program. Here what I did
    1)     Download J2EE at c:\j2sdkee1.3.1 directory
    2)     J2SE at c:\Program Files\Java\j2re1.4.1_01 dir
    3)     Ant at ant c:\Jakarta_ant-1.3 dir
    My operating system is windows 2000. Therefore, I set up environment variables from system ->Advance ->Environment ->Variables ->System variables ->New
    Variable = ANT_HOME
    Value = c:\ant\Jakarta_ant-1.3
    Variable = J2EE_HOME
    Value = C:\j2sdkee1.3.1
    Variable = JAVA_HOME
    Value = c:\Program Files\java\j2re1.4.1_01
    Variable = CLASSPATH
    Value = c:\j2sdk221.3.1\lib\j2eetools.jar
    Edit
    Variable = Path
    Value =
    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\MSSQL7\BINN;%JAVA_HOME%\bin;%J2EE_HOME%\bin;%ANT_HOME%\bin
    I restart my machine and try to execute the following command from command Prompt in c:\ dir
    C:\> j2ee ?verbose
    The following message pop up
    ?C:\Program? is not recognized as an internal or external command, operable program or batch file.
    I would appreciate if someone explain me what I did wrong in set up so this test program is not working.
    Do I need to run j2ee ?verbose some other directory? Which directory should I compile my java file?
    Did I set up my environment variable correctly or I need to do something else?
    Please help me out.
    Thanks a lot.
    Sam

    try to set JAVA_HOME environment variable to
    C:\PROGRA~1\java\J2RE14~1.1_0
    when you dir name contains space symbols, you should enclose it in commas or use a short form
    "C:\Program Files\java\j2re1.4.1_01"
    is equals to
    C:\PROGRA~1\java\J2RE14~1.1_0

  • Is there a way to create/edit registry keys with Java?

    I'm writing a console app and I'd like to have it so the users can change values in the registry. I'm not just talking about app keys I want any key. Is there a way to do this with Java?

    Maybe a forum search on "Windows registry" would turn up some useful things. You're not the first to ask this. You might save yourself and everyone else some time if you'd simply do that.

  • How to create a xml element for Text with Java?

    Hi @ all,
    I want to tag a part of a text with Java.
    Like the InDesign function "Tag für Text" (maybe "tag for text" in english)
    Is there a way to tag text with Java?
    I tried to autoTag and to markup the text with an existing xml, but only got IdsExceptions.
    here the code where to tag the text:
    XMLElement newXML = parentXML.addXMLElement(VariableTypeUtils.createString("newXML"),OptArg.noVariableType());
    Text[] texts = para.findText(OptArg.noBoolean());
    for (Text text : texts)
       //TODO tag text
    Exception throwing code:
    text.autoTag();
    text.markup(newXML);
    newXML.markup(VariableTypeUtils.createObject(text));

    This is not a Web Dynpro specific question. This forum is for Web Dynpro specifc development aspects. There are other forums for general ABAP development as well as other specific aspects of ABAP development.
    I strong suggest that you review the rules of engagement for forum involvement, Derek.  You have had multiple violations of the rules in the last week.

  • Export versions with ratings (IPTC)

    Hi,
    Is there any way to export versions with included ratings (stars in IPTC)? They are absent on versions export but are included only in XMP sidecar with exporting originals.
    I would need ratings exactly in exported versions. Maybe there are some apple scripts or automator actions?
    Thanks!

    Hmmm...
    Hm... when I rate photos in iViewMedia Pro or Lightroom they export (or embed) ratings in IPTC just fine.
    and
    It is rating field. If you'll look into jpeg you can clearly see: <xap:Rating>5</xap:Rating>
    You’re right. It is a Ratings Field. But it’s not an IPTC field, that’s an XMP field. There is no IPTC ratings field.
    As this page clearly lays out:
    http://www.portfoliofaq.com/pfaq/FAQ00311.htm
    Regards
    TD

  • I am trying to install the "Java Runtime Environment" plugin. It is continuously showing as not available. What can I do to get round this?

    I am asked to install this update by an educational website.
    The sequence of events is:
    1. Message appears at interactive site on page "A plugin is needed to display this content." along with an Install Plugin button.
    2.Pressing the install button brings up a dialogue box, "Plugin Finder Service" with "Java Runtime Environment" ticked.
    3. I press "Next" to install. New dialogue box comes up showing "Java Runtime Environment" as "Not available" and states that no plugins were installed.
    4. The only availablre option "finish," closes the dialogue box.
    I have tried following instructions in help but these always bring me back to the same process. I have downloaded the most recent Java software and nothing has changed.
    Any ideas to successfully install "Java Runtime Environment." Maybe there's a successor plug-in.
    All help gratefully received.
    Thanks,
    Andrew Bramley

    Hello Andrew, try download [https://www.java.com/en/download/faq/whatis_java.xml Java Runtime Environment (JRE)] from the next link : https://www.java.com/en/download/ . If you can not then try the manual way from the next link : https://www.java.com/en/download/manual.jsp (select the Windows Offline, filesize: 28.0 MB). In.... general, try to use the official sites when you install Java or flash etc.
    thank you

  • [Solved] Pacman fails to satisfied java-runtime dependency on upgrade

    Hi. So I haven't been able to upgrade yesterday or today because of this bug. I couldn't figure out how to solve it on my own.
    This is what happens when I try to upgrade:
    jake@levi> sudo pacman -Syyu ~
    :: Synchronizing package databases...
    core 104.8 KiB 76.7K/s 00:01 [##################################################################################################] 100%
    extra 1389.5 KiB 187K/s 00:07 [##################################################################################################] 100%
    community 1549.8 KiB 191K/s 00:08 [##################################################################################################] 100%
    multilib 89.7 KiB 145K/s 00:01 [##################################################################################################] 100%
    :: Starting full system upgrade...
    resolving dependencies...
    looking for inter-conflicts...
    error: failed to prepare transaction (could not satisfy dependencies)
    :: languagetool: requires java-runtime>=6
    :: rhino: requires java-runtime
    I have jre7-openjdk-headless already installed, which provides java-runtime 7, so I don't see why I could be running into any problems.
    [1] jake@levi> pacman -Qi jre7-openjdk-headless ~
    Name : jre7-openjdk-headless
    Version : 7.b147_2.1-1
    URL : http://icedtea.classpath.org
    Licenses : custom
    Groups : None
    Provides : java-runtime=7
    Depends On : libjpeg-turbo lcms2 nss ca-certificates-java rhino
    Optional Deps : libcups: needed for Java Mauve support - libmawt.so
    fontconfig: needed for Java Mauve support - libmawt.so
    Required By : languagetool rhino
    Conflicts With : java-runtime openjdk6
    Replaces : None
    Installed Size : 107421.00 KiB
    Packager : Andreas Radke <[email protected]>
    Architecture : x86_64
    Build Date : Wed Feb 15 06:36:20 2012
    Install Date : Thu Mar 1 14:06:19 2012
    Install Reason : Installed as a dependency for another package
    Install Script : Yes
    Description : Free Java environment based on OpenJDK 7.0 with IcedTea7 replacing binary plugs - Minimal Java runtime - needed for executing non GUI Java programs
    There could be something I don't understand though. Any help is appreciated.
    Last edited by Coward (2012-03-08 00:30:57)

    mira wrote:
    Karol's advice did not worked for me, so I did this:
    pacman -Rdd jre7-openjdk-headless
    and after that this:
    pacman -S jre7-openjdk
    and then the update worked as it should. Hope that helps somebody.
    Not sure what was the issue in your case, but I did say "Try to ignore the conflicts and see if it works out." and by that I meant the '-dd' switch.
    Now I see I should have been explicit about it as my comment doesn't make it clear at all.

  • Error 1324 / Installing Java Runtime

    I am trying to install the latest version of Java Runtime Environment on my computer with Windows 2000 and it will not install. An error:1324 The path Documents and Settings has an invalid character and it will not let me install Java. Any suggestions that may help me get through this.
    Thanks!

    Set JRE parameter less then 3/4 of actual physical memory present in the system.
    For example, 512 MB if RAM is 1024 MB.
    See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6433218
    By the way, do you have Quick time installed on your machine ?
    Message was edited by:
    java_2006

Maybe you are looking for