facebook

web service client GUI complains no Java 1.5

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #269192 Reply

    msu
    Member

    I have Eclipse 3.2.2 MyEclipse 5.5M2
    I am able to run JDK 1.5 compatible Java codes.
    but when I try to generate web service client through MyEclipse web servcie client wizard,
    I got ‘A Java 1.5 VM is required for WSDL based generation’ message

    I check

    Preferenced << Java << Installed JRES jdk1.5
    Project Properties << Java Build Path << Libraries jdk1.5

    my code has jdk1.5 syntax
    ArrayList<String> l = new ArrayList<String>();

    The only difference is I did not install jdk1.5 in my system (jdk1.4 is required in my current project)

    I guess MyEclipse might check System JAVA_HOME or installed JRE in c:\Program Files\Java\j2rexxx

    However this is not correct since in most cases we have different jdk in our machine for either development or research.

    #269202 Reply

    Riyad Kalla
    Member

    msu,
    If you installed MyEclipse yourself and didn’t use the all-in-one installer, the Eclipse platform launcher looks for the first compatible VM in your path then uses it to launch itself. In this case it sounds like it found a 1.4 VM and is running MyEclipse with it, so when you go to run the WS tool, it’s unable to generate 1.5 code.

    I would suggest editing your shortcut for MyEclipse and add the -vm command line arg and point it directly at the 1.5 VM you want to launch it with, like so:

    
    eclipse.exe -vm C:\Program Files\Java\jdk1.5.0_12\bin\javaw.exe -vmargs (REST OF ARGS HERE)
    

    notice that you actually have to point all the way to the javaw.exe you want to be used.

    #269243 Reply

    msu
    Member

    The next screen does show up now!
    You guys really do a good job!

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: web service client GUI complains no Java 1.5

You must be logged in to post in the forum log in