Jre vs. java

First - Thanks in advance for any responses!
I have a .jar file that runs fine like this...
java -jar client.jar (java 1.4)
But if I move the file to another platform - that has java 1.1.6, I can only use jre - and the following occurs,
jre -cp client.jar hostcl
Class not found: hostcl
The manifest is listed below:
Manifest-Version: 1.0
Main-Class: hostcl
Classpath: ./client.jar
The contents of the jar file:
Y:\ccm_wa\toolsdb\javainj~1\javainj>jar -tvf client.jar
0 Wed Nov 06 10:30:20 EST 2002 META-INF/
113 Wed Nov 06 10:30:20 EST 2002 META-INF/MANIFEST.MF
43431 Wed Nov 06 10:30:12 EST 2002 blk.class
7721 Wed Nov 06 10:30:14 EST 2002 hostcl.class
775 Wed Nov 06 10:30:14 EST 2002 hostcmd.class
2220 Wed Nov 06 10:30:14 EST 2002 hostsr.class
5246 Wed Nov 06 10:30:14 EST 2002 hostsr1.class
3871 Wed Nov 06 10:30:12 EST 2002 rt.class
2387 Wed Nov 06 10:30:14 EST 2002 untouched.class
9024 Wed Nov 06 10:30:14 EST 2002 utils.class
21980 Wed Nov 06 10:30:12 EST 2002 vars.class
Why does it work fine in 1.4, but not 1.1?
Mark.

Does class hostcl inherit from a class not available in 1.1.6? Invoking JRE 1.1.6 with the following class (compiled under 1.4) also returns the error you describe :
public class Test extends java.util.HashMap {
  public static void main(String args[]) {
    System.out.println("this is a test");
}The program runs as expected when not inheriting from HashMap.
Walter Gildersleeve
Productivity Engineering, GmbH
Freiburg, Germany

Similar Messages

  • Whats is difference between Java JRE  and  Java SDK

    Hi,
    what is the difference between Java JRE and Java SDK...
    i think both of them have the same set of files to be installed...
    I am not able to understand where they differ

    The JRE (Java runtime Environment) contains just the stuff necessary to run Java and the SDK (System Development Kit) contains the extra stuff necessary (and also helpful) to develop in Java.

  • Error in writing to file '$ORACLE_HOME/jdk/jre/bin/java'

    Hi,
    I have installed Forms & Reports Services Standalone (10.1.2.0.2) on RHEL 5 and now I am applying the Oracle Application Server 10g Release 2, Patch Set 3 (10.1.2.3), but OUI gives the following error:
    Error in writing to file '$ORACLE_HOME/jdk/jre/bin/java'.
    [$ORACLE_HOME/jdk/jre/bin/java
    (Text file busy)]
    I can't seem to find anything about this error on metalink or via google. Can anyone help me solve this? Thanks.

    Ok, this time I stopped all processes first with opmnctl stopall and emctl stop iasconsole. I then started OUI again to install the patch. It seemed to go fine - i didnt get that java error this time, but another error almost at the end of the installation:
    Error in invoking target 'proxy_install runm_install server_install cgi_install
    cli_install conv_install qv_install' of makefile
    '/opt/oracle/Forms10gR2/reports/lib/ins_reports.mk'
    According to Metalink ID 564174.1 - "Any installation of Oracle Application Server 10g Release 2 (10.1.2.0.2) on OEL 5.x or RHEL 5.x in which Reports is getting installed will fail with reports relinking errors" and the solution is as follows:
    # rpm -i xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386.rpm
    # mv /usr/lib/libXtst.so.6 /usr/lib/libXtst.so.6.ORG
    # ln -s /usr/X11R6/lib/libXtst.so.6 /usr/lib/libXtst.so.6
    I have already done these 3 steps before the base installation (just to avoid this error), yet I am getting this error even when the symbolic link already exists. Do you think I can just ignore this error and continue with the installation, or is there something else I need to check first?

  • /apps/common/oracle/9.2.0.6.0/JRE/bin/java:  not found.

    I am trying to create DB with dbca and getting this error, need suggestions
    dbca/opt/oracle/9.2.0.6.0/bin/dbca[123]: /apps/common/oracle/9.2.0.6.0/JRE/bin/java: not found.

