Java version on different users

Hi,
OS:red hat 4.2
apps 11.5.10
Here we installed java *1.5, 1.4*
In applydev user,
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
. /ydev/u01/oracle/ydevappl/APPSORA.env
export PWR_TOP=/ydev/u01/oracle/ydevappl/pwr/11.5.0
OC4J_TOP=$PWR_TOP/oc4j
export OC4J_TOP
export LD_ASSUME_KERNEL=2.4.19
export PATH
unset USERNAME
[applydev@server2 ~]$
If we executed java -version
[applydev@server2 ~]$ java -version
java version "1.5.0_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
Java HotSpot(TM) Server VM (build 1.5.0_15-b04, mixed mode)
if we executed only java ,we got the following output
[applydev@server2 ~]$ java
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is server,
because you are running on a server-class machine.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
[applydev@server2 ~]$
In another user abuabucker
bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
#. /ydev/u01/oracle/ydevappl/APPSORA.env
export PWR_TOP=/ydev/u01/oracle/ydevappl/pwr/11.5.0
OC4J_TOP=$PWR_TOP/oc4j
export OC4J_TOP
export JAVA_TOP=/usr/java/j2sdk1.4.2_04
export PATH
unset USERNAME
if we executed java -version
[abubucker@server2 ~]$ java -version
java version "1.4.2"
gcj (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
if we executed java only
we got the following output
[abubucker@server2 ~]$ java
Usage: gij [OPTION] ... CLASS [ARGS] ...
to invoke CLASS.main, or
gij -jar [OPTION] ... JARFILE [ARGS] ...
to execute a jar file
Try `gij --help' for more information.
where options include: this one is missing at abuabucker user.
so develop able to compile the program properly.
how to resolve that

Hi,
thanks for reply.if we remove the comment,java version is j2sdk1.5.
but developer needs 1.4..
we set the JAVA_HOME=/usr/java/j2sdk1.4.2_04
i executed the followings
why we don't get */usr/java/j2sdk1.4.2_04* when we iisued which java and whereis java
how to do that
[abubucker@server2 ~]$ java
Usage: gij [OPTION] ... CLASS [ARGS] ...
to invoke CLASS.main, or
gij -jar [OPTION] ... JARFILE [ARGS] ...
to execute a jar file
Try `gij --help' for more information.
[abubucker@server2 ~]$ which java
/usr/bin/java
[abubucker@server2 ~]$ whereis java
java: /usr/bin/java /etc/java /usr/lib/java /usr/share/java
[abubucker@server2 ~]$

Similar Messages

  • Java Version BI 4.1 SP1

    Hello,
    The last couple of weeks we have experienced quiet a lot of error messages that seems to relate to Java versions installed on users computers.
    Examples:
    What we have told our users is to upgrade or downgrade the Java to 7.45.
    My question is, does anyone know of a patch that makes Business Objects work more smoothly with new Java versions (7.25 and newer)
    Or is there any other way to make it a bit more stable?
    Many thanks

    There were know issues with Java 7 update - 45, however these were fixed with 7 update 45 +.
    We have update 51 and do not find any issues to occur.
    A way of getting this corrected would be that the reports load the Java binaries existing in the BO installation.
    You can try with un-installing Java in client boxes and let them retrieve the same from BO installation. This would be a one time activty and hence help in removing all such errors / messages.

  • How to Launch an Integration Builder under two different java versions

    How to Launch an Integration Builder under two different java versions     1
    1. Situation     2
    2. How To Do     2
    2.1 jre preparation     2
    2.2 Put them into the system     2
    2.3 Execute a Java Web Start under jre 1.4.x version     3
    2.4 Change Java Runtime Versions     3
    2.5 Launch an Integration Builder     6
    1. Situation
    OS: windows 2000 pro – English
    Java version: jdk 1.5.x was already installed. (It’s not permitted to change.)
    I don’t have any authorization to install any software on the PC.
    But I need to use an Integration Builder.
    I already knew URLs of an Integration Builder (http://<hostname>:50000/rep/start/repository.jnlp).
    2. How To Do
    At this moment, an Integration Builder (XI 3.0) can be launch under jre 1.4.x environment (on windows).
    2.1 jre preparation
    I download j2re-1_4_2_10-windows-i586-p.exe from http://java.sun.com/j2se/1.4.2/download.html
    I installed it on my home PC and copied all files from C:\Program Files\Java\ j2re1.4.2_10\ into my USB.
    2.2 Put them into the system
    I pasted j2re1.4.2_10 folder from my USB into the windows 2000 pro system.
    Finally, I could list up all of javaws.exe under this system.
    c:\j2re1.4.2_10\javaws\javaws.exe
    c:\Program Files\Java\jdk1.5.0_05\bin\javaws.exe
    c:\Program Files\Java\jdk1.5.0_05\jre\bin\javaws.exe
    c:\Program Files\Java\jre1.5.0_05\bin\javaws.exe
    2.3 Execute a Java Web Start under jre 1.4.x version
    I executed c:\j2re1.4.2_10\javaws\javaws.exe .
    2.4 Change Java Runtime Versions
    Go to File-> Preferences -> Java
    As you can see, it indicates 1.5 version.
    Click [FIND] button.
    Click [NEXT] button.
    Click the j2re1.4.2_10 folder.
    Click [NEXT] button.
    A JRE Finder is able to find javaw.exe automatically. Or you can indicate C:\j2re1.4.2_10\bin\javaw.exe directly.
    Click [NEXT] button.
    Finally, there are two Java Runtime Versions. Now you need to uncheck the Enabled column of 1.5 version and check 1.4 version.
    Click [OK] button.
    Well, in the General tab, I selected None for Proxies.
    2.5 Launch an Integration Builder
    In the Location field, I typed the URL of an Integration Builder jnlp.
    http://<hostname>:50000/rep/start/repository.jnlp
    SAP Integration Builder comes up inside Applications area.
    Select it and click [Start] button.
    If you click Environment-> Integration Builder (Configuration), you can launch Integration Builder: Configuration.
    [PDF file location] with screenshots
    http://SDN.mobilian.org/SDN/How2LaunchIB.rar
    ===================Advertisement==========================
    How do you search SDN?
    What about [<b>SDN Search Widget</b>]?
    SDN Search Widget
    =========================================================

    I am not getting anywhere with deploying my application or
    applet.
    I have set up my bc4j project. It contains all my VO info,
    links, application module. (proj a)
    I then have another project with DbInfo in it(has all my rowset
    info), Multiple Frames, and my Applet.java file.
    Actually I have an Applet.java file and a Application.java file
    because I was seeing if both/either worked. Anyway they seem the
    same, except for that extra window that comes up when you run the
    applet.
    I follow the steps in the oracle directions (from earlier post).
    And all seems ok. But at ---->
    [*] Select the subdirectory under myhtml where your applet's HTML
    file
    is located, and enter the directory path of the 'staging'
    directory you
    created in step 3 above, if different from the default.</li>
    [*]Select the HTML files that JDeveloper created to run your
    applet.</li>
    [*]Select all of the Java source files in your project that make
    up the
    applet.</li>
    I have no HTML file associated with my applet, at least that I
    know of.
    So do I need to create one, or should it of been done
    automatically.
    Also, I trying to figure out what will be the best way to deploy
    my project. Applet or stand alone application is what my first
    choices have been so far. I have read that there is some issues
    with applets being served from a different server than the
    database. So a stand alone application was my front runner, but
    I haven't gotten either way to work yet.

  • Although Java versions are the same with the others, for some users

    Dear all,
    Although Java versions are the same with the others,
    project structure graphical view doesn't work for some user machine configuration.
    What is the reason for that? what is the best configuration? ie version?
    regards

    Hi,
    for SAP PPM 5.0, please see SAP Note 1402912.
    Kind regards,
       Florian

  • Use different java versions to start weblogic and run application.

    Hi All,
    I'm currently using weblogic707 which need java 1.4.1 to start up. However, i have this application that run only on java version 1.3.1. Is there any possibility to configure the weblogic to run my application on different java version?
    Thanks.
    wls

    Hi HMLunger,
    Did you install the SQL Server instance successfully? If not, please help to post the summary and detail logs for analysis. By default, the logs can be found in: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log.
    However, if you fail to start SQL Server Express service after successfully installing SQL Server,
    you might have to change the paths of the files by running the following scripts from the command prompt. For more details, please review this similar
    thread.
    NET START MSSQL$SQLEXPRESS /f /T3608
    SQLCMD -S .\SQLEXPRESS
    ALTER DATABASE model MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    ALTER DATABASE model MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    go
    exit;
    ALTER DATABASE msdb MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    ALTER DATABASE msdb MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    NET STOP MSSQL$SQLEXPRESS
    In addition, you can follow the steps in this KB article to uninstall SQL Server.
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • I have a java code that expires user sessions after 30 min.But the session does not expire in Firefox version 4 where as it expires in all previous versions

    I have a java code that expires user sessions after 30 min.But the session does not expire in Firefox version 4 where as it expires in all previous versions

    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Access two EAS with different Essbase versions and different java versions from the same p.c.

    Hi,
    I need to regularly access Essbase 11.1.2.2. and Essbase 11.1.2.3 EAS from the same client machine.
    They are on, and must be on, different versions of java, is there a way to have both versions of java installed but each using the correct version and without the two java versions causing any kind of problems?
    thanks,
    Robert.

    Hi Robert...  I assume this is web-launched?
    I spent a day or so trying understand the intricacies of the JNLP protocol and create shortcuts that will invoke web-launched EAS with the appropriate version of Java.  I can get one version of EAS to use the 1.6 Java Web Launcher, and the other version of EAS to use the 1.7 Java Web Launcher - but both Web Launchers eventually invoke the same version of Java!  There are switches in the JNLP syntax that seem like they should allow you choose the actual Java version that gets invoked, but I just could not make it work.
    You can use the Java Control Panel (in Control Panel) to enable and disable the relevant versions before launching EAS.
    If you find otherwise I would love to know (or if you find out how to control which versions are enabled or disabled via command-line script).

  • Different Java versions on IE6

    Hello,
    We have a Windows server 2000 with Internet Explorer 6 SP1, and different aplications that need a specific version of JRE, exactly 1.4, 1.5 and 1.6.
    The problem is we do not know if it will work on the same server, or how to change the java version to use it with each application.
    I had thought to make different shortcuts to the IE, and somehow indicate at the launch which version to use, but I think it is not possible.
    I had investigate the navigator and there is no option to change the java version or something.
    What can I do?
    Thank you.

    The culprit is definitely the Java JRE as stated above, Oracle 11.5 I believe is designed to run with 1.5.0_16 or at least that what has been forced on our installation.
    From what I can tell, the export call when run with an invalid JRE does not fire properly and Oracle gets an unknown response so therefore defaults you back to the login screen.
    We had this issue and removed all versions of java (1.6.0_16 was the culprit in our case) and every returned to normal.
    You will also need to make sure you have "Automatically prompt for file download" and "File download" enabled in IE (assuming you use IE) for the zone in which your Oracle install resides or you will see popup-blocker symptoms as well.
    Hope this helps.

  • Different Java version at one maschine

    Hello experts.
    I need to test SW with differnt java-versions (1.1.8-1.4). So I will install all version I need. But now the question: how can I easily
    switch between the versions? How can I verify that the desired version
    is in use (is java -fullversion the only check)?
    Thanx in advance
    Henry

    Assuming you are using Windows, just create a batch file for each version. e.g.:
    usejava1.2.bat
    @Echo Off
    set path=c:\jdk1.2.2\bin;%PATH%
    set java_home=c:\jdk1.2.2
    java -versionJust replace c:\jdk1.2.2 with the path to your java install, then at the command prompt type usejava1.2 to switch to the relevant version within the current DOS session.
    Its probably very simple to do something similar on Unix.

  • How to check Java Version while showing applet in browser?

    Hello All,
    We have an application which has client and server mechanism.
    Our application can be accessed by any internet browser on any machine of the network but there is only one server in the network.
    One of the functionality in the application is described below.
    We do have one link in our application webpage. When user clicks on that link, the request goes to the server component which is running on different machine. Now server process the request and in responce we do show some images in applet window at the customer webpage.
    Now problem is, when the client machine browser has some lower version of Java, we are not able to show the image but only shows a blank page.
    What we want to do is to show some specific warning message when we find that the Java version at client machine is lower than required.
    Can anybody please let me know how can I achieve this?
    Thanks in Advance,
    Jenish

    Sun's latest versioning solution for applets and JWS apps. is [deployJava.js|http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html]. I also offer the [Java Version Checker Applet|http://pscode.org/jre.html] as an alternate way of ensuring a minimum major version of the JRE.

  • How to access Sharepoint List using a Different user. Access SharePoint List using some Authentication

    Hi,
    SharePoint version 2010
    I am building an application in Java and would want to accesss a SharePoint List through REST. I have been trying to find out how the authentication process would work once i want to deploy it into Production. 
    I am not able to find anything useful to send user detail / authentication. Can you please help me out here.
    Thanks,
    Bhaskar.
    Thanks, Bhaskar

    Hi,
    According to your post, my understanding is that you want to access SharePoint list from Java application through REST.
     In some cases you may need to create a new access token (this is somewhat akin to "running as a different user").
    Essentially, you are using a different user's security context. Typically, you would create an Active Directory account specifically for this purpose and then grant appropriate rights to the user account in SharePoint.
    http://sharepoint.stackexchange.com/questions/83440/authenticate-external-systems-against-sharepoint-rest-services
    There are some articles about this topic, you can have a look at them.
    http://stackoverflow.com/questions/10722215/authenticating-to-sharepoint-with-kerberos-from-a-java-httpclient
    http://ctp-ms.blogspot.com/2012/12/interoperability-between-java-and.html
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Sun Java Plug-in - Java Version

    Hi. We are using the Sun Java Plug-in configuration and I've noticed that when first-time user click on my URL that Forms is requiring that they download Java v. 1.4. How is this controlled? What if I want user to be using a different version like v. 1.6? Can I control this?
    Also, how is Forms finding that v. 1.4 is installed on my user's computers after they complete the installation of v. 1.4? From DOS, if I issue the 'java -version' command it still returns their previous version?
    Thanks in advance.

    Sun's plug-in is the future. Oracle made JInitiator because at the time we needed to release Forms for the web, Sun's plugin was not up to par. It now is very much so. There are two major versions after 1.4 so you should look into using 1.6 of the plug-in.
    JInitiator is not going to be supported with upcoming Forms v11. You will need to go to Sun's plug-in if you upgrade. Version 10.1.2 will be supported for 18 months after 11 comes out so you need to upgrade the Java plug-in within roughly 2 years anyway. The upgrade from Client/Server can be somewhat time consuming if you have client/server only functionality (see the Forms Upgrade Center for resources: http://www.oracle.com/technology/products/forms/htdocs/upgrade/index.html). The upgrade from 10.1.2 to 11 should just entail a recompile of the FMB filies.

  • EA2: grants on sequences from a different user not saved

    Hi,
    I am using the Data Modeler Early Adopter 2, build 653 on Mac OS X 10.6.4, java version "1.6.0_22".
    I have an 11g Physical Model in my relational model. I added some permissions to a user in this physical model. Iadded SELECT, INSERT, UPDATE on some tables owned by a different user. this worked fine and was saved locally and to subversion.
    But when I added SELECT grants on the sequences owned by another user, these changes were not saved locally hence not to subversion either. This same issue was reproducible on a Linux version (also build 653) of the Modeler. Anybody else encountered this ?
    Question to the developers of this product: if this is a bug should I log it somewhere as an enhancement request ?
    thanks, Arjan

    Hi Arjan,
    yes this is a bug. Fix will be include in next release.
    Philip

  • Problem updating to iphoto 9.6 after upgrading to Yoesmite  I am getting the following message when I try top date iPhoto This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or canc

    problem updating to iphoto 9.6 after upgrading to Yoesmite  I am getting the following message when I try top date iPhoto This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or canc

    "This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled." ?
    This error message will appear erraneously, if you skipped the update to Mavericks and iPhoto 9.5.1 and went straight from an earlier MacOS X version to Yosemite, without first updating to iPhoto 9.5.1 and associating iPhoto to your AppleID.
    Try first to buy iPhoto with your AppleID instead of updating. Delete iPhoto from Applications, but don't empty the Trash, then go to the main page of the App Store and search for iPhoto. If you are lucky, it will show as free and you can buy it directly.
    If iPhoto  is not showing as free, there is no help but contacting the App Store Support: Ask for a redemption code. You will need to provide a prove of purchase for your mac with iPhoto preinstalled.
    http://www.apple.com/support/mac/app-store/contact/

  • Firefox Flash plugin crashes when FF launched with "Run as different user"

    I often start Firefox in Windows 7 (x64) using the "Run as different user" mechanism. After upgrading my Flash plugin to v11 (11.8.800.94), the browser will hang for several minutes when visiting any page that contains Flash content. When Firefox becomes responsive again, scrolling a page with Flash content will cause the app to hang again. Disabling the Flash plugin eliminates the problem.
    It seems the plugin is silently crashing -- I'm not alerted to a plugin crash in any way (no dialog or yellow "Flash player crashed" notice at the top of the window), but after FF hangs I will see a new crash report entry in the FF about:crashes list. An example crash report is available at https://crash-stats.mozilla.com/report/index/ff452291-b5b2-44e4-a172-416792130818
    The plugin does not crash when Firefox is running under the same account that is logged onto Windows interactively -- only when running FF as a different user. For example, if I log onto Windows with user account Adam and launch FF normally, the problem does not exist. If I close FF and launch it as user Bob (shift+right-click Firefox Shortcut, choose "Run as different user"), the problem will appear. However, if I log into Windows as user Bob and launch FF normally, the problem does not exist.
    I have tried the following as troubleshooting steps, all to no effect:
    Create new Windows user accounts to rule out potential Windows or Firefox profile issues.
    Use another PC (also Windows 7 x64). The same behavior occurs on both PCs
    Disable AVG antivirus.
    Upgrade Firefox to latest version (23.0.1).
    Disable Flash hardware acceleration.
    Give both user accounts full local admin privileges.
    Can anyone suggest something to try next?
    Update: Per the troubleshooting instructions at < http://forums.adobe.com/thread/1018071?tstart=0 >, I was able to eliminate the problem by adding the line
    ProtectedMode=0
    to my C:\Windows\SysWOW64\Macromed\Flash\mms.cfg file to disable Flash Player Protected Mode. There are instructions on that page for submitting a Protected Mode-related bug, and I will follow through with that.

    Maybe you did't understand my previous statement. There are no crashes in FF 3.6, There is no previous evidence FF 14 was ever here, I completely uninstalled all trace of Firefox, no app data, no preferences, no cache. I will upgrade to FF14 so I can send IDs,
    so here ya go.
    Crash ID: bp-fa9da320-92dc-47f7-afff-33e702120718
    AdapterDeviceID: 0x2a02
    AdapterVendorID: 0x8086
    Add-ons: {972ce4c6-7e08-4474-a285-3208198ce6fd}:14.0.1
    BuildID: 20120713134347
    CrashTime: 1342655269
    EMCheckCompatibility: true
    Email: [email protected]
    FramePoisonBase: 7ffffffff0dea000
    FramePoisonSize: 4096
    InstallTime: 1342655256
    Notes: AdapterVendorID: 0x8086, AdapterDeviceID: 0x2a02GL Context? GL Context+ GL Layers? GL Layers+
    ProductID: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
    ProductName: Firefox
    ReleaseChannel: release
    StartupTime: 1342655256
    Theme: classic/1.0
    Throttleable: 1
    URL: http://www.mozilla.org/en-US/firefox/14.0.1/whatsnew/?oldversion=rv:1.9.2.13
    Vendor: Mozilla
    Version: 14.0.1
    This report also contains technical information about the state of the application when it crashed.

Maybe you are looking for

  • Vendor Bank details in vendor master data

    Hi There are two tabs in vendor master data: 1. Payment Transaction tab 2. Payment Transaction accounting tab. Now i have 100 different vendors with all vendors having account in 20-25 banks. Even if the bank is same, these vendors have account in di

  • HT5766 Where can I find the size of a download for a software update now?

    Hello, Where can I find the size of a download for a software update now? Since I upgraded to Mountain Lion (Mac OSX 10.8.3) this information is no longer available in software updates listing you get if you click on the Software Update menu item fro

  • How to set SMB and FTP sharing for different users?

    In Tiger FTP and SMB sharing was different options with their own settings each other. In Leopard there if i enable user for sharing, it enables for all protocols together. Another problem. In file sharing i can add shared folder, but what's sens of

  • Reuse of Map.Entry

    Hi, I'm writing some Map implementations and warppers and i have specific question. Is Map.Entry reusable after calling next iterator.next(). Questionable code. Is this valid. Map.Entry first = null; for( Iterator i = myMap.entrySet().iterator()) {  

  • Chart drilldown to chart

    Hi everyone. I am developing some kind of SLA reporting system using the HTMLDB but now I am facing a problem; What I want to do, is to drilldown from one chart to another chart (so not to a report as in the how-to) Has anyone experience with this? A