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;

Similar Messages

  • How to get the current path of my application in java ?

    how to get the current path of my application in java ?
    thanks

    To get the path where your application has been installed you have to do the following:
    have a class called "what_ever" in the folder.
    then you do a litte:
    String path=
    what_ever.class.getRessource("what_ever.class").toString()
    That get you a string like:
    file:/C:/Program Files/Cool_program/what_ever.class
    Then you process the result a little to remove anything you don't want:
    path=path.substring(path.indexOf('/')+1),path.lastIndexOf('/'))
    //Might be a little error here but you should find out //quickly if it's the case
    And here you go, you have a nice
    C:/Program Files/Cool_program
    which is the path to your application.
    Hooray

  • How to get the output path in Java?

    Hi all,
    is there a way (method) to get the output path (where compiled classes are put) in Java?
    thx a lot!
    Michele

    If you have already successfully loaded the classes into memory, and you want to find out where the classes are physically stored, then you can use Class.getResource() to retrieve the location of the file.
    import java.net.URL;
    public class Find
      private void run(String obj) {
        try {             
          Class cls = Class.forName(obj);
          //Here is the change to input correct resource path
          //instead of class name 
          String resourcePath = "/"+obj.replace('.','/')+".class";
          URL url = cls.getResource(resourcePath);
          System.out.println(url);
        catch (Exception e) {
          e.printStackTrace();
      public static void main(String[] args) {
        Find find = new Find();
        find.run(args[0]);   
    }java Find java.lang.String
    jar:file:/usr/local/j2sdk1.4.2_13/jre/lib/rt.jar!/java/lang/String.class
    Edited by: Jin on Oct 23, 2007 10:38 AM

  • How to get the java code of the message mapping

    how to get the java code of the message mapping,
    I mean to ask how to get the background java code of the message mapping(graphical mapping).
    And where to view it?

    Hi Satya,
    The JAVA code for graphical msg mapping is in below folder:
    \usr\sap\<SID>\<DVEBMGS10>\j2ee\cluster\server0\temp\classpath_resolver
    Here all the mapping jars are there in this folder.
    Just decompile these jars and you can see the code.
    Thanks,
    Rajeev Gupta
    Message was edited by:
            RAJEEV GUPTA

  • How can I get the Java EE 5 Compatibility Test Suite?

    How can I get the Java EE 5 Compatibility Test Suite?
    which department should I contact with in oracle company in china ?
    Who can tell me?
    thanks.

    The title of this forum is...
    Community Feedback and Suggestions (Do Not Post Product-Related Questions Here)
    And you thought this was the appropriate place to post this question ?:|

  • How can I get the java 2D java2D  tutorials�H

    How can I get the java 2D java2D tutorials which I dont need lookup it online?

    The download link for all the Java tutorial is here:
    http://java.sun.com/docs/books/tutorial/

  • How do i get the java applet to stop appearing on the dock?

    how do i get the java applet to stop appearing on the dock? it seems to do this for pop-up windows.  also, the text on the popup window is different, how can I change that to normal?   this all started when i loaded MAC OS X 10.6.8

    You could try to block popup windows.
    Safari / Preferences / Security
    Also, go to Safari / Preferences / Extensions and clean out everything there.

  • How  to get the java code of the standard functions

    How  to get the java code of the standard functions in xi
    Example , hoh get the java code for a node function - removeContext.

    hi
    Click on the Standard Function.
    Hold Ctrl+Shift
    right click on the standard function to view the context menu. You will see options to view the source code by exporting
    regards
    krishna

  • How do I get the java code from a class file ?

    I want to know how to findout the java code from a .class file . Is there any utility or any way to get the java code from a .class file. If so , please let me know the step by step procedure .
    Thanks
    Shiva

    Check out Mocha (http://www.brouhaha.com/~eric/computers/mocha.html)
    It's free!

  • Can I get the Java version of mobile tv with the r...

    I would like to know how to get the Java version of mobile tv with the removed mobile tv application, so I can view the Sky EPG programme guide on my E90.
    Can anyone tell me how I can get it please. The version from sky will not work but reading other posts on here suggests that the java version might.
    Please help.
    Solved!
    Go to Solution.

    Sky have made it near impossible to get this application on current phones.
    Luckily for you the java version is available for download as part of this useful guide.
    The instructions are for the N95 but should work on an E90. I've got it working on an N82 and N96 at the moment.
    Just a note about the java app: It says it's for a sony but it works perfectly on a nokia. Not sure how it will look on the E90's big screen so if it doesn't work try the front screen.
    Message Edited by psychomania on 14-Nov-2008 10:42 AM

  • Can't get the java tray icon or the console to appear

    I can't get the java tray icon or the console to appear on any system that I've tested my applications in.
    I'm using Windows XP mostly and I've also tested on Windows 2000 and 2003. I'm using jre 1.6. I've already set the icon to appear and the console to show on the advanced tab on the java icon in the control panel. I've even tried another application from another author thinking it might be something in the code of my own application.
    I need the console available on the client systems for troubleshooting but I can't get it to open and I can't open it manually from the tray icon because the icon is not there.
    I seem to remember seeing the tray icon and the console on other systems/applications in the past so what do you think is the problem?

    AFAIK, the Sun/Oracle-provided "Java Console" only works (appears) with applets and Java Web Start applications. It shows some information that is unique to those environments, and provides a place for System.out data to be written.
    For a Java application, if the application is started with the java command (as opposed to the javaw command) System.out data is written to the command/cmd window that is created.
    If you need more that that for an application, then [this article|http://www.developer.com/java/other/article.php/630821/Creating-a-Custom-Java-Console.htm] may be of interest. It's old, but still appears to be valid. Note that current versions of Java contain a class java.io.Console. This class should be able to be used as a replacement for the custom Console class that is used in the article.

  • Trouble getting the Java OLAP samples to work

    Hello all,
    Has anyone else had trouble getting the Java OLAP API samples for 9i working? I've recently downloaded the trial version of 9i and was trying to tinker with the OLAP API. I tried to use the olapi.bat script in $ORACLE_HOME\olap\olapi\bin, but I've been getting JNDI problems (javax.naming.NoInitialContextException). The error message is below:
    C:\oracle\ora90\olap\olapi\bin>olapi connection.ConnectionTest
    looking up OLAPSERVER in Oracle namespace...
    cannot find service namingContext SESS_IIOP://THEPRISONER:2481:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:279)
    at javax.naming.InitialContext.lookup(InitialContext.java:349)
    at oracle.olapi.test.TestDriver.queryAuroraNamespace(TestDriver.java)
    at oracle.olapi.test.TestDriver.findServer(TestDriver.java)
    at oracle.olapi.test.TestDriver.initializeConnection(TestDriver.java)
    at oracle.olapi.test.TestDriver.createTestContext(TestDriver.java)
    at oracle.olapi.test.TestDriver.execute(TestDriver.java)
    at oracle.olapi.test.connection.ConnectionTest.main(ConnectionTest.java)
    Unable to connect toOLAPSERVER
    Exception in thread "main" Stack Trace for Original Throwable:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:279)
    at javax.naming.InitialContext.lookup(InitialContext.java:349)
    at oracle.olapi.test.TestDriver.queryAuroraNamespace(TestDriver.java)
    at oracle.olapi.test.TestDriver.findServer(TestDriver.java)
    at oracle.olapi.test.TestDriver.initializeConnection(TestDriver.java)
    at oracle.olapi.test.TestDriver.createTestContext(TestDriver.java)
    at oracle.olapi.test.TestDriver.execute(TestDriver.java)
    at oracle.olapi.test.connection.ConnectionTest.main(ConnectionTest.java)
    I've tried supplying a ContextFactory class name to the environment, using the ContextFactory classes that I found in the aurora.zip or aurora_client.jar files, but that didn't work. If anyone has any suggestions, they would be appreciated. Thanks.
    Jason

    Only use the == operator for checking for the same object. Use the String.equals()method. I.E replace
    if (sex == "Male") {
    } else {
    with
    if (sex.equals( "Male")) {
    } else {
    or if 'sex' could be null then
    if ("Male".equals(sex)) {
    } else {
    }

  • How to get the file path in adf application

    hii all,
    i have a txt file that i am using in my adf application,
    i am passing this txt file through a File Reader, for which i have to mention the file path.
    The file is in web-content and when i am hard coding the complete file path i.e C:/JDeveloper/myApp/ViewController/public_html/log.txt
    the application is working fine when run on integrated weblogic server.
    My requirement is to access this file without giving the static file path, as in case i have to use this application on any other machine..
    for that how to mention the file path-
    i tried using FacesContext to get the context path :-
    FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();
    which gives me
    \myApp-ViewController-context-root
    after appending public_html\log.txt
    I am using the following path to access the file :-
    \myApp-ViewController-context-root\public_html\log.txt
    again i am getting the java.io.FileNotFoundException
    Does anyone know how to use file from inside the web-content without giving the complete path..???
    Thanks

    Hi,
    If you put your file under public_html folder, you can use this code to access the file:
    For example file is : log.txt
    FacesContext.getCurrentInstance().getExternalContext().getRealPath('/log.txt').toString().trim();
    Thanks.
    - LSR

  • How can i get the local path to my cached app in jws

    Hi,
    sorry, i think it is a stupid question of me. but i'm a newbie in java and jws...
    So my question is...
    is it possible to get the absolute path to my downloaded an d cached jarfile? (e.g. c:\program files\java web start\.javaws\cache\http\Dmy.server.com\P80\RMmyapp.jar)
    thanks a lot for any help.

    I just answered this elsewhere, but here it is again.
    This code seems to work. I found it last year in one of the forums.
    I use it to find resources in Jars or to find images when I am in an IDE
    The "SetIcon.class" below should be changed to the class you are running from.
    Note: If you are running a class in a package, this returns the root of your application instead of the "folder" containing your package. This would mean that the "images" folder I refer to below is under the root folder, not the package folder.
    javax.swing.ImageIcon img;
    URL imgPath1;
    String imgPath2;
    imgPath1 = SetIcon.class.getProtectionDomain().getCodeSource().getLocation();
    imgPath2 = imgPath1.toString();
    imgPath2 = imgPath2.substring(6); // strip off the "file:"
    imgPath2 = imgPath2 + "images/sample.gif";
    Hope this helps,
    Hale

  • How to get the complete path of the file that is selected using FormFile

    i m working on struts..
    i hv used FormFile like
    <html:file property="xsdpath" value="Browse" />
    need to get the whole path that i will select using browse button
    for example d:\foldername\filename.java
    but FormFile Api has a method getFileName(); which returns the filename, for getting the absolute path wat has to be done.
    please reply bak soon
    thanks in advance

    here i use formfile <html:file> just to allow the
    user to select a xml file .
    so i need to get the whole path of the selectedfile
    to parse the xml file.No you dont.
    You would definitely benefit from further reading on
    file upload.
    <html:file> tag renders an HTML <input> element of
    type file.
    When a user uploads a file, this file is sent as a
    stream of data, which a program (jsp/servlet) on the
    server, reads and stores the data back in the form
    of a file on the server.
    Any server program that needs to parse the file,
    should do so on the file stored on the server.
    There's no point in knowing the absolute path of the
    file on the client machine. If a server program can
    parse a file on the client machine, why upload the
    file in first case ? Get the drift ?
    i also want to show my user the path he hadselected.
    If you have such a requirement, then yes.
    But it sounds weird to me. If you see my response
    above, you will realize that the server has a copy of
    the client's file uploaded and then parsed. What if
    the client has changed his file after upload ?
    cheers,
    ram.I also have a requirement to get the whole filepath of the file selected and place this information into a table. From FormFile I can only retreive the absolute filename
    Any suggestions would be helpful.
    Thanks, dam

  • How to get the absolute path of a DTD referenced in an XML?

    Hello!
    My OS is Windows.
    I use "org.apache.xerces.parsers.SAXParser" which implements LexicalHandler to parse XML files. When method "startDTD" starts and "systemId" is got, how can I get the absolute path? Is there any simple way?
    Regards!

    Hi,
    http://forum.java.sun.com/thread.jsp?forum=34&thread=36
    612The methods in the above topic seem to be available when use a DOM parser..

Maybe you are looking for

  • I can't get along with Tomcat and MySQL

    i'm using tomcat 5.5 and wan to connect to mysql database. when trying to run my webapp, the compiler said like the driver(java-connector) is not detected. what should i do now... someone tell me please. and where exactly i should copy the driver(jar

  • Question for experienced SDDM modelers

    Questions for the more experienced or knowledgeable SDDM users. Knowing what you know now, what advice do you have for experienced data modelers but newbies to the SDDM tool? Are there any posts in this forum you've found most helpful in this regard

  • Iterative processing in distribution cycles

    HI, Would any one pls tell about the Iterative processing in distribution cycles. As per my understanding if Receiver also becomes a sender in different segment then we have to activate this iterative processing option while creating a cycle in KSV1.

  • Approval of Expense report invoice

    I'm working in R12 (12.0.6) and I have requirement create approval logic for invoice of type expense report. I'm using AME but I found AP invoice workflow (APINVAPR) doesn't support invoice approval for expense report imported by cocurrent program. M

  • Smartform unable to retrieve data for email

    Hi, I have created a smartform as copy of CRM_Business_activity . I created a function module ,in which value of SFSY-XDF=X or SFSY-XDF2=X only then it populates some value in the structures. I tried changing output form attributes for xSF output and