    Ok here is entry i change in dbca
    JRE_DIR=/opt/oracle/9.2.0.6.0/jre/1.4.2/bin
    now i ran
    ./dbca./dbca[123]: /opt/oracle/9.2.0.6.0/jre/1.4.2/bin/bin/java: not found.
    why is showing wrong path now
    FYI
    hagan - R3TST01:/opt/oracle/9.2.0.6.0/jre/1.4.2/bin
    lsHPUXChildWrapper idlj javadoc native2ascii serialver
    IA64N jar javah orbd servertool
    IA64W jarsigner javap policytool tnameserv
    PA_RISC java jcpm_server rmic
    appletviewer java-rmi.cgi jdb rmid
    extcheck javac keytool rmiregistry

  • How does the JRE determine java.home?

    I recently upgraded from jre 1.4.1 to 1.4.2.
    I'm having problems with applets, and I've traced the problem to the fact that java.home still points to the old JRE directory. Here is a line from the system properties dump in the java console:
    java.home = C:\PROGRA~1\Java\J2RE14~1.2_0
    That directory doesn't exist anymore. The directory that contains the jre is now c:\program files\Java\j2re1.4.2_01.
    I properly uninstalled 1.4.1, and I've tried uninstalling everything java related, manually deleting everything I can find (files, folders, registry settings) related to java or sun, and reinstalling, and this problem is still there.
    I've also tried setting the property in the JAVA_HOME environment variable as well as setting it as a runtime option in the java control panel ( -Djava.home=. . .). No dice.
    How does the JRE determine java.home? Is there a way to manually set the path?

    Check regedit with the oldvalueThanks -- I tried that. The old value is not in the registry, and all of the registry settings for java.home point to the correct directory. The java.home value that ends up inside the plugin must be determined some other way (at least in 1.4.2).
    If anyone out there knows where it comes from, please let me know!
    Thanks.

  • C execve of $JAVA_HOME/jre/bin/java does not work

    I have a static executable (I don't want to link shared libraries for security reasons) which ultimately tries to execve the java executable in the JRE (Linux). Unfortunately I'm getting the following errors:
    Error: could not find libjava.so
    Error: could not find Java 2 Runtime Environment.
    I've seen mention of these errors in other posts and have tried everything I can find (add stuff to PATH, CLASSPATH, LD_LIBRARY_PATH, JAVA_HOME, and more). Everything I've tried does not seem to do a lick of good. The execve function constructs an explicit environment, so I'm wondering if there is something basic that java needs in the environment that is inherited normally in a shell. I'm at a complete loss here. Any help would be appreciated. A very simple C program to reproduce this is pasted bellow.
    #include <unistd.h>
    void main(void)
    char * arg[2];
    char * env[10];
    int i;
    i=0;
    arg[i++] = "-version";
    arg[i] = NULL;
    i=0;
    //add any environment variables to env like...
    //env[i++] = "LD_LIBRARY_PATH=<java_path>/jre/lib/i386/libjava.so";
    env[i] = NULL;
    execve("/usr/local/j2sdk_nb/j2sdk1.4.2/jre/bin/java", arg, env);
    }

