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

Similar Messages

  • 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 ?

  • How to install java jdk and jrel offline ?

    I have java jdk and jrel installed; and developed and run a java application on my laptop#1 . I want to copy the java jdk, jrel, and the application onto my laptop#2 offline, how can I do it. I have no Window Installer on my laptop#2, and I cannot find Window Installer on my laptop#1. If I only want to run the java application but no development work on my laptop#2, do i need java jdk on it? Thanks for help.

    If you have Windows installed, you have the Windows Installer.
    Offline download/installation of either the JDK or the JRE contains a current version of the Windows installer.
    A JRE is required to run Java programs. A JDK is required to develop Java programs.

  • How to use different jdk on windows/unix/linux OS?

    Hi,
    I always use differen jdk/jre version. but always I delete first then I install jdk/jre which version I want. My question is how I change system jdk/jre setting don't uninstall jdk?

    If you have multiple monitors and run Linux, you may want to display different images as your wallpaper on each monitor. There's a utility for that – Nitrogen. The blackMORE Ops blog has a nice how-to on getting Nitrogen and configuring it, with step-by-step instructions and plenty of screenshots.
    This topic first appeared in the Spiceworks Community

  • How to use Java Mail API in Unix

    I am trying to write some code using Java mail API. I want to execute it in Unix. I downloaded the mail API to windows machine and ftped the mail.jar file to a Unix machine. Then I set the class path as below:
    export CLASSPATH=$CLASSPATH:/home.../mail.jar
    Then I tried to compile my Java program. The output is as below:
    error: error reading /home.../mail.jar; invalid END header (bad central directory offset)
    mail.java:1: package javax.mail does not exist
    import javax.mail.*;
    Can any one please help me out.

    You should also include the "activation.jar" file that you obtained from
    downloading the Java Activation Framework, in your CLASSPATH.
    For example:
    export CLASSPATH=$CLASSPATH:/urPath/activation/activation.jar
    Besides, assuming you unzipped javamail-1_4_1.zip in home/download the following should work
    export CLASSPATH=$CLASSPATH:home/download/javamail-1.4.1/mail.jar:.

  • How to download JAVA JDK 32 bit for Window?

    The latest Java SE 7 JDK and Java SE 6 JDK do not have 32 bit WIndow version. I see from other forum that installing 86bit will also do the trick but when I install Android development software, it doesn't identify Java SE JDK. Does anyone encounter the same problem too?

    880282 wrote:
    The latest Java SE 7 JDK and Java SE 6 JDK do not have 32 bit WIndow version. I see from other forum that installing 86bit will also do the trick but when I install Android development software, it doesn't identify Java SE JDK. Does anyone encounter the same problem too?You can download the 32-bit version for JDK 6/7 32-bit Windows from:
    Java SE Development Kit 7 Downloads
    http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html
    Java SE 6 Downloads
    http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html
    Thanks,
    Hussein

  • How to upgrade to Java JDK 1.7 on Ubuntu Unix Server 12?

    Well, I have just installed Ubuntu Server 12, and, I am trying to get Java JDK 1.7 to run within the unix box, so I took the easy way and it would seem like there is some variant named 'ice tea' which is based on 1.6. When finding (searching) within the file system a file named java exists within /usr/bin, and, this is the bundled version of java, which is not the latest. Is Ubuntu Server still unsupported by Oracle?
    Next I typed in sudo apt-get install jdk and sudo apt-get install java, however, no package is found. Does this mean that I have to install JDK by downloading it through the browser, or can Oracle make this available to apt-get users?
    Unfortunately, Oracle Virtual Box does not seem to have a way to copy and paste the contents of the screen, and it would be impractical to upload a whole snapshot when I just need to demonstrate a subset of what I typed in to my friends here at the forum.
    Edited by: Jon80 on Jul 13, 2012 10:36 AM

    Oracle doesn't need to support anything, other than delivering a Linux build of OpenJDK. How the plethora of different Linux flavors manage the software installation is basically up to the people that manage the distribution.
    And less than 10 seconds glancing at the front page of icedtea indicates that the more recent versions are based on OpenJDK 7. Installation instructions are also there. A quick google for "icedtea ubuntu server" provided me this:
    http://www.stchman.com/essen_pack.html

  • How to install jdk to SCO unix?

    I am a new developer in SCO unix ,can you tell me how to jdk to SCO unix?
    install which version of jdk and how to install,
    where can I down the file needed?

    As far as I know, Sun hasn't released a JDK for Unix. It's only available for Solaris, Linux, and Windows.
    IBM has realeased developer kits for some of their platforms (AIX, OS/390), but that's not going to help you much.
    There has been a lot of talk among open-source developers about Sun relasing the source code to Java. Such would enable ports of the SDK to other platforms (SCO, Mac...). This may only happen after IBM buys Sun (still a few years off '-) .

  • Cannot Install Java JDK on Windows 7 Home Premium

    Hello all, I'm sorry if this is the wrong place to post this question. I have an issue trying to install ANY JDK on Windows 7 Home Premium. When I run the install it throws an Error: 1722. I've tried looking around on Google but haven't found much. Has anyone else has this error?

    I tried to install the windows7 64-bit jdk on my windows7 64-bit computer with 2 browsers, chrome and firefox. There was no difference between browsers. Then, I repeatedly installed and uninstalled many, many times, trying to figure out what was wrong.
    After an easy install, I click on the jdk program to try to use it, and I get a pop-up saying something like, you have already installed this, do you want to install it again? That is all I get from the installed jdk program, there is nothing else the program will do, only give me that pop-up.
    I then read and studied all the online info from all the java websites. Their website info does not mention this problem. Then I did all the you tube videos that deal with this problem. After watching a you tube video, I clicked start, and typed in cmd, and then typed javac; the message I am given is that javac is not recognized as a command.
    Then, I tried to contact the java/oracle company many different ways, with chat and email, and got NO response; they are not addressing or responding to this situation in any way.
    Last night, I contacted my computer company, and after speaking with them, they are saying they will go into my computer and make the necessary software changes to the windows 7 so that the java jdk will be properly working. Sounds great, but - they want to charge me a lot of $$MONEY. I got two price quotes, $80 and $89. It is not free, which is frustrating. The java download is free, but I do I have to pay to get it properly installed on my computer? Can anyone provide wise advise? Is there any way I can get it properly installed for free?
    Also, someone mentioned that maybe my Norton Antivirus is preventing the proper jdk install, but I doubt it, since the norton antivirus has never before given me any problem.
    Please help. Thanks!

  • How to check the JDK version of a compiled java file

    can anybody tell me how to check the JDK version of a compiled java file ?
    Edited by: gbhatia8 on Sep 9, 2010 7:04 AM

    The major/minor version of the class file is the way to go.
    Also, it's not necessary to write a separate program to get to those. javap prints them out when being passed the -v flag.
    Note, however that "JDK version" is not a correct term, as I can create 1.4-compatible class files with a Java 6 JDK (by passing the -target flag to javac). Those won't look any different than .class files written with a 1.4 JDK.

  • How to run java application in Unix Box

    Hi,
    Would anybody show me how to run my server application in unix box?
    Thank you very much.
    Hung

    Your application should have a main class. Suppose it's called MyMain.class. I'll assume it's in the anonymous package. So you cd to the directory containing the class, and type java MyMainIf it's not in the default package, or is a jar file, say so.

  • How to execute Java.exe on MAC, LINUX, UNIX...

    okay, I know this is very stupid, but can anybody tell me how to run Java.exe on MAC, LINUX, UNIX?
    I know how to run it from windows, I have a batch file created in windows, will it work on MAC, LINUX and UNIX as well? (I'm not sure if on other OS, there is such a file type call *.bat)

    See what I mean about probably wanting a beginner's book on Unix and/or shell scripting?
    okay crackers, the only thing that I have to do is put
    in the name of my program into "your program here".Not necessarily. There's the ClassPath, program parameters, etc. What you need to put in the "your program here" depends upon your program. What I did was allow the script to be invoked with command-line parameters and you could (depending upon your program) put "-jar myjar.jar" in the indicated spot, if your JAR file was runnable.
    The rest no need to change. right?I don't know. What does your program need? Only you can answer that, not me. I just furnished an example.

  • Simple Java Command-Line on Unix Question

    From the windows shell, the following command works fine:
    java -classpath MyJar.jar;. Test
    The class Test, in the current director, depends on files in MyJar.jar. However, when I open up the cygwin bash shell and try to execute the same command, I get this error:
    bash: /usr/bin/Test: No such file or directory
    It appears it's looking for Test in /usr/bin as opposed to in the current directory. Why is this happening and how can I get this to work in bash?
    I know it's kind of unix question, but I figured some one here could help.
    TIA,
    John

    How can I use aboslute classpaths within bash. For
    example, what it the bash equivalent of the
    following:
    java -classpath C:/Java;C:/Java/MyJar.jar Testjava -classpath /the/path/to/your/Java:/the/path/to/your/MyJar.jar Test
    Normally you will be using things relative to your home directory so yo can use
    java -classpath ~ /the/relative-path/to/your/Java:~/the/relarive-path/to/your/MyJar.jar Test
    or
    java -classpath $HOME/the/relative-path/to/your/Java:$HOME/the/relative-path/to/your/MyJar.jar Test
    Please don't use these blindly. Spend some time (half a day say) looking at the bash shell!

  • How to specify more than 6 parameters in the URL or in the HTTP header?

    After applying SAP note 1105368 ,it will be availible to specify more than 6 parameters in the URL  header.
    But i haven't figured out  how to specify it yet.even though i went through the note carefully, but it really hard to understand.
    Is there someone who experienced to specify more than 6 parameters ?
    Inccording to the note,the parameter fileds look like should be
    specified like below.
    parameter1: <SAP:Record namespace="http://sap.com/xi/XI/System/HTTP" name="SAP_URL_EXTENSION">urlext</SAP:Record>
    parameter2:<SAP:Record namespace="http://sap.com/xi/XI/System/HTTP" name="urlext01">Order=4711</SAP:Record>
    parameter3:<SAP:Record namespace="http://sap.com/xi/XI/System/HTTP" name="urlext02">Object=1807</SAP:Record>
    but something about the format doesn't look right....

    Hi,
    I know we can set headers by using some tools. Neoload tool is used to set values into header.
    If Servlet after receiving the request you can set header values and send back with response.
    Check this
    http://www.unix.com.ua/orelly/java-ent/servlet/ch05_06.htm
    Thanks,
    RamuV

  • How to specify to add or to remove the inner_class itemlistener?

    If i have a class main and a inner class like:
    class main_class extends JApplet implements ItemListner {
    //code lines
    class inner_class extens JPanel implements ItemListner {
    //code lines
    //code lines
    jcombo_main_class.addItemListener(this); //i am adding
    // the main_class itemlistener
    jcombo_main_class.removeItemListener(this); //i am removing
    // the main_class itemlistener
    jcombo_inner_class.addItemListener(
    //here is my doubt i don't know how to specify
    //to add or to remove the inner_class itemlistener
    jcombo_inner_class.removeItemListener(
    //here is my doubt i don't know how to specify
    //to add or to remove the inner_class itemlistener
    How to specify to add or to remove the inner_class itemlistener?
    Thanks in advance....
    Mary

    Hi,
    I know we can set headers by using some tools. Neoload tool is used to set values into header.
    If Servlet after receiving the request you can set header values and send back with response.
    Check this
    http://www.unix.com.ua/orelly/java-ent/servlet/ch05_06.htm
    Thanks,
    RamuV

Maybe you are looking for