[java]compiling .java at runtime...illegal character: \0

i have an RMI method call that receives a string with the name of the file and an array of bytes that contains the file.
this method has to save the file,compile it if it's a .java or run it directly is it's a .class
the file arrives completely,but in compiling it i get an error telling there's an illegal character inside,which is ' \0 '
isn't that suposed to be the end of the file?..if i print the file on my linux shell with the "more" command,the character doesn't come out either,do you have an idea about how could i get it out from there?..

i have an RMI method call that receives a string with the name of the file and an array of bytes that contains the file.
this method has to save the file,compile it if it's a .java or run it directly is it's a .class
the file arrives completely,but in compiling it i get an error telling there's an illegal character inside,which is ' \0 '
isn't that suposed to be the end of the file?..if i print the file on my linux shell with the "more" command,the character doesn't come out either,do you have an idea about how could i get it out from there?..

Similar Messages

  • Illegal character in Base64 encoded data

    Hi,
    I'm trying to get a print out the public key as a String, which I am getting it in as a base64 encoded, but I get error:
    Exception in thread "main" java.lang.IllegalArgumentException: Illegal character in Base64 encoded data.
    Code below:
    public static void main(String[] args) {
              File pubKeyFile = new File("C:\\usercert.pem");
              StringBuffer buffer = new StringBuffer();
                   try {
                        FileInputStream fis = new FileInputStream(pubKeyFile);
                        try {
                             InputStreamReader isr = new InputStreamReader(fis, "UTF8");
                             Reader in = new BufferedReader(isr);
                             int ch;
                             while((ch = in.read()) > -1) {
                                  buffer.append((char)ch);
                             in.close();
                             String key = buffer.toString();
                             System.out.println("key is: " + key);
                                          //This is where the code fails:
                             String keyDecode = Base64.decodeString(key);
                             System.out.println("key ecode is: " + keyDecode);
                        } catch (UnsupportedEncodingException e) {
                             // TODO Auto-generated catch block
                             e.printStackTrace();
                        } catch (IOException e) {
                             // TODO Auto-generated catch block
                             e.printStackTrace();
                        }

    Hi ejp,
    It's a rsa public, the usercert.pem looks like below,
    so since it's not an x509 certificate not sure if I
    can read it using a
    java.security.cert.CertificateFactory?
    Basically I just want to print the public and private
    key out as a String. Any help is appreciated.
    -----BEGIN PUBLIC KEY-----
    MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCg8yo6rDhsNiwUfV
    R37HgF4bWq
    oG13Nd9XLT+Z0VLzCkWJZOdzGNQnnm7ujoQ8gbxeDvIo9RG5I3eZte
    BwD91Nf6P/
    E9lvJQDL2Qnz4EXH/CVW9DeEfvY1UJN9kc6q6KkYEPWssvVvlDOp2s
    lbEKZCJtaP
    vVuGCAqfaps8J0FjOQIDAQAB
    -----END PUBLIC KEY-----
    import java.security.KeyFactory;
    import java.security.interfaces.RSAPublicKey;
    import java.security.spec.X509EncodedKeySpec;
    import sun.misc.BASE64Decoder;
    public class MakeRSAPublicKeyFromPEM
        public static void main(String[] args) throws Exception
            final String publickeyAsString =
                    "-----BEGIN PUBLIC KEY-----\n"+
                    "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCg8yo6rDhsNiwUfVR37HgF4bWq\n"+
                    "oG13Nd9XLT+Z0VLzCkWJZOdzGNQnnm7ujoQ8gbxeDvIo9RG5I3eZteBwD91Nf6P/\n"+
                    "E9lvJQDL2Qnz4EXH/CVW9DeEfvY1UJN9kc6q6KkYEPWssvVvlDOp2slbEKZCJtaP\n"+
                    "vVuGCAqfaps8J0FjOQIDAQAB\n"+
                    "-----END PUBLIC KEY-----\n";
            final BASE64Decoder decoder = new BASE64Decoder();
            final byte[] publicKeyAsBytes = decoder.decodeBuffer(publickeyAsString.replaceAll("-+.*?-+",""));
            final X509EncodedKeySpec publicKeySpec = new X509EncodedKeySpec(publicKeyAsBytes);
            final KeyFactory keyFactory = KeyFactory.getInstance("RSA");
            final RSAPublicKey publicKey = (RSAPublicKey)keyFactory.generatePublic(publicKeySpec);
            System.out.println("Modulus ........... " + publicKey.getModulus());
            System.out.println("Public exponent ... " + publicKey.getPublicExponent());
    }

  • Is it possible to call the java compiler javac from runtime

    Hi, can someone tell me if it is possible to call javac from runtime. I need to do this because the class I need to compile must be filled with some data given by the user. I plan to write the class code in a file, let the user write some code lines at runtime, add this lines to the file and then call javac in order to compile the file and check if the user wrote his lines properly. I wonder if this makes sense, thanks for reading this and for your help.

    You can try using the exec method in the class java.lang.Runtime, but here are some traps to watch out for when using it:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Compile java at runtime

    Is it possible that a java program compiles a java source file and (if there are no errors) runs the class file?
    example:
    We need this for scenarios:
    a java program will create java code that will represent a scenario. This class will give the java code to the scenario runner, the scenario runner needs to compile the code and run it.
    thanks,
    frederic

    Hi,
    Is it possible that a java program compiles a java source file and (if there are no errors) runs the >>class file?Yes this can be done you will have to follow the following logic
    1)Create a process which will compile the source code
    2)Once the process has done the compiling and had succeed then call step 3
    3)Create a process which will run the java program
    For this you can use java.lang.Runtime,java.lang.Process class etc
    try this way
    java.lang.Process process=java.lang.Runtime().getRuntime();
    process.exec("c:\\jdk1.3\\bin\\javac c:\\test.java");
    Trace the Error Stream of the process,which can tell you about the status of compilation
    read that and proceed,ie if error is found dont run the code otherwise :
    process.exec("c:\\jdk1.3\\bin\\java test");
    I have not tried this but I believe this can be helpful for you.
    regards vickyk

  • Java.lang.NoClassDefFoundError: Illegal name:

    I'm looking for some validation on this problem I'm experiencing with 1.4.2_05. I believe that java.lang.ClassLoader.defineClass() was cleaned up in this release to no longer accept class definitions that use the '/' as the separator character. Rather you actually have to follow the API specification and use the '.' character (go figure).
    Using any JDK release before 1.4.2_04, I can use the slash character. I know that this particular usage is somewhat wrong, what I can't figure out is why there is no indication in the 1.4.2_05 release notes that this has changed. Does anyone actually know if this is something that was silently fixed in 1.4.2_05?
    The exception I'm seeing:
    java.lang.NoClassDefFoundError: Illegal name: weblogic/db/oci/OciColumn
    at java.lang.ClassLoader.defineClass(ClassLoader.java:538)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at weblogic.db.oci.OciConnection.native_initialize(Native Method)
    at weblogic.db.oci.OciConnection.initialize(OciConnection.java:435)
    at weblogic.db.oci.OciConnection.<init>(OciConnection.java:140)
    at weblogic.jdbc.oci.Connection.<init>(Connection.java:268)
    at weblogic.jdbc.oci.Driver.allocateConnection(Driver.java:44)
    at weblogic.jdbc.oci.Driver.connect(Driver.java:101)
    <rest of stack omitted>
    There are some reported bugs on this topic too...4817264 (which is marked as dupe of 4471675, but I can't see that bug for some reason).
    thanks!

    It appears that you're correct. I ran into this too, and with your additional
    insight, I dug into java.lang.ClassLoader and decompiled (with jad) the
    class from 1.4.2_03 and 1.4.2_05.
    defineClass has this bit of code in it:
            try
                if(!checkName(s, false))
                    throw new NoClassDefFoundError("Illegal name: " + s);
                class1 = defineClass0(s, abyte0, i, j, protectiondomain);
            }The call (and definition) of checkName is in the 1.4.2_05 release, but not
    in 1.4.2_03. checkName disallows slash characters:
        private boolean checkName(String s, boolean flag)
            if(s == null || s.length() == 0)
                return true;
            if(s.indexOf('/') != -1)
                return false;
            return flag || s.charAt(0) != '[';
        }tim

  • Java.io.StreamCorruptedException: illegal handle value

    Hi
    I am using Oracle Coherence 3.3 in my application. I my application we are taking the objects from Webservices and storing them in the Cache(Replicated). And then retrieve them from the Cache.
    But now on our application Linux server we are getting "java.io.StreamCorruptedException: illegal handle value"
    Can anybody tell the reason of this. I am not sure whether it is a Coherence issue.
    The log of error which i am getting is this. Please do reply. Its really urgent.
    [6/7/08 11:23:36:287 EDT] 00004442 SystemErr R (Wrapped: CacheName=UMAChannelZipCache, Key=44120) java.io.StreamCorruptedException: illegal handle value
         at java.io.ObjectInputStream.readHandle(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
         at java.util.HashMap.readObject(HashMap.java(Compiled Code))
         at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
         at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
         at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java(Compiled Code))
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
         at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
         at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
         at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
         at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
         at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
         at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
         at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
         at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
         at java.util.TreeMap.buildFromSorted(TreeMap.java(Inlined Compiled Code))
         at java.util.TreeMap.readTreeSet(TreeMap.java(Inlined Compiled Code))
         at java.util.TreeSet.readObject(TreeSet.java(Compiled Code))
         at sun.reflect.GeneratedMethodAccessor167.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
         at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
         at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java(Compiled Code))
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
         at java.util.HashMap.readObject(HashMap.java(Compiled Code))
         at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
         at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
         at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java(Compiled Code))
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
         at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java(Inlined Compiled Code))
         at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java(Compiled Code))
         at com.tangosol.coherence.component.net.Message.readObject(Message.CDB(Inlined Compiled Code))
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache$ConverterFromInternal.convert(ReplicatedCache.CDB(Compiled Code))
         at com.tangosol.coherence.component.util.CacheHandler.getCachedResource(CacheHandler.CDB(Compiled Code))
         at com.tangosol.coherence.component.util.CacheHandler.get(CacheHandler.CDB(Compiled Code))
         at com.tangosol.coherence.component.util.SafeNamedCache.get(SafeNamedCache.CDB(Compiled Code))
         at com.att.uma.cache.ChannelCacheManager.checkCacheByZip(ChannelCacheManager.java(Compiled Code))
         at com.att.uma.channel.UMAChannelServices.getChannelsByZip(UMAChannelServices.java(Compiled Code))
         at com.att.uma.channel.RetrieveChannelLineup.performTask(RetrieveChannelLineup.java(Compiled Code))
         at com.att.uma.channel.RetrieveChannelLineup.doPost(RetrieveChannelLineup.java(Compiled Code))
         at com.att.uma.channel.RetrieveChannelLineup.doGet(RetrieveChannelLineup.java(Compiled Code))
         at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
         at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java(Compiled Code))
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

    Hi user628020,
    Since you are using standard Java serialization, the only two reasons I can think of are:
    1) a bug in serialization routines for any of the classes your objects use (e.g. TreeMap)
    2) concurrent modification of the same object by another thread at the same time
    With urgent support questions I would suggest using the Oracle Metalink.
    Regards,
    Gene

  • Is java.util.Runtime singleton

    Hi,
    Is java.util.Runtime a Singleton class ?
    -Shishir

    \j2sdk1.4.2\jre\lib\rt.jar
    GoF was copyrighted in 1995.
    Java was released in March of 1995. And Runtime wasin it.
    It is a singleton, it just wasn't based on thepattern, largely because the pattern didn't exist
    yet. Sort of...
    OK.
    But when did \j2sdk1.4.2\jre\lib come out? ( :-D,
    I've no memory for date)
    From the Decompiled code,
    can we now safely say it's based upon Singleton
    pattern? for \j2sdk1.4.2\jre\lib?
    What are you talking about?
    Runtime existed in java 1.0. It is pointless to discuss what is in 1.4.2 in this context.
    Do you mean there is no conclusive evidence for
    Singleton pattern?Huh?
    I suspect you do not understand the intent of patterns in GoF.
    Patterns in GoF were not added unless there was existing functionality at the time that supported the contention that a pattern existed and was being used.
    Just because someone doesn't use the GoF book doesn't mean that they are not creating code that uses the patterns that the GoF book collected.
    Likewise I can write a compiler without ever having read the Dragon book.
    So despite the likelyhood that Runtime was not developed using GoF that does not mean that it isn't a singleton.

  • "Error while registering the Java 2 Runtime Environment registry keys"

    "Error while registering the Java 2 Runtime Environment registry keys"
    I am getting the above error when trying to install the 1.3 JRE (installed with the 1.3 plug in which I need). As part of my development I have been installing and uninstalling the JRE multiple times. Then, I got the above error when trying to install it, and now it appears to be installed but I cannot uninstall it. When I try to uninstall it, it just remains, and when I try to install it again I get the above error. I have tried cleaning up all javasoft registry entries, but it doesnt seem to have helped. Can anyone help me either completely uninstall the JRE so I can do a clean install or help me get rid of the error above when I install. Is there some registry entries I should be looking at? Anything else? this is quite urgent as I need to test my applet with the plugin installed and not installed - and I currently cant uninstall it. Any ideas?
    Thanks for your help
    Aaron

    I am getting this same error message when trying to upgrade from 1.3.1_03 to 1.3.1_19.
    I have multiple versions of jre's and jdks on my machine.
    Anyone else seen this problem or know how to resolve it.

  • Java Proxy Runtime:  failure to locate proxy bean on inbound call

    Hello gurus of the SDN,
    I have been trying to get an inbound Java Proxy scenario to work in XI 3.0 but have not been able to get the JPR to recognize my generated and deployed java code.  My scenario is set up to call the java proxies generated from a message interface based on the MATMAS Idoc.  I successfully deployed the generated java proxies on the same host box as is running the XI instance.  The objects are named as follows
    Message interface on XI = Inbound_MATMAS04
    Generated proxy bean = Inbound_MATMAS04_PortTypeBean
    Implementing class = InboundMATMAS04_PortTypeImpl
    Implementing method = inboundMATMAS04
    I used the JPR transport servlet to register the interface and implementing class but am not sure if I did this correctly.  I used the following entry in my web browser:
    http://nadcp786:50000/ProxyServer/register?
    ns=urn:xiTrainingLabs:groupXX:SAP&
    interface=InboundMATMAS04&
    bean=InboundMATMAS04_PortTypeImpl&
    method=inboundMATMAS04
    I also tried using the localejb/ prefix for the bean name in the above step since the code is co-located.  When I trigger the scenario, the Idoc info is passed into XI and the Java Proxy Runtime is called, but I get the following error response back in the SOAP header:
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="PARSING">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Cannot locate proxy bean InboundMATMAS04_PortTypeImpl: com.sap.aii.proxy.xiruntime.core.XmlInboundException: Cannot locate proxy bean InboundMATMAS04_PortTypeImpl</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Finally, appended at the end of this post is the audit log of the messaging system showing that the JPR is called but without being able to locate the bean.  I think I am missing a configuration step somewhere, but can’t figure out what it is!!  Can anyone help me? 
    Many thanks in advance.
    Regards,
    Nick Simon
    Time Stamp     Status     Description
    2004-10-25 19:47:32     Success     The message was successfully received by the messaging system. Profile: XI URL: http://nadcp786.bcsdc.lexington.ibm.com:50000/MessagingSystem/receive/JPR/XI
    2004-10-25 19:47:32     Success     Using connection JPR. Trying to put the message into the receive queue.
    2004-10-25 19:47:32     Success     The message was successfully retrieved from the receive queue.
    2004-10-25 19:47:32     Success     The message status set to DLNG.
    2004-10-25 19:47:32     Success     Java proxy runtime (JPR) accepted the message
    2004-10-25 19:47:34     Error     JPR could not process the message. Reason: Cannot locate proxy bean localejbs/InboundMATMAS04_PortTypeImpl
    2004-10-25 19:47:34     Error     Delivery of the message to the application using connection JPR failed, due to: Cannot locate proxy bean localejbs/InboundMATMAS04_PortTypeImpl.
    2004-10-25 19:47:34     Error     The message status set to FAIL.
    2004-10-25 19:47:34     Error     Asynchronous error detected: Cannot locate proxy bean localejbs/InboundMATMAS04_PortTypeImpl. Trying to report it.
    2004-10-25 19:47:34     Error     Asynchronous error reported.
    Message was edited by: Nicholas Simon

    Hi
    How do you determine the JNDI naming of the a EJB?
    I have following entry in JNDI directory in the root
    Object Name FlightQueryIn
    Class Name javax.naming.Reference
    Context Name 
    Object Value Reference Class Name:
    Type: clientAppName
    Content: sap.com/JavaProxyEAR
    Type: interfaceType
    Content: remote
    Type: home
    Content: com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundHome4
    Type: ejb-link
    Content: FlightSeatAvailabilityQueryIn_PortTypeBean
    Type: jndi-name
    Content: FlightQueryIn
    Type: remote
    Content: com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundRemote4
    I tried to register the bean with JPR using:
    http://ctsapxid01:50100/ProxyServer/register?ns=http://sap.com/xi/XI/Demo/Airline&interface=FlightSeatAvailabilityQuery_In&bean=FlightQueryIn&method=flightSeatAvailabilityQueryIn
    I followed the following blog
    http://wiki.sdn.sap.com/wiki/display/Java/JavaProxyChangesinPI7.1fromPI7.0
    Thanks,
    Chris

  • Java SE Runtime Environment 5.0u22 will not install on Windows 98SE

    Hi,
    I know, its no longer supported.
    As I understand, Java SE Runtime Environment 5.0u22 is the last SE Runtime that works with Windows 98SE and, if so, I need to install on a Windows 98SE computer.
    This Windows 98SE machine currently has Java 2 Runtime Environment, Standard Edition 5.0 for Windows installed on it.
    Downloaded jre-1_5_0_22-windows-i586-p.exe (offline installer version) from Sun, and when I click on this file it invokes my 56K dialer - once online, nothing happens, no HDD activity, no modem lights, nothing - and I do not get any error messages.
    If I choose to cancel the dialer, again, nothing happens, no HDD activity, no modem lights, nothing - and I do not get any error messages.
    I checked my MSI.DLL file and it is version 2.0.2600.2 - which is consistent with the installation requirements detailed here . . . http://www.oracle.com/technetwork/java/javase/install-windows-139179.html#installer2.0
    I ran a few Googles, but did not find any help.
    A few words of encouragement and suggestions of how to accomplish this install are sincerely appreciated.
    Many thanks,
    CurlySue

    Well, its been 10 days and no replies.
    Bummer.
    Guess there are no longer any JSE 5.0 experts online.
    Pity.
    CS

  • Error Message 1316 while uninstalling Java 2 Runtime Env SE v1.4.2_03msi

    I recently updated to Java 10 while in the process of clearing some nasty virus/malware off my system. I worked with a tech guide to do the clean up. He told me to uninstall old updates, including Java 2 Runtime Environment, SE v1.4.2_03. In the process, I got this error message:
    Error 1316 - A network error occurred while attempting to read from file C:\WINDOWS\Installer\Java 2 Runtime Environment, SE v1.4.2_03msi.
    then I clicked OK to continue and got a Fatal Error at the end and the uninstall was unsuccessful.
    The tech guide told me that "hackers can use script to infect you via these old versions." The virus/malware we caught was spyware and serious. I'm serious about getting clean... any advice please?
    Thanks -
    BirdieKaie

    Update 10. As in "C:\Program Files\Java\jre1.5.0_09\ <<< Java just updated to 10, update your version please."

  • Removing Java 2 Runtime Environment, SE v1.4.2_04

    I'm having problems removing this from my pc. I tried using the Add/Remove Programs and get an error message. Basically it ells me that "The file 'C:\Documents and Settings\Administrator\Local Settings\Application Data\etc.......... is not a valid installation package for the product Java 2 Runtime Environment SE v1.4.2_04 etc.......... etc........
    However when I do a browse to that location I do see the .msi package it is looking for. I tried to reinstall the package but cannot because it tells me I already have a version installed. How can I remove this? I'm willing to go as far as doing it manually. Thanks.
    Allen

    The security enhancements are documented at http://java.sun.com/j2se/1.5.0/ReleaseNotes.html#150_06
    Changes in 1.5.0_06
    Prior to this update [1.5.0_06], an applet or [Java Web Start] application could specify the version of the JRE on which it would run. This has changed. All applets are executed with the latest JRE version. Unsigned Java Web Start applications that specify a version other than the latest trigger a warning, requiring explicit user permission before the application will run. Signed Java Web start applications are not affected.
    In other words, only Applets and unsigned Java Web Start applications are affected by the security enhancements. Standalone applications can select any JRE they want, even if it is the outdated 1.4.2_13.

  • Java 2 runtime Environment setup failed with a return code of -1

    Hi!
    I have tried to install sdk 1_3_1_01 on Windows 2000 with ServicePack 2 and the error "Java 2 runtime Environment setup failed with a return code of -1" occured. As I saw, a lot of people has the problem but couldn't find a solution on this page!
    Please help !
    Me

    I've installed 1.3.1_01 on both W2K Workstation and Server, no problem. There's a bug report, but no workaround or solution.
    http://developer.java.sun.com/developer/bugParade/bugs/4412291.html
    and it's supposedly 'fixed' in 1.4.0 beta.
    http://java.sun.com/j2se/1.4/fixedbugs/fixedbugs-beta2.html
    You might try installing the beta version
    http://java.sun.com/j2se/

  • Eclipse give following error :could not find Java 2 runtime environment

    When I try to start eclipse it is giving me following error could not find Java 2 runtime environment.It was working fine untill I installed a new verson of eclipse although I am not whethar that is the source of problem.
    When i give java -version command in command prompt it shows
    Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
    has value '1.4', but '1.6' is required.
    Error: could not find java.dll
    Error: could not find Java 2 Runtime Environment.
    My java Home ,classpath , and path are all set as I say it was earliar woking fine.
    Please Help.

    I know this is a relatively old post, but some people can stumble on this page when doing a search for this problem.
    Anyway, I ran into this on my PC after I installed Sybase which had an older jre.
    Solution:
    1. Run regedit
    2. Look for Java Runtime Environment
    You may have to do multiple searches. Eventually you'll find one with the version number.
    3. Modify the value and change it to the correct version number. (in your case, you would have changed it from 1.4 to 1.6).
    This is much quicker than reinstalling Java every time installing something that uses an older version of Java hoses up the registry value.

  • Error:could not find Java 2 Runtime Environment

    Greetings,i have a java problem with a game(football manager 2008) installation.I have a hp laptop with windows vista installed and when the installation is on 100%.It appears Error:could not find Java 2 Runtime Environment.I have taken some screenshots to help you understand my problem.
    intallation:
    http://img218.imageshack.us/img218/7945/egkatastashba2.jpg
    the error:
    http://img232.imageshack.us/img232/6388/errorty5.jpg
    Also i tried to join a site which java is required and it appeard the following errors:
    http://img87.imageshack.us/img87/6465/sfalmasp6.jpg
    http://img87.imageshack.us/img87/9337/sfalma2sj1.jpg
    PS:I have installed the java(Java(TM)6 Update 5).I hope to receive a reply with the solution of the problem as soon as possible.Thank you
    Edited by: Cap.George on Mar 7, 2008 8:46 AM
    Edited by: Cap.George on Mar 7, 2008 8:47 AM

    Consider going to a Windows forum
    (or better yet, to Microsoft's web site or to a local book store)
    and learning about Vista's "User Account Control".
    At least do a Google search on it.

Maybe you are looking for