    It fails because you do not set argv[0] to the path of the program you're calling.
    Try:
    #include <unistd.h>
    int main()
    char * arg[3];
    char * env[10];
    int i;
    i=0;
    // This is the big deal:
    arg[i++] = "/usr/java/j2re1.4.2_02/bin/java";
    arg[i++] = "-version";
    arg[i++] = NULL;
    i=0;
    env[i++] = NULL;
    execve("/usr/java/j2re1.4.2_02/bin/java", arg, env);
    }

  • JRE and Java

    What is diff between JRE and Java installations and what is needed to be installed to get EBS 11i and EBS 12 open at Windows client ?

    838982 wrote:
    What is diff between JRE and Java installations and what is needed to be installed to get EBS 11i and EBS 12 open at Windows client ?Java is used by the application/database and JRE is what the clients need to run the application (which should be also configured at the application level).
    For Java, please see (Overview of Using Java with Oracle E-Business Suite Release 11i [ID 300482.1])
    For Windows client, please see these docs in addition to the ones referenced above:
    Recommended Browsers for Oracle E-Business Suite Release 12 [ID 389422.1]
    Recommended Browsers for Oracle E-Business Suite 11i [ID 285218.1]
    Thanks,
    Hussein

  • What is the recommended practice for bundling JRE with Java Application?

    Hello,
    I am using a software called Advanced Installer to create a Windows installer (.msi file).
    This .msi file contains :
    - a .exe file which is a wrapper for a .jar file (a Java Swing program),
    - and a directory for the JRE.
    I read an article on the web which recommended bundling the JRE with the Java program. And
    this is what I am doing. And my understanding is that if the user's system does not already
    have the JRE installed, the bundled JRE would allow my Java Swing program to run.
    However, when I tried to install my .msi file on a system that did not already have the JRE,
    my Java Swing program would not start. After installing the JRE on this system, my Java
    Swing program started and ran fine.
    Do I really need both JREs, one bundled with my Java Swing application and one installed at the
    system's location for my Java Swing program to start and run?
    Another question I have is that if every application would bundle its own JRE, there could be many
    copies/possibly versions of the JRE on the system, is this acceptable? What is the common or
    recommended practice?
    Thank you for your help.
    Akino.

    I'm sure why it didn't work. That is how I bundle the JRE. The only disadvantage about bundling is the size of the installer file will be pretty large. In my opinion, relying on a public version is not a good idea if you have no control of the target box. The user might, for some reason, decide to uninstall java or upgrade to a new incompatible version and your app. may stop working. I'm sure many on here will disagree with this though.
    I always use the marner .exe wrapper:
    http://www.megaupload.com/?d=FYZAVM77
    and inno installer:
    http://www.jrsoftware.org/isinfo.php
    They're both free to use and I've had no problems with them. Another wrapper is Javaround:
    http://sourceforge.net/project/showfiles.php?group_id=234356

  • JVM vs JRE vs Java Plug-In and Yahoo Chat

    Hi
    I am a little confused as to what is required in the browser to run an applet.
    Do I require JVM installed in my browser?
    Do I require Java Plug-In installed in my browser?
    Do I require JVM installed in my browser?
    What is the difference between these three?
    My second question is about the version of JDK to use while developing Java Applets. I am planning to make a Chat Application similar to Yahoo chat. For that I made a beta version using JDK 1.4.2 but now the problem is that most of the client browsers have old version installed for e.g. 1.1.4 by Microsoft or 1.2 by Sun.
    In this case almost every user that uses my chat applet has to download the latest version from http://java.sun.com/getjava otherwise it the chat applet doesn't work on their browser. And I don't want this to happen because most of the time it takes ages to download and install the latest Java version on client browser. Yesterday on Pentimum 4 having 512 MB RAM and Windows 98 it took almost 45 minutes to download and install which is unacceptable.
    If you see the Yahoo chat http://chat.yahoo.com you will see that it is developed in such a way that it supports almost all the browserd without having to install the latest version. This is what I want to achieve and I am looking from your input as to how do I make sure that the client doesn't need to install the latest version (or atleast very few clients need to install latest version). Do I need to make this chat application in an old JDK version for e.g. 1.1.6?

    ooppss....I little mistake in my above post. The third question is
    Do I require JRE installed in my browser to run applet?

  • How to launch a Java WebStart application with older JREs when Java 7u25 is on the client?

    How can I launch older versions of my Java WebStart application, that are built and run with Java 7u21 or earlier, even if Java 7u25 is installed locally on the client? Application launch and behaviour must be reliable and consistent.
    Background:
    As of 7u25 (and later), Java Webstart applications launch with a different class loader than pre-7u25.
    My Java Webstart application has supported versions that were built with older versions of the JDK (e.g. Java 5, 6, 7u21 or earlier). These applications run with their required JRE version, enforced through JNLP. Once Java 7u25 is installed locally, these older applications fail to launch, due to classloader differences.
    The question is: what is required to run older Java WebStart applications even if 7u25 (or later) Java Webstart is installed locally on the client?

    I confirm your findings when using shortcuts to try specific versions of JavaWS with 7u25 or later installed:
    JRE 5u14 launched and the classloader was as pre 7u25
    JRE 6u43 would not launch
    JRE 7u21 launched but the classloader was not as pre 7u25
    You can launch the shortcut with the JavaWS -verbose option to display a messagebox with valuable information.
    I am keeping a close watch on this thread.

  • Use 2 jre versions (Java 5.x and Java 6.x) on diferent web pages.

    On windows XP SP3.
    I need use on internet explorer 7 and firefox 3, 2 differents JRE versions for two diferent servers
    example:
    - "www.site1.com" needs java 5.x (don't work with java 6.x)
    - "www.site2.com" needs java 6.x (don't work with java 5.x)
    If i have installed both versions, internet explorer and firefox even uses java 6.x, and i only can use java 5.x if uninstall java 6.x
    I need use to default use: java 6.x; except for "www.site1.com" that i need use java 5.x
    How can use both JRE versions?

    Questions: Do you plan to use the same web browser? The earlier applet running on JRE 1.5.x cannot run on 1.6 ? Sun puts forth a lot of effort in attempt to ensure that applets are forwards compatible.

  • Distributing JRE with Java Swing Game

    I am developing some game using java swing. With the games I
    need to ship JRE because each user does not have JRE..
    So is there any other other solution.

    I forgot the name, but there is a very nice Installer tool that allows you to bundle your program with a JRE. Search the news groups.

  • WinVista: QuickTime won't run, steps on Java JRE, destroys Java

    Noticed my Java desktop apps no longer load after installing QuickTime. Also cannot get the QT player to load. It loads, and then immediately exits. Any suggestions?

    You might want to try updating Java from the Java control panel. I recall answering a post where where that was the issue. The version I have is: Java Platform, Standard Edition 6. Version 1.6.0 (build 1.6.0_01-b06) which I believe is the latest update. A firewall could also be something to consider.

  • No sound in java applets in 32bit firefox with bin32-jre plugin.

    I got sound in flash, but not in java applets. Is this a known issue? Any workarounds?

    I should probably make a wiki article (or ad to the Java wiki article) about this, since it seems to come up quite often (especially on Ubuntu forums, actually). The only good solution I've found is to use Pulseaudio, and rename the java executable to java.bin, and make a script called java in the same folder, and put this in the script:
    #!/bin/sh
    padsp /opt/java/jre/bin/java.bin "$@"
    By the way, the path to the java executable is /opt/java/jre/bin/ I've tried using the same method with plain ALSA by using aoss, and it works sorta, but it causes random crashes of Java, so that's a no go, have to use Pulse.

  • Updating java when using JDK and JRE

    Ok, so after you make a program in java and compile it, you then install the new update of java. Wouldn't the virtual machine(JRE) or java development kit(JDK) notice something thats different and bring up an error?
    Do you have to use the same JDK as JRE that you have, because if you didn't have the most updated one, wouldn't there come up with an error?
    Last question, if you have used the command line to compile a program, then you know that you need to use javac to compile and java to run it. Well when you use the command javac to compile, then you are using the JDK; and if you use the java command to run it, then you are using JRE. This is just a question to make sure that I have this correct, So correct me if I'm wrong.

    brown16b wrote:
    Ok, so after you make a program in java and compile it, you then install the new update of java. Wouldn't the virtual machine(JRE) or java development kit(JDK) notice something thats different and bring up an error? Why? A newer Java version should be able to execute programs compiler for a prior version.
    Do you have to use the same JDK as JRE that you have, because if you didn't have the most updated one, wouldn't there come up with an error?Eh, what?
    Last question, if you have used the command line to compile a program, then you know that you need to use javac to compile and java to run it. Well when you use the command javac to compile, then you are using the JDK; and if you use the java command to run it, then you are using JRE. This is just a question to make sure that I have this correct, So correct me if I'm wrong.It's correct.

Maybe you are looking for

  • Connection reset when inserting file to BLOB column

    Friends, When inserting a file to a BLOB clomun and the file is more than 1KB, I receive the following message: java.sql.SQLException: Io exception: Connection reset The code is this: int fileLength = (int)file.length(); System.out.println("File leng

  • Bash script - sqllite insert problem

    So, I'm making a bash script that inserts a config file into a database, but I can't get it to work. This is my best attempt so far: name="bashrc" location="/home/user/.bashrc" content=`cat "$location"` sqlite3 testdb "insert into dbase values ('`ech

  • Why Apple hates Home/End/Page Up/Page Down?

    open a terminal, type in a command and I want to go to the beginning of the line and then back to the end of the line.  How do you do this?  I've never understood why Apple doesn't have a backspace and a delete button as well as a simple home and end

  • Ipod touch help with missing accept button for terms and conditions

    I want to update my apps but when I try it tells me that i first have to accept the new terms and conditions, however, there is no accept button to click. I have tried the other option to have it sent by e-mail but when I open the e-mail it's still t

  • Su01 - role or profile for MM module

    hi experts. i could like to set the role or profile to a user which only can access to Materials management. do anyone can guide me which role or profile i should set?