facebook

Java.lang.reflect.InvocationTargetException [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #201410 Reply

    prabhi
    Member

    Hi,

    I am new to MyEclipse and running into a problem while setting up my very first j2ee project. I created a J2EE project and then added a ‘ standard EJB’ doclet using MyProject->Properties->MyEclipse-XDoclet. When I try to configure a doclet and save it, I get an exception “Failed to save configuration; Java.lang.reflect.InvocationTargetException” . The xdoclet-build.xml is not generated as a result. I am blocked at this point.

    Also not sure where to look for MyEclipse logs/traces to debug further. Please help.

    Here is the background.

    1) running Win 2000, jdk1.3.1
    2) running eclipse 2.1.2 and MyEclipse latest version.
    3) I also have a trial version of IBM studio installed on the same box.

    Any help resolving the matter will be appreciated.

    Thanks,
    Prabhakar

    #201415 Reply

    Scott Anderson
    Participant

    Prabhakar,

    We’ve diagnosed this one before. Please see this thread and the ones it references for more information.

    https://www.genuitec.com/forums/topic/xdoclet-failed-to-save-configuration/&highlight=xdoclet+xml

    –Scott
    MyEclipse Support

    #201454 Reply

    prabhi
    Member

    Scott,

    Thanks a lot!. I switched to jdk1.4.2 and it seems to have fixed it.

    Prabhakar

    #201624 Reply

    stejankar
    Member

    I installed MyEclipse 2.7RC1 on Eclipse 2.1.
    JRE installed on my machine is 1.3.1_02.
    Additionally I installed jdk1.4.2 in a separate folder and I changed my Eclipse JRE to 1.4.2. But still I am getting the same exception.

    Thanks in advance,

    Sanjay

    #201639 Reply

    Riyad Kalla
    Member

    Sanjay,
    You need to make sure that the JDK running Eclipse is 1.4.2. You can check this by clicking Help->About->Configuration Details. Its within the first paragraph of options (the JDK or JRE version). If it says 1.3.1 then its using the wrong JDK.

    If this is the case either adjust your path settings for your OS such that the 1.4.2 java executable is found before the 1.3.1 OR, just add a -vm argument to your eclipse execution command:

    
    eclipse.exe -vm c:\j2sdk1.4.2_02\bin\javaw.exe
    
Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Java.lang.reflect.InvocationTargetException [Closed]

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