Java Path in XP

Having problem with executing java compiled program. If I copy anc compile the source in Java directory, I can execute it, but from source directory I can not. I realized it is the Path, so I added java directory to the path, and now it compiles, but does not execute. Following is the log of my activities. I appreciate help with this issue.
At the buttom of this log, it shows the current path.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\MaxMonakes\MaxJava>javac TipAdder.java
C:\MaxMonakes\MaxJava>java TipAdder
Exception in thread "main" java.lang.UnsupportedClassVersionError: TipAdder (Uns
upported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
C:\MaxMonakes\MaxJava>path
PATH=C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\
Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\
Program Files\Common Files\Adaptec Shared\System;C:\Program Files\Schlumberger\S
mart Cards and Terminals\Cyberflex Access Kits\v4\;C:\PROGRA~1\CA\SHARED~1\SCANE
N~1;C:\PROGRA~1\CA\ETRUST~1;C:\Program Files\Java\jdk1.5.0_06\bin
C:\MaxMonakes\MaxJava>

You probably have an older version of java.exe somewhere in the Path, I would guess in the oracle directory. The error is saying that the java.exe you are running is not compatible with the compiled code. I suggest moving "C:\Program Files\Java\jdk1.5.0_06\bin" to the start of the Path (and you may need to put "" around the path).

Similar Messages

  • How to get tomcat installtion path, java path n documents path in a servlet

    may someone help me get the folder and pathname for tomcat, java path and library path and also the pathname where the jsp documents are stored.
    Thanks in advance
    null

    Have a look at System.getEnv(String) and System.getProperties();
    String tomcatHome = System.getEnv("CATALINA_HOME");
    Properties props = System.getProperties();
              Enumeration<Object> keys =  props.keys();
              while(keys.hasMoreElements())
                   String key = (String) keys.nextElement();
                   String prop = System.getProperty(key);
                   System.out.println(key +" : " + prop);
              }

  • Java path error

    hi gurus
    i am facing a problem while installing SAP IDES on my desktop(windows XP) but am facing the problem in JAVA PATH settings.
    can anyobdy please tell me the step by step JAVA path settings to resolve my probem?
    thanks in advance..

    go to Run
    type - > regedit
    in u r registry
    select
    HKEY_LOCAL_MACHINE
    SOFTWARE
    JAVASOFT
    JAVARUNTIME ENVIRONMENT
    JAVA 1.4.2_12
    on the right side you will find path for Java_home
    copy the same
    go to mycomputer properties advanced environment variables create one entry
    JAVA_HOME
    <the copied text eg. C:\Program Files\Java\j2re1.4.2_13>
    now go to cmd
    type java
    it should work
    Please provide points if helpful
    Regards
    Balamurugan.P

  • Oracle Universal Installer cannot be run... getting this error due to Java path. Pleath help.

    Hi Experts,
    Trying to Deinstall the OBIEE 11g. OUI is not launching... after digging the issue find out that "Java RunTime Environment was not found".
    But Java software is available at the specified path.
    "C:\DOCUME~1\user\LOCALS~1\Temp\OraInstall2013-09-05_01-10-08PM\jre\bin\javaw.exe"
    Can you please help me on this... The complete error is...
    Oracle Universal Installer
    The Java RunTime Environment was not found at C:\DOCUME~1\v859971\LOCALS~1\Temp\OraInstall2013-09-05_01-10-08PM\jre\bin\javaw.exe. Hence, the Oracle Universal Installer cannot be run.
    Please visit http://www.javasoft.com and install JRE version 1.3.1 or higher and try again.
    OK  
    Arjun

    Hi Srini,
    I have tried as you mentioned like installing Java in C:\Java... and I have tried the by setting the JRE_LOCATION of local path. No use of it.
    tried with -jreloc and setting the java path in environment variables too.
    As I understand, the problem i have seen at files copied path is not expected as required. Please see the path below...
    C:\DOCUME~1\v859971\LOCALS~1\Temp\OraInstall2013-09-06_03-36-31PM\jre\bin\javaw.exe.
    After running the Setup.exe -deinstall... temporary folder is creating with timestamp and all the required files are coping here...
    "jre" folder also created and copied required java files directly into jre folder, but not in jre\bin folder.
    folder path is like this
    C:\DOCUME~1\v859971\LOCALS~1\Temp\OraInstall2013-09-06_03-36-31PM\jre\javaw.exe.
    Setup application is expecting jre\bin\javaw.exe, but folder structure is created as jre\javaw.exe. There it is coming the issue.
    I have even tried with copying all the files into bin folder and executed the setup.exe, it again creating a new temporary file
    not able to resolve it...

  • Simple question about JAVA path

    Hi. I have a simple question , but I spent several hours trying to find an answer.
    How do I know the location of the java executable which is used by Concurrent Manager.
    I already know that running which java under application user will not give me the correct answer

    Maybe you can try like this:
         public String getPath(){
              Class cls=getClass();
              String className=cls.getName();
              String packageName=cls.getPackage().getName();
              System.out.println(className);
              System.out.println(packageName);
              String newClassName=className.replaceAll("\\.", "/");
              String resouceName=newClassName+".class";
              System.out.println(resouceName);
              URL url;
              url=cls.getClassLoader().getResource(resouceName);
              String path="";
              path=url.getFile();
              return path;
         }

  • No muxer in lib.java.path

    Hello,
    I keep getting this error when starting my weblogic server.
    ####<Nov 30, 2001 5:25:49 PM CST> <Notice> <WebLogicServer>
    <bobbys-linux> <myserver> <main> <system> <> <000327> <Starting WebLogic
    Admin Server "myserver" for domain "BobbysLinux">
    ####<Nov 30, 2001 5:25:56 PM CST> <Notice> <Management> <bobbys-linux>
    <myserver> <main> <system> <> <141030> <Starting discovery of Managed
    Server... This feature is on by default, you may turn this off by
    passing -Dweblogic.management.discover=false>
    ####<Nov 30, 2001 5:26:11 PM CST> <Notice> <Management> <bobbys-linux>
    <myserver> <main> <system> <> <141052> <Application Poller started for
    development server.>
    ####<Nov 30, 2001 5:26:11 PM CST> <Notice> <WebLogicServer>
    <bobbys-linux> <myserver> <ListenThread> <system> <> <000201>
    <ListenThread listening on port 7101, ip address 199.82.227.127>
    ####<Nov 30, 2001 5:26:11 PM CST> <Error> <Performance Pack>
    <bobbys-linux> <myserver> <ListenThread> <system> <> <000000> <Unable to
    load performance pack, using Java I/O.>
    java.lang.UnsatisfiedLinkError: no muxer in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
    at java.lang.Runtime.loadLibrary0(Runtime.java:749)
    at java.lang.System.loadLibrary(System.java:820)
    at
    weblogic.socket.PosixSocketMuxer.<init>(PosixSocketMuxer.java:90)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at
    weblogic.socket.SocketMuxer.makeTheMuxer(SocketMuxer.java:128)
    at weblogic.socket.SocketMuxer.getMuxer(SocketMuxer.java:83)
    at weblogic.t3.srvr.ListenThread.run(ListenThread.java:232)
    I'm running RedHat Linux 7.1 and WebLogic 6.1.
    Any ideas what might be causing this?
    Thanks,
    Bobby Nations
    Sr. Programmer / Analyst
    FedEx Services
    20 FedEx Parkway
    Collierville, TN 38017
    (901) 263-6517

    Naveen,
    I added the directory containing libmuxer.so to my LD_LIBRARY_PATH, and
    the error disappeared. Thanks for the tip!
    Bobby
    Naveen ([email protected]) wrote:
    Hi,
    Make sure that the file "libmuxer.so" exists in $WL_HOME/lib/linux directory
    and the directory is in the LD_LIBRARY_PATH.
    Thanks,
    -- Naveen
    "Bobby Nations" <[email protected]> wrote in message
    news:[email protected]...
    Hello,
    I keep getting this error when starting my weblogic server.
    ####<Nov 30, 2001 5:25:49 PM CST> <Notice> <WebLogicServer>
    <bobbys-linux> <myserver> <main> <system> <> <000327> <Starting WebLogic
    Admin Server "myserver" for domain "BobbysLinux">
    ####<Nov 30, 2001 5:25:56 PM CST> <Notice> <Management> <bobbys-linux>
    <myserver> <main> <system> <> <141030> <Starting discovery of Managed
    Server... This feature is on by default, you may turn this off by
    passing -Dweblogic.management.discover=false>
    ####<Nov 30, 2001 5:26:11 PM CST> <Notice> <Management> <bobbys-linux>
    <myserver> <main> <system> <> <141052> <Application Poller started for
    development server.>
    ####<Nov 30, 2001 5:26:11 PM CST> <Notice> <WebLogicServer>
    <bobbys-linux> <myserver> <ListenThread> <system> <> <000201>
    <ListenThread listening on port 7101, ip address 199.82.227.127>
    ####<Nov 30, 2001 5:26:11 PM CST> <Error> <Performance Pack>
    <bobbys-linux> <myserver> <ListenThread> <system> <> <000000> <Unable to
    load performance pack, using Java I/O.>
    java.lang.UnsatisfiedLinkError: no muxer in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
    at java.lang.Runtime.loadLibrary0(Runtime.java:749)
    at java.lang.System.loadLibrary(System.java:820)
    at
    weblogic.socket.PosixSocketMuxer.<init>(PosixSocketMuxer.java:90)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at
    weblogic.socket.SocketMuxer.makeTheMuxer(SocketMuxer.java:128)
    at weblogic.socket.SocketMuxer.getMuxer(SocketMuxer.java:83)
    at weblogic.t3.srvr.ListenThread.run(ListenThread.java:232)
    I'm running RedHat Linux 7.1 and WebLogic 6.1.
    Any ideas what might be causing this?
    Thanks,
    Bobby Nations
    Sr. Programmer / Analyst
    FedEx Services
    20 FedEx Parkway
    Collierville, TN 38017
    (901) 263-6517

  • Getting the "Java path" defined in a Java JRE installation

    Hallo!
    I have already tried to get some help with this issue but am still unable to get the JRE operational.
    What have I undertaken:
    1. Uninstalled all previous platform modules
    2. Removed all traces of previous plugins and registry entries
    3. Re-installed latest level of Java JRE
    When I now try to use the cmd.exe and input "java -version" the error message I get is that Java is unknown.
    When I try to install the application for which I needed JRE, the installation hangs up with "Java not fully installed".
    Is there any documentation which fully describes the process in steps an untrained user can understand?
    Better still is there a tool which can monitor or test the installation to indicate where I may have gone adrift?
    Any useful tips are welcome.
    Kind regards, forkinpm.

    hi,
    Check the classpath and path settings of envoirnement variables. may be u havent changed them. The java-version command searches the java from there only.
    manik;

  • Need help setting java paths?

    I have a number of java files set up like this:
    com.pogo.chess2.Applet, com.pogo.chess2.game.Applet, etc
    Now each class file uses the keyword: package followed with its associating directory, for example Applet.class would look like this:
    package com.pogo.chess2;
    import com.pogo.game.external.b;
    How do I create a new java project and properly set the path?
    Basically I have all of my java code in a folder called com, which has subdirectories with java files as well. What is a package? How do I set it up using a gui such as JCreator Le? Is there a way to drag the folder com to the project and all the files will load?
    Thanks in advance.

    For package, see
    http://java.sun.com/docs/books/tutorial/java/concepts/package.html
    The rest of your questions involve details of editor/IDE usage. None of them relate to Java. Read the information or Helps from the product you're using.

  • Freebsd Java path & classpath

    Hi everybody,
    I am new to the Freebsd env, and I am having trouble with compiling java code. Below is my system configurations. Note. I am able to compile and run the Hello World program., but when I import classes into my code I get "cannot resolve symbol".
    The path and classpath are setup in the .cshrc file as I am using the csh shell.
    %which java
    /usr/local/jdk1.4.2/bin/java
    %which javac
    /usr/local/jdk1.4.2/bin/javac
    %echo $CLASSPATH
    /usr/local/jdk1.4.2/lib/tools.jar:/usr/local/jdk1.4.2/lib/dt.jar:/usr/local/jdk1.4.2/jre/lib/rt.jar:
    %echo $PATH
    /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/local/jdk1.4.2/bin:/usr/X11R6/bin:/home/george/bin
    set JAVA_HOME=/usr/local/jdk1.4.2
    If anyone has any suggestions they are welcome. Thanks

    I am pretty clueless on Freebsd but you might need to add .: to your Classpath or may be try to use the -classpath option in your command line:javac -classpath some_directory your_class.java

  • Java path finding help

    Hello,
    I'm at present working on a route finding system for the london underground as a MIDP application in Java.
    I have a vector of vectors data structure to store the stations as nodes and lines as edges respectively but need a shorest path algorithm to search from one station to the next taking into account line changes.
    Dijkstra's algorithm seems to be the best solution but hard for me to implement.
    Any help on this would be most appreciated.
    Thaxs.
    ash

    I found Dijkstra's algorithm extremely easy to implement by a recursive routine. I found it easiest to work backwards (it simplifies setting the route direction).
    Each node holds a field from distance from the destination, set them all to infinity initially. The node also has a field for next node on the route.
    Then you have a method of the node which offers a route to a node. The arguments are the next node in the route and the resulting distance. The method does nothing if the route offered is longer than one it already has. Otherwise it sets the new length and route to the one on offer and offers itself to all neigbouring nodes.
    Then you just call it on the destination node with a distance of zero and a null route.
    Something like this;
    class Link {
          Station start;
           float length;
    class Station {
         Float distance;
         Link nextStep;
          ArrayList  incomingLinks;
        public void djikstra(float newDistance, Link route) {
              if(distance == null || distance.floatValue() > newDistance) {
                    distance = new Float(newDistance);
                    nextStep = route;
                    for(Iterator it = incomingLinks.iterator(); it.hasNext();) {
                        Link incoming = (Link)it.next();
                        incoming.start.djikstra(newDistance + incoming.length, incoming);
          }(This assumes that if a link is two-way two Links must be created).

  • Ocijdbc10 not in java path

    I'm new to JDBC.
    I'm creating a simple app that insert a clob into the 10g database. I am using the "jdbc:oracle:[email protected]:test" to create the db connection.
    When I run the application I get the error message:
    Exception in thread...Lang UnsatisfiedLinkError. no ocijdbc10 in java library path.
    Where is the ocijdb10 jar file located?
    Thanks

    Depending on your initial installation, you may need to download the JDBC drivers from http://otn.oracle.com (go to Downloads page, look for JDBC drivers, download the latest for the version of DB in question - 10g) and try that.

  • Java Path Resolution on Windows

    Today I was messing around with different Java versions and discovered that Java is a little more tightly integrated with Windows than I originally thought. Maybe it's just a JRE thing, and not a JDK thing. I don't know.
    I have both Java 5 and Java 6 installed, and was trying to back down to Java 5 for a moment (investigating a "cannot access <whatever>.class" compiler error). I updated all of my environment variables (Windows XP) to point to the Java 5 JDK folder. But it was still using Java 6 JRE. So I moved the Java 6 JRE folder to a super-secret-haha-you-can't-get-to-it-now location. This gave me the following error:
    Error: could not open 'C:\Program Files\Java\jre6\lib\i386\jvm.cfg'
    Doesn't matter that all of my environment variables point to the Java 5 JDK, somehow invoking java from anywhere other than the Java 5 JDK bin folder causes some other handler to try and look up configuration from the JRE 6 folder that no longer exists.
    Can anyone shed some light as to what is handling the command line call to java without letting it defer to the Java 5 JDK referenced in the path?
    I guess I'll just see if I can uninstall the Java 6 JRE.

    Java.exe goes in \windows\system32. It is just a stub that refers to the correct JRE based on the registry HKLM\software\JavaSoft\Java Runtime Environment, which contains some keys pointing to Java 1.6.
    Therefore, I would try to add a path to the desired java.exe from the JRE directory BEFORE \windows\system32.

  • Setting java path in Linux

    Hi,
    I have installed Java 7 using rpm file: jdk-7u17-linux-x64.rpm, with the help of below command on my linux box:
    rpm -ivh jdk-7u17-linux-x64.rpm
    After completing the installation the java is installed in location "/usr/java/jdk1.7.0_17", when I try to find the jave version I am getting different result:
    java version "1.6.0_22"
    OpenJDK Runtime Environment (IcedTea6 1.10.4) (rhel-1.41.1.10.4.el6-x86_64)
    OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
    It is still pointing to 1.6 which was installed on my linux box earlier. How can I make sure that the java command uses the latest installed JDK 7?

    Hi.
    which java show what file select for this command.
    Environment variable PATH set order of path for find executable file.
    Try set:
    export PATH=/usr/java/jdk1.7.0_17/bin:$PATH
    export JAVA_HOME=/usr/java/jdk1.7.0_17
    add this commands to $HOME/.profile for make this changes permanent.
    Regards.

  • Java Path syntax

    I have not been able to find any documentation on what exactly I should give as a path argument to the io.File constructor.
    I've tried a bunch of differently formatted strings but they always end up on my main hard drive (no folders). the file name comes out as the full file path and is not shown as a midi file.
    I am on a mac, I dont know if that changes anything. the documentation makes it sound as if it'll interpret almost any path style...
    heres waiting till I can be as helpful as those on this list
    -matt
    !!EDIT. I should add that I'm a noob but I have searched on the forum, the web and the documentation.
    Example
         public void setpath(String inPath)
         try {
                       //rewriting inPath to cut down on troubleshooting.
              inPath = "Macintosh HD:/Applications/bogg";       
              myFile=new File(inPath);
              myFile.createNewFile();
              MidiSystem.write(mySeq,1,myFile);//mySeq instantiated elswhere.
         catch (Exception e)
              post("write failed\n");     //post is like printf for the environment I'm running java inside of.
              post(" " + e.toString() +"\n");
         }Message was edited by:
    Mat

    The File class API documentation from Sun explains how Java interprets path information that you provide, and what constitutes a fully-qualified (absolute) path vs. a relative path.
    Relative paths are extensions of the current user directory, which is established by Java.
    I suspect that the file-path\name conventions for Apple are going to be different than the documentation that you'll find here. I recommend that you refer to the same Apple documentation and use it to construct the path information.

  • Java path

    Hi,
    I am new to SAP.when i am instaling SAP IDES which path shall i select from CD for JAVA installation.
    plz urgent
    rgds
    Vinnu.

    Hello,
    I'm not sure what exactly you are doing, but what I'm getting is that you are trying to Install SAP server, but the instalation cant't procede, because you do not have JVM, is that right?
    If it is so you should:
    1.download JVM from www.sun.com
    2.start the setup.exe on your disk.
    If that is not what you are asking, please explain in more details.
    Best Regards,
    Elena

Maybe you are looking for

  • Folders are not visible in BEx Portfolio tab of Save As popup window

    Hi All, when I try to save a report in BEx Web Analyzer by open Save As popup window, I can't see any folders in neither of Favorites, BEx Portfolio nor My Portfolio tabs, even though I've created some directories in "/documents/Public Documents" for

  • Create layout for Team Site

    I created simple html file. I opened SPD 2013 and put this file into the All Files/_catalog/masterpage folder. I opened Design Manager and convert it to a SharePoint master page. Conversion was successful. In the Design Manager I clicked Edit Page La

  • Message Server connection in ABAP-Part failed

    Hi! I cannot start the J2EE-Part ofSAP Sokution Manager 4.0 system... I am getting the error message from CMD-console  "Message Server unrechable" and then "Running bur  not connected to Messager Server" and after this the disp+work.exe from J2EE-Par

  • Why backup controlfile to trace doesn't produce the trace file in udump?

    Hi there, I recently redirected some of the data files on different drives. I started nomount with pfile and created new controlfile with the new datafile locations. I was able to open db and saw the new location of the db files. But when I trace the

  • Serializable problem in Tomcat

    I have some serialized objects pass between applet and servlet it works fine for few months but it shows the following exception a day which I didn't change the code serialVersionUID = 7717056544730499359 is the id that I define in my program using t