Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: Applet loading Issue with Installed jre-7u67 while 1.4 j2se version defined in the jnlp file

  1. #1
    Junior Member
    Join Date
    Sep 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Applet loading Issue with Installed jre-7u67 while 1.4 j2se version defined in the jnlp file

    Hello ,

    Can anyone help pleaseeeeeeeeeee ?????

    I am using Java Web Start Framework to load the applet with 1.4 j2se version defined in my JNLP file.

    My query is : I want to load the applet with 1.4 version of jre along with system installed enabled jre-7u67. if any
    One has a solution regarding this , please suggest me. It will be great help from your side.
    Thanks in advance...

    Exception is : java.lang.NoSuchMethodError: java.lang.String.replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence Ljava/lang/String;
    at com.sun.deploy.util.SecurityBaseline.satisfiesBase lineStrictly(Unknown Source)
    at com.sun.deploy.util.SecurityBaseline.satisfiesBase lineStrictly(Unknown Source)
    at com.sun.deploy.util.SecurityBaseline.isExpired(Unk nown Source)
    at com.sun.deploy.config.ClientConfig.init(Unknown Source)
    at com.sun.deploy.config.WebStartConfig.init(Unknown Source)
    at com.sun.deploy.config.ClientConfig.<init>(Unknown Source)
    at com.sun.deploy.config.WebStartConfig.<init>(Unknow n Source)
    at com.sun.javaws.Main.main(Unknown Source)


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Applet loading Issue with Installed jre-7u67 while 1.4 j2se version defined in the jnlp file

    What exactly do you mean by this:

    My query is : I want to load the applet with 1.4 version of jre along with system installed enabled jre-7u67.
    What does it mean to load an applet with two different versions of Java? Why do you think you want to do this?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Sep 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Applet loading Issue with Installed jre-7u67 while 1.4 j2se version defined in the jnlp file

    Thanks for your reply..
    Our applet is comaptible with JRE1.4 however muliplte JRE (1.4, 1.5 , 1.6, 1.7) plug-ins installed in machine... Here applet is not loading after installing jre7 in my machine.

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Applet loading Issue with Installed jre-7u67 while 1.4 j2se version defined in the jnlp file

    The error you posted suggests that you're trying to run newer Java code on an old version of Java. The String.replace(CharSequence target, CharSequence replacement) was added in Java 1.5.

    You can't use functions that don't exist in old versions of Java and expect them to work in old versions of Java. I'm not even sure how you got this to compile and run at all.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    Junior Member
    Join Date
    Sep 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Applet loading Issue with Installed jre-7u67 while 1.4 j2se version defined in the jnlp file

    my jnlp file configuration like this :

    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+" codebase="http://cpsdev12.spe.sony.com:8418/gpms/" href="GPMSApplet.jnlp">
    <information>
    <title>GPMS Applet Web Start</title>
    <vendor>SPE</vendor>
    <description>GPMS Classic</description>
    </information>
    <resources>
    <j2se version="1.4" />
    <jar href="GPMSApp.jar" main="true" />
    </resources>
    <applet-desc name="GPMSAPPLET"
    main-class="com.sony.spe.rmitsm2.mainapplet.GPMSApplet"
    width="400"
    height="30">
    </applet-desc>
    </jnlp>

    I want to load the applet with 1.4 version. (as defined above in the jnlp file)

    Following jre version had enabled while trying to load the applet :

    1.7 -> 1.7.0_67
    1.7 -> 1.7.0_06
    1.4 -> 1.4.2_28
    1.4 -> 1.4.2_19

    Please reply ..

  6. #6
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Applet loading Issue with Installed jre-7u67 while 1.4 j2se version defined in the jnlp file

    Quote Originally Posted by animeshamazing View Post
    Please reply ..
    You haven't addressed any of what I've said, so I'm not sure what you want me to reply with.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. JNLP JDK8 Auto Load JRE Multiple Operating Systems
    By abigdreamer in forum What's Wrong With My Code?
    Replies: 0
    Last Post: August 18th, 2013, 09:05 PM
  2. Replies: 3
    Last Post: May 16th, 2013, 09:17 AM
  3. Problem Running J2EE Application - JRE Version Error
    By rameshiit19 in forum Java IDEs
    Replies: 3
    Last Post: November 28th, 2011, 07:12 AM
  4. jre version in command line
    By major in forum What's Wrong With My Code?
    Replies: 2
    Last Post: June 14th, 2011, 06:55 AM
  5. Using 1.5 jre/webstart on a computer with 1.6 installed
    By qman32 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: January 27th, 2011, 12:29 